#include <msvcrt/process.h>
+/*
+ * @unimplemented
+ */
unsigned long _beginthreadex(
void* security,
unsigned stack_size,
* Just call the API function. Any CRT specific processing is done in
* DllMain DLL_THREAD_ATTACH
*/
- NewThread = CreateThread(security, stack_size, start_address, arglist, initflag, thrdaddr);
+ NewThread = CreateThread ( security, stack_size,
+ (LPTHREAD_START_ROUTINE)start_address,
+ arglist, initflag, (PULONG)thrdaddr );
if (NULL == NewThread)
{
/* FIXME map GetLastError() to errno */
- errno = ENOSYS;
+ __set_errno ( ENOSYS );
}
return (unsigned long) NewThread;
}
+/*
+ * @implemented
+ */
void _endthreadex(unsigned retval)
{
/*