ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

dllmain.c
Go to the documentation of this file.
00001 /* $Id: dllmain.c 53225 2011-08-14 11:31:23Z akhaldi $
00002  *
00003  * COPYRIGHT:       See COPYING in the top level directory
00004  * PROJECT:         ReactOS system libraries
00005  * FILE:            lib/advapi32/misc/dllmain.c
00006  * PURPOSE:         Library main function
00007  * PROGRAMMER:      ???
00008  * UPDATE HISTORY:
00009  *                  Created ???
00010  */
00011 
00012 #include <advapi32.h>
00013 WINE_DEFAULT_DEBUG_CHANNEL(advapi);
00014 
00015 extern BOOL RegInitialize(VOID);
00016 extern BOOL RegCleanup(VOID);
00017 extern VOID UnloadNtMarta(VOID);
00018 
00019 BOOL WINAPI
00020 DllMain(HINSTANCE hinstDll,
00021     DWORD dwReason,
00022     LPVOID reserved)
00023 {
00024     switch (dwReason)
00025     {
00026         case DLL_PROCESS_ATTACH:
00027             DisableThreadLibraryCalls(hinstDll);
00028             RegInitialize();
00029             break;
00030         case DLL_PROCESS_DETACH:
00031             RegCleanup();
00032             UnloadNtMarta();
00033             break;
00034     }
00035 
00036    return TRUE;
00037 }
00038 
00039 /* EOF */

Generated on Sat May 26 2012 04:21:09 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.