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 37763 2008-11-30 11:42:05Z sginsberg $
00002  *
00003  * COPYRIGHT:       See COPYING in the top level directory
00004  * PROJECT:         ReactOS system libraries
00005  * FILE:            lib/secur32/lsa.c
00006  * PURPOSE:         Client-side LSA functions
00007  * UPDATE HISTORY:
00008  *                  Created 05/08/00
00009  */
00010 
00011 /* INCLUDES ******************************************************************/
00012 #include <precomp.h>
00013 
00014 /* GLOBALS *******************************************************************/
00015 
00016 HANDLE Secur32Heap;
00017 
00018 /* FUNCTIONS *****************************************************************/
00019 
00020 BOOL WINAPI DllMain(HINSTANCE hInstance, ULONG Reason, PVOID Reserved)
00021 {
00022    switch (Reason)
00023      {
00024       case DLL_PROCESS_ATTACH:
00025     Secur32Heap = RtlCreateHeap(0, NULL, 0, 4096, NULL, NULL);
00026     if (Secur32Heap == 0)
00027       {
00028          return(FALSE);
00029       }
00030     break;
00031 
00032       case DLL_PROCESS_DETACH:
00033     if (!RtlDestroyHeap(Secur32Heap))
00034       {
00035          return(FALSE);
00036       }
00037     break;
00038      }
00039    return(TRUE);
00040 }

Generated on Fri May 25 2012 04:20:41 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.