MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / CreateSystemThread

Function CreateSystemThread

Kernel-Bridge/API/ProcessesUtils.cpp:244–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243 _IRQL_requires_max_(PASSIVE_LEVEL)
244 NTSTATUS CreateSystemThread(
245 OPTIONAL HANDLE hProcess,
246 PKSTART_ROUTINE StartAddress,
247 PVOID Argument,
248 OUT PHANDLE hThread,
249 OUT PCLIENT_ID ClientId
250 ) {
251 OBJECT_ATTRIBUTES ObjectAttributes;
252 InitializeObjectAttributes(&ObjectAttributes, NULL, OBJ_KERNEL_HANDLE, NULL, NULL);
253 return PsCreateSystemThread(hThread, GENERIC_ALL, &ObjectAttributes, hProcess, ClientId, StartAddress, Argument);
254 }
255
256 _IRQL_requires_max_(PASSIVE_LEVEL)
257 NTSTATUS CreateSystemThread(

Callers 2

KbCreateSystemThreadFunction · 0.85
KbCreateDriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected