[NTDLL]
[reactos.git] / reactos / base / applications / hh / main.c
1 #include <windows.h>
2
3 typedef int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline);
4
5 int WINAPI
6 WinMain(HINSTANCE hInst,
7 HINSTANCE hPrevInst,
8 LPSTR cmdline,
9 int cmdshow)
10 {
11 HMODULE hModule;
12 DOWINMAIN *doWinMain;
13 int ret = -1;
14
15 hModule = LoadLibraryA("hhctrl.ocx");
16 doWinMain = (DOWINMAIN*) GetProcAddress(hModule, "doWinMain");
17
18 ret = doWinMain(hInst, cmdline);
19
20 FreeLibrary(hModule);
21
22 return ret;
23 }