ntoskrnl.exe: Added PsCreateSystemThread.

This commit is contained in:
Carroll Vance 2007-09-20 17:44:46 -05:00 committed by Alexandre Julliard
parent 50539e7115
commit 8d1a85914a
2 changed files with 14 additions and 1 deletions

View File

@ -477,6 +477,19 @@ void WINAPI MmFreeNonCachedMemory( void *addr, SIZE_T size )
VirtualFree( addr, 0, MEM_RELEASE );
}
/***********************************************************************
* PsCreateSystemThread (NTOSKRNL.EXE.@)
*/
NTSTATUS WINAPI PsCreateSystemThread(PHANDLE ThreadHandle, ULONG DesiredAccess,
POBJECT_ATTRIBUTES ObjectAttributes,
HANDLE ProcessHandle, PCLIENT_ID ClientId,
PVOID StartRoutine, PVOID StartContext)
{
if (!ProcessHandle) ProcessHandle = GetCurrentProcess();
return RtlCreateUserThread(ProcessHandle, 0, FALSE, 0, 0,
0, StartRoutine, StartContext,
ThreadHandle, ClientId);
}
/***********************************************************************
* PsGetCurrentProcessId (NTOSKRNL.EXE.@)

View File

@ -843,7 +843,7 @@
@ stub PsChargeProcessPagedPoolQuota
@ stub PsChargeProcessPoolQuota
@ stub PsCreateSystemProcess
@ stub PsCreateSystemThread
@ stdcall PsCreateSystemThread(ptr long ptr long ptr ptr ptr)
@ stub PsDereferenceImpersonationToken
@ stub PsDereferencePrimaryToken
@ stub PsDisableImpersonation