Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenthreadx.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
1.7.6.1
|