"Mike McCormack" mike@codeweavers.com wrote:
It looks like the only dependency is from the PostMessageA in dlls/winsock/async.c #514.
The windows version of ws2_32.dll does not link to user32.dll however, it appears to load it on demand. I can see the following strings in it:
USER32.dll TranslateMessage PeekMessageA PostMessageA DispatchMessageA
Seems like it wouldn't be too hard to change the PostMessageA to LoadLibrary/GetProcAddres.
depends.exe shows that ws2_32 has a delay load dependency on user32. We have to move user32 to a delay loaded section as well in our version.