imagehlp: Implement (parts of) BindImageEx

Bernhard Reiter ockham at raz.or.at
Fri Apr 11 17:48:13 CDT 2014


Attached is a basic implementation of BindImageEx that will allow
"freezing" of Python scripts, as performed by Python packages such as
cx_Freeze and py2exe, as those tools usually use that function to locate
required DLLs. Previous discussion and some research can be found at [1,2].

Obviously, this is only a small part of what BindImageEx is eventually
supposed to do, but I cannot provide more for now as I'm still not that
familiar with the Wine code and API. Note that no actual binding is
currently done. Moreover, parameters such as DllPath, SymbolPath, and
the Flags are ignored altogther. (Thus, I haven't yet removed the
FIXME(...%"stub") line -- not sure if that was right.) I have however
successfully tested this patch with the minimal cx_Freeze test case
attached to [1] (i.e. running "wine C:\\Python27\\python.exe setup.py
build" with it), and with a real-life example -- freezing Trelby [3],
which uses py2exe.

Looking forward to comments (and hopefully application of my first wine
patch)!

Bernhard

[1] http://bugs.winehq.org/show_bug.cgi?id=3591
[2] http://www.winehq.org/pipermail/wine-devel/2014-April/103846.html
[3] http://www.trelby.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-parts-of-BindImageEx-so-at-least-frezing-P.patch
Type: text/x-patch
Size: 2633 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140412/be4e60ae/attachment.bin>


More information about the wine-patches mailing list