2013-01-24 23:00:42 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
2009-10-12 03:35:35 +00:00
|
|
|
|
|
|
|
typedef int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline);
|
|
|
|
|
|
|
|
int WINAPI
|
|
|
|
WinMain(HINSTANCE hInst,
|
|
|
|
HINSTANCE hPrevInst,
|
|
|
|
LPSTR cmdline,
|
|
|
|
int cmdshow)
|
|
|
|
{
|
|
|
|
HMODULE hModule;
|
|
|
|
DOWINMAIN *doWinMain;
|
|
|
|
int ret = -1;
|
|
|
|
|
|
|
|
hModule = LoadLibraryA("hhctrl.ocx");
|
2023-12-03 01:15:08 +00:00
|
|
|
if (hModule)
|
|
|
|
{
|
|
|
|
doWinMain = (DOWINMAIN*)GetProcAddress(hModule, "doWinMain");
|
|
|
|
if (doWinMain)
|
|
|
|
ret = doWinMain(hInst, cmdline);
|
2009-10-12 03:35:35 +00:00
|
|
|
|
2023-12-03 01:15:08 +00:00
|
|
|
FreeLibrary(hModule);
|
|
|
|
}
|
2009-10-12 03:35:35 +00:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|