The first 2 parameters of WinMain are HINSTANCEs, not HANDLEs.
[wine] / include / regstr.h
2000-08-01  Andreas MohrAdded an uninstaller for InstallShield, WISE etc.