ReactOS  0.4.15-dev-1171-gab82533
dllmain.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS system libraries
4  * FILE: lib/secur32/lsa.c
5  * PURPOSE: Client-side LSA functions
6  * UPDATE HISTORY:
7  * Created 05/08/00
8  */
9 
10 #include "precomp.h"
11 
14 
15 /* GLOBALS *******************************************************************/
16 
18 
19 /* FUNCTIONS *****************************************************************/
20 
21 #ifdef __REACTOS__
22 // See sspi.c
23 extern void SECUR32_freeProviders(void);
24 #endif
25 
26 BOOL
27 WINAPI
29  ULONG Reason,
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 }
VOID LsapCloseLsaPort(VOID)
Definition: lsalpc.c:41
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
Definition: dllmain.c:52
HINSTANCE hInstance
Definition: charmap.c:20
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
NTSYSAPI PVOID NTAPI RtlDestroyHeap(IN PVOID HeapHandle)
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
#define DLL_PROCESS_DETACH
Definition: compat.h:130
void SECUR32_freeProviders(void)
Definition: sspi.c:648
#define WINAPI
Definition: msvc.h:6
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
unsigned int ULONG
Definition: retypes.h:1
VOID LsapInitLsaPort(VOID)
Definition: lsalpc.c:34
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
Definition: env.c:45