ReactOS  0.4.12-dev-18-gf469aca
main.c
Go to the documentation of this file.
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
9  HINSTANCE hPrevInst,
10  LPSTR cmdline,
11  int cmdshow)
12 {
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 }
TCHAR * cmdline
Definition: stretchblt.cpp:32
char * LPSTR
Definition: xmlstorage.h:182
int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
Definition: hhctrl.c:492
HINSTANCE hInst
Definition: main.c:29
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
#define FreeLibrary(x)
Definition: compat.h:405
int ret
#define WINAPI
Definition: msvc.h:20
int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline)
Definition: main.c:5
#define GetProcAddress(x, y)
Definition: compat.h:410
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow)
Definition: main.c:8
HMODULE hModule
Definition: animate.c:44