ReactOS  0.4.14-dev-114-gc8cbd56
netapi32.c File Reference
#include "netapi32.h"
Include dependency graph for netapi32.c:

Go to the source code of this file.

Functions

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

Function Documentation

◆ DllMain()

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

Definition at line 23 of file netapi32.c.

24 {
25  TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
26 
27  switch (fdwReason) {
28  case DLL_PROCESS_ATTACH:
31  DisableThreadLibraryCalls(hinstDLL);
32  NetBIOSInit();
33  NetBTInit();
34  break;
35  case DLL_PROCESS_DETACH:
36  if (lpvReserved) break;
38  break;
39  }
40 
41  return TRUE;
42 }
#define TRUE
Definition: types.h:120
void NetBIOSShutdown(void)
Definition: netbios.c:110
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
static IN DWORD IN LPVOID lpvReserved
CRITICAL_SECTION g_EnumContextListLock
Definition: user.c:57
void NetBIOSInit(void)
Definition: netbios.c:103
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751
#define DLL_PROCESS_DETACH
Definition: compat.h:119
#define TRACE(s)
Definition: solgame.cpp:4
void NetBTInit(void)
Definition: nbt.c:1432
LIST_ENTRY g_EnumContextListHead
Definition: user.c:56
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( netapi32  )