5 #include <msvcrt/errno.h>
6 #include <msvcrt/process.h>
12 unsigned long _beginthreadex(
15 unsigned (__stdcall *start_address)(void*),
23 * Just call the API function. Any CRT specific processing is done in
24 * DllMain DLL_THREAD_ATTACH
26 NewThread = CreateThread ( security, stack_size,
27 (LPTHREAD_START_ROUTINE)start_address,
28 arglist, initflag, (PULONG)thrdaddr );
29 if (NULL == NewThread)
31 /* FIXME map GetLastError() to errno */
32 __set_errno ( ENOSYS );
35 return (unsigned long) NewThread;
42 void _endthreadex(unsigned retval)
45 * Just call the API function. Any CRT specific processing is done in
46 * DllMain DLL_THREAD_DETACH