ReactOS 0.4.15-dev-5666-gc548b97
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 {
35 Secur32Heap = RtlCreateHeap(0, NULL, 0, 4096, NULL, NULL);
36 if (Secur32Heap == 0)
37 {
38 return FALSE;
39 }
41 break;
42
44#ifdef __REACTOS__
46#endif
49 {
50 return FALSE;
51 }
52 break;
53 }
54
55 return TRUE;
56}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
HANDLE Secur32Heap
Definition: dllmain.c:17
VOID LsapInitLsaPort(VOID)
Definition: lsalpc.c:34
VOID LsapCloseLsaPort(VOID)
Definition: lsalpc.c:41
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
Definition: env.c:47
NTSYSAPI PVOID NTAPI RtlDestroyHeap(IN PVOID HeapHandle)
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)
void SECUR32_freeProviders(void)
Definition: sspi.c:648

◆ 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
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3402

Referenced by DllMain().

◆ LsapInitLsaPort()

VOID LsapInitLsaPort ( VOID  )

Definition at line 34 of file lsalpc.c.

35{
37}

Referenced by DllMain().

Variable Documentation

◆ Secur32Heap

HANDLE Secur32Heap

Definition at line 17 of file dllmain.c.

Referenced by DllMain().