ReactOS
0.4.16-dev-197-g92996da
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
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
if
(
hModule
)
19
{
20
doWinMain
= (
DOWINMAIN
*)
GetProcAddress
(
hModule
,
"doWinMain"
);
21
if
(
doWinMain
)
22
ret
=
doWinMain
(
hInst
,
cmdline
);
23
24
FreeLibrary
(
hModule
);
25
}
26
27
return
ret
;
28
}
DOWINMAIN
int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline)
Definition:
main.c:5
WinMain
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow)
Definition:
main.c:8
hModule
HMODULE hModule
Definition:
animate.c:44
GetProcAddress
#define GetProcAddress(x, y)
Definition:
compat.h:753
FreeLibrary
#define FreeLibrary(x)
Definition:
compat.h:748
LoadLibraryA
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition:
loader.c:111
hInst
HINSTANCE hInst
Definition:
dxdiag.c:13
doWinMain
int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
Definition:
hhctrl.c:500
void
Definition:
nsiface.idl:2307
cmdline
TCHAR * cmdline
Definition:
stretchblt.cpp:32
ret
int ret
Definition:
wcstombs-tests.c:31
winbase.h
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
LPSTR
char * LPSTR
Definition:
xmlstorage.h:182
base
applications
hh
main.c
Generated on Wed Oct 30 2024 06:14:43 for ReactOS by
1.9.6