ReactOS 0.4.16-dev-258-g81860b4
main.c File Reference
#include <windef.h>
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define DLL_EXPORT
 

Functions

BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 

Macro Definition Documentation

◆ DLL_EXPORT

#define DLL_EXPORT

Definition at line 6 of file main.c.

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  lpvReserved 
)

Definition at line 9 of file main.c.

10{
11 switch (fdwReason)
12 {
14 // attach to process
15 // return FALSE to fail DLL load
16 break;
17
19 // detach from process
20 break;
21
23 // attach to thread
24 break;
25
27 // detach from thread
28 break;
29 }
30 return TRUE; // succesful
31}
#define TRUE
Definition: types.h:120
#define DLL_THREAD_DETACH
Definition: compat.h:133
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define DLL_THREAD_ATTACH
Definition: compat.h:132