Icmp* functions in iphlpapi.dll

Carl Fongheiser carlfongheiser at gmail.com
Sat Jun 10 21:37:01 CDT 2006


On 6/10/06, Simon Kissane <skissane at gmail.com> wrote:
>
> Suppose one was to add code to iphlpapi's LibMain which did
> LoadLibrary & GetProcAddress to get the addresses of the functions in
> icmp.dll, and then the iphlpapi implementations just called the
> icmp.dll implementations? (I'm assuming doing a static import would
> result in some kind of name collission?)



Bad, bad idea.  In Windows programming, you *never* call LoadLibrary from
DllMain.  Inside of DllMain, you can't call anything which uses the loader
lock, because the loader lock is already taken out.  As best as I read the
Wine code, it has the same limitation.

Carl Fongheiser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20060610/9bcc330b/attachment.htm


More information about the wine-devel mailing list