ReactOS  0.4.15-dev-1070-ge1a01de
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.

Functions

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

Function Documentation

◆ DllMain()

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

Definition at line 16 of file main.c.

17 {
18 
19  switch (fdwReason)
20  {
21  case DLL_PROCESS_ATTACH:
22  DisableThreadLibraryCalls(hinstDLL);
23  break;
24  case DLL_PROCESS_DETACH:
25  break;
26  }
27 
28  return TRUE;
29 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130