The first 2 parameters of WinMain are HINSTANCEs, not HANDLEs.
[wine] / include / winioctl.h
1999-04-25  Patrik Stridvall#pragma pack(?) changed to #include "*pack*.h"
1999-04-03  Joerg MayerMore #pragma fixes (idea Ove Kaaven, mistakes are mine).
1999-03-17  Marcus MeissnerFixed some warnings. removed some unneccessary includes...
1999-02-26  Alexandre JulliardLarge-scale renaming of all Win32 functions and types...
1998-12-26  Marcus MeissnerChanged // comments to /* */ so WINE compiles with...
1998-11-25  Ulrich WeigandImplemented (most) VWin32.VxD DeviceIoControl routines.
1998-06-28  Alexandre JulliardRelease 980628 wine-980628