1 #include <stdarg.h> 2 #include <windef.h> 3 #include <winbase.h> 4 5 typedef int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline); 6 7 int WINAPI 8 WinMain(HINSTANCE hInst, 9 HINSTANCE hPrevInst, 10 LPSTR cmdline, 11 int cmdshow) 12 { 13 HMODULE hModule; 14 DOWINMAIN *doWinMain; 15 int ret = -1; 16 17 hModule = LoadLibraryA("hhctrl.ocx"); 18 doWinMain = (DOWINMAIN*) GetProcAddress(hModule, "doWinMain"); 19 20 ret = doWinMain(hInst, cmdline); 21 22 FreeLibrary(hModule); 23 24 return ret; 25 } 26