ReactOS
0.4.16-dev-334-g4d9f67c
main.c
Go to the documentation of this file.
1
#include <
windef.h
>
2
3
#ifdef BUILD_DLL
4
#define DLL_EXPORT __declspec(dllexport)
5
#else
6
#define DLL_EXPORT
7
#endif
8
9
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL,
DWORD
fdwReason,
LPVOID
lpvReserved
)
10
{
11
switch
(fdwReason)
12
{
13
case
DLL_PROCESS_ATTACH
:
14
// attach to process
15
// return FALSE to fail DLL load
16
break
;
17
18
case
DLL_PROCESS_DETACH
:
19
// detach from process
20
break
;
21
22
case
DLL_THREAD_ATTACH
:
23
// attach to thread
24
break
;
25
26
case
DLL_THREAD_DETACH
:
27
// detach from thread
28
break
;
29
}
30
return
TRUE
;
// succesful
31
}
TRUE
#define TRUE
Definition:
types.h:120
DllMain
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
Definition:
main.c:26
DLL_THREAD_DETACH
#define DLL_THREAD_DETACH
Definition:
compat.h:133
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
DLL_THREAD_ATTACH
#define DLL_THREAD_ATTACH
Definition:
compat.h:132
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
lpvReserved
static IN DWORD IN LPVOID lpvReserved
Definition:
load_notifications.c:17
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
modules
rostests
apitests
win32u
win32u_xpsp2
main.c
Generated on Mon Dec 9 2024 06:15:12 for ReactOS by
1.9.6