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

threadx.c
Go to the documentation of this file.
00001 #include <precomp.h>
00002 
00003 /*
00004  * @unimplemented
00005  */
00006 uintptr_t CDECL _beginthreadex(
00007     void* security,
00008     unsigned stack_size,
00009     unsigned (__stdcall *start_address)(void*),
00010     void* arglist,
00011     unsigned initflag,
00012     unsigned* thrdaddr)
00013 {
00014   HANDLE NewThread;
00015 
00016   /*
00017    * Just call the API function. Any CRT specific processing is done in
00018    * DllMain DLL_THREAD_ATTACH
00019    */
00020   NewThread = CreateThread ( security, stack_size,
00021     (LPTHREAD_START_ROUTINE)start_address,
00022     arglist, initflag, (PULONG)thrdaddr );
00023   if (NULL == NewThread)
00024     {
00025     _dosmaperr( GetLastError() );
00026     }
00027 
00028   return (uintptr_t) NewThread;
00029 }
00030 
00031 
00032 /*
00033  * @implemented
00034  */
00035 void CDECL _endthreadex(unsigned retval)
00036 {
00037   /*
00038    * Just call the API function. Any CRT specific processing is done in
00039    * DllMain DLL_THREAD_DETACH
00040    */
00041   ExitThread(retval);
00042 }
00043 
00044 /* EOF */

Generated on Sun May 27 2012 04:36:35 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.