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

_exit.c
Go to the documentation of this file.
00001 /* taken from wine exit.c */
00002 #include <precomp.h>
00003 
00004 /*
00005  * @implemented
00006  */
00007 void _cexit( void )
00008 {
00009   LOCK_EXIT;
00010   __call_atexit();
00011   UNLOCK_EXIT;
00012 }
00013 
00014 /*
00015  * @implemented
00016  */
00017 void _c_exit( void )
00018 {
00019   /* All cleanup is done on DLL detach; Return to caller */
00020 }
00021 
00022 /*
00023  * @implemented
00024  */
00025 void _exit(int exitcode)
00026 {
00027     ExitProcess(exitcode);
00028 }
00029 
00030 /*
00031  * @implemented
00032  */
00033 void exit(int exitcode)
00034 {
00035 #if 0
00036   HMODULE hmscoree;
00037   static const WCHAR mscoreeW[] = {'m','s','c','o','r','e','e',0};
00038   void (WINAPI *pCorExitProcess)(int);
00039 #endif
00040   WARN("exit(%d) called\n",exitcode);
00041   _cexit();
00042 #if 0 
00043   hmscoree = GetModuleHandleW(mscoreeW);
00044 
00045   if (hmscoree)
00046   {
00047     pCorExitProcess = (void*)GetProcAddress(hmscoree, "CorExitProcess");
00048 
00049     if (pCorExitProcess)
00050       pCorExitProcess(exitcode);
00051   }
00052 #endif
00053   ExitProcess(exitcode);
00054 
00055 }

Generated on Thu May 24 2012 04:37:03 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.