bed6f5abc0eeeb0ea1bb07fced542d7e407a2df5
[reactos.git] / reactos / dll / win32 / secur32 / dllmain.c
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
12 /* GLOBALS *******************************************************************/
13
14 HANDLE Secur32Heap;
15
16 /* FUNCTIONS *****************************************************************/
17
18 BOOL
19 WINAPI
20 DllMain(HINSTANCE hInstance,
21 ULONG Reason,
22 PVOID Reserved)
23 {
24 switch (Reason)
25 {
26 case DLL_PROCESS_ATTACH:
27 Secur32Heap = RtlCreateHeap(0, NULL, 0, 4096, NULL, NULL);
28 if (Secur32Heap == 0)
29 {
30 return FALSE;
31 }
32 break;
33
34 case DLL_PROCESS_DETACH:
35 if (!RtlDestroyHeap(Secur32Heap))
36 {
37 return FALSE;
38 }
39 break;
40 }
41
42 return TRUE;
43 }