ReactOS  0.4.13-dev-1148-g9b75b67
dllmain.c File Reference
#include "precomp.h"
Include dependency graph for dllmain.c:

Go to the source code of this file.

Functions

VOID LsapInitLsaPort (VOID)
 
VOID LsapCloseLsaPort (VOID)
 
BOOL WINAPI DllMain (HINSTANCE hInstance, ULONG Reason, PVOID Reserved)
 

Variables

HANDLE Secur32Heap
 

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hInstance,
ULONG  Reason,
PVOID  Reserved 
)

Definition at line 28 of file dllmain.c.

31 {
32  switch (Reason)
33  {
34  case DLL_PROCESS_ATTACH:
35  Secur32Heap = RtlCreateHeap(0, NULL, 0, 4096, NULL, NULL);
36  if (Secur32Heap == 0)
37  {
38  return FALSE;
39  }
41  break;
42 
43  case DLL_PROCESS_DETACH:
44 #ifdef __REACTOS__
46 #endif
49  {
50  return FALSE;
51  }
52  break;
53  }
54 
55  return TRUE;
56 }
#define TRUE
Definition: types.h:120
VOID LsapCloseLsaPort(VOID)
Definition: lsalpc.c:41
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
smooth NULL
Definition: ftsmooth.c:416
NTSYSAPI PVOID NTAPI RtlDestroyHeap(IN PVOID HeapHandle)
#define DLL_PROCESS_DETACH
Definition: compat.h:119
void SECUR32_freeProviders(void)
Definition: sspi.c:648
NTSYSAPI PVOID NTAPI RtlCreateHeap(IN ULONG Flags, IN PVOID HeapBase OPTIONAL, IN ULONG ReserveSize OPTIONAL, IN ULONG CommitSize OPTIONAL, IN PVOID Lock OPTIONAL, IN PRTL_HEAP_PARAMETERS Parameters OPTIONAL)
HANDLE Secur32Heap
Definition: dllmain.c:17
VOID LsapInitLsaPort(VOID)
Definition: lsalpc.c:34
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
Definition: env.c:45

◆ LsapCloseLsaPort()

VOID LsapCloseLsaPort ( VOID  )

Definition at line 41 of file lsalpc.c.

42 {
43  if (LsaPortHandle != NULL)
44  {
47  }
48 }
HANDLE LsaPortHandle
Definition: lsalpc.c:26
smooth NULL
Definition: ftsmooth.c:416
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3399

Referenced by DllMain().

◆ LsapInitLsaPort()

VOID LsapInitLsaPort ( VOID  )

Definition at line 34 of file lsalpc.c.

35 {
37 }
HANDLE LsaPortHandle
Definition: lsalpc.c:26
smooth NULL
Definition: ftsmooth.c:416

Referenced by DllMain().

Variable Documentation

◆ Secur32Heap

HANDLE Secur32Heap

Definition at line 17 of file dllmain.c.

Referenced by DllMain().