mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:52:56 +00:00
This really needs to go in a branch. It needs heavy testing and can't coincide with the current shell32 due to PSDK interface changes
svn path=/branches/shell32_new-bringup/; revision=51893
This commit is contained in:
parent
4596e5e59b
commit
4019caae75
23116 changed files with 0 additions and 1109022 deletions
44
lib/sdk/crt/process/threadx.c
Normal file
44
lib/sdk/crt/process/threadx.c
Normal file
|
@ -0,0 +1,44 @@
|
|||
#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 */
|
Loading…
Add table
Add a link
Reference in a new issue