It seems MS announced three new functions yesterday:
SetDefaultDllDirectories AddDllDirectory RemoveDllDirectory
These are "to help developers correctly and securely load external libraries". [1]
I remember some talk about SetDllDirectory() in the past [2], so now it's interesting how these two ways would coexist.
Plus, could the new way help to simplify loading Gecko / XPCOM [3] by a chance? Probably not:)
S.
[1] http://support.microsoft.com/KB/2533623 [2] http://www.winehq.org/pipermail/wine-patches/2005-August/019625.html [3] http://source.winehq.org/source/dlls/mshtml/nsembed.c?v=wine-1.1.8#L144