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
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
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
Definition: main.c:26
#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
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
static IN DWORD IN LPVOID lpvReserved
#define WINAPI
Definition: msvc.h:6