On 6/10/06, <b class="gmail_sendername">Simon Kissane</b> &lt;<a href="mailto:skissane@gmail.com">skissane@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Suppose one was to add code to iphlpapi's LibMain which did<br>LoadLibrary &amp; GetProcAddress to get the addresses of the functions in<br>icmp.dll, and then the iphlpapi implementations just called the<br>icmp.dll implementations? (I'm assuming doing a static import would
<br>result in some kind of name collission?)</blockquote><div><br><br>Bad, bad idea.&nbsp; In Windows programming, you *never* call LoadLibrary from DllMain.&nbsp; Inside of DllMain, you can't call anything which uses the loader lock, because the loader lock is already taken out.&nbsp; As best as I read the Wine code, it has the same limitation.
<br></div><br>Carl Fongheiser<br><br></div>