Find the main winelib app with GetModuleHandle

Alexandre Julliard julliard at
Thu Oct 17 16:44:09 CDT 2002

Malte Starostik <malte at> writes:

> 	Check if the name passed to GetModuleHandle() is the name
> 	of the main executable. As those normally don't have an extension
> 	".DLL" was appended and the search failed.

Actually you should give your executable a .exe extension, there are a
number of places where we expect that (the Unix wrapper script doesn't
need an extension of course, but the .so does).

Alexandre Julliard
julliard at

More information about the wine-devel mailing list