On Wed, Apr 23, 2008 at 10:51 PM, Dan Kegel dank@kegel.com wrote:
Hmm, maybe make explorer responsible for putting up the messagebox, and set up some IPC method (good lord, not COM, just some mailbox or something) for the loader to notify it...
I thought of that, but your going to end up invoking more crap I really think you don't need. This is a failure case after all. Explorer is not running at this point so that means you have to start it, then you could to send the messages which would be the simplest form of IPC to it which is going to delay load user32 anyway so it can display the message box...Its better just to do the equivalent of LoadLibrary/GetProcAddress in the loader from a helper function and be done with it.