Implemented AllocateLocallyUniqueId().
[reactos.git] / reactos / lib / advapi32 / misc / dllmain.c
1 /* $Id: dllmain.c,v 1.3 2001/06/17 20:20:21 ekohl Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/advapi32/misc/dllmain.c
6 * PURPOSE: Library main function
7 * PROGRAMMER: ???
8 * UPDATE HISTORY:
9 * Created ???
10 */
11
12 #include <ddk/ntddk.h>
13 #include <windows.h>
14
15 #define NDEBUG
16 #include <debug.h>
17
18
19 INT STDCALL
20 DllMain(PVOID hinstDll,
21 ULONG dwReason,
22 PVOID reserved)
23 {
24 DPRINT("ADVAPI32: DllMain() called\n");
25
26 switch (dwReason)
27 {
28 case DLL_PROCESS_ATTACH:
29 DisableThreadLibraryCalls(hinstDll);
30 RegInitialize();
31 break;
32
33 case DLL_PROCESS_DETACH:
34 RegCleanup();
35 break;
36 }
37
38 DPRINT1("ADVAPI32: DllMain() done\n");
39
40 return TRUE;
41 }
42
43 /* EOF */