mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
44 lines
835 B
C
44 lines
835 B
C
#include <precomp.h>
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
uintptr_t CDECL _beginthreadex(
|
|
void* security,
|
|
unsigned stack_size,
|
|
unsigned (__stdcall *start_address)(void*),
|
|
void* arglist,
|
|
unsigned initflag,
|
|
unsigned* thrdaddr)
|
|
{
|
|
HANDLE NewThread;
|
|
|
|
/*
|
|
* Just call the API function. Any CRT specific processing is done in
|
|
* DllMain DLL_THREAD_ATTACH
|
|
*/
|
|
NewThread = CreateThread ( security, stack_size,
|
|
(LPTHREAD_START_ROUTINE)start_address,
|
|
arglist, initflag, (PULONG)thrdaddr );
|
|
if (NULL == NewThread)
|
|
{
|
|
_dosmaperr( GetLastError() );
|
|
}
|
|
|
|
return (uintptr_t) NewThread;
|
|
}
|
|
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
void CDECL _endthreadex(unsigned retval)
|
|
{
|
|
/*
|
|
* Just call the API function. Any CRT specific processing is done in
|
|
* DllMain DLL_THREAD_DETACH
|
|
*/
|
|
ExitThread(retval);
|
|
}
|
|
|
|
/* EOF */
|