ReactOS  0.4.12-dev-18-gf469aca
main.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
Include dependency graph for main.c:

Go to the source code of this file.

Typedefs

typedef int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline)
 

Functions

int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow)
 

Typedef Documentation

◆ DOWINMAIN

typedef int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline)

Definition at line 5 of file main.c.

Function Documentation

◆ WinMain()

int WINAPI WinMain ( HINSTANCE  hInst,
HINSTANCE  hPrevInst,
LPSTR  cmdline,
int  cmdshow 
)

Definition at line 8 of file main.c.

Referenced by DlgMainProc(), main(), and ScreenSaverProc().

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
int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
Definition: hhctrl.c:492
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
#define FreeLibrary(x)
Definition: compat.h:405
int ret
int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline)
Definition: main.c:5
#define GetProcAddress(x, y)
Definition: compat.h:410
HMODULE hModule
Definition: animate.c:44