On Thu, Apr 24, 2008 at 5:36 AM, Alexandre Julliard julliard@winehq.org wrote:
You certainly don't want to call through explorer for that, showing a message box directly is fine. You have to be careful to only do it when loading the main exe, not for any random dll load; also you have to properly handle the case of a missing X display.
OK so is doing this in ntdll even the right case? I don't really see where to do it only from the main exe. I understand we don't want to report the error if the application is manually doing a GetProcAddress/LoadLibrary but again don't really know how to limit it. Here is my stab #2, it actually returns something sane to the user.