MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / CreateSystemThread

Function CreateSystemThread

Source/Client/NM_Sys/API/ProcessesUtils.cpp:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191 _IRQL_requires_max_(PASSIVE_LEVEL)
192 NTSTATUS CreateSystemThread(OPTIONAL HANDLE hProcess, PKSTART_ROUTINE StartAddress, PVOID Argument, OUT PHANDLE hThread, OUT PCLIENT_ID ClientId)
193 {
194 OBJECT_ATTRIBUTES ObjectAttributes;
195 InitializeObjectAttributes(&ObjectAttributes, NULL, OBJ_KERNEL_HANDLE, NULL, NULL);
196
197 return PsCreateSystemThread(hThread, GENERIC_ALL, &ObjectAttributes, hProcess, ClientId, StartAddress, Argument);
198 }
199
200 _IRQL_requires_max_(PASSIVE_LEVEL)
201 NTSTATUS CreateSystemThread(PKSTART_ROUTINE StartAddress, PVOID Argument, OUT PHANDLE hThread)

Callers 2

KbCreateSystemThreadFunction · 0.85
KbCreateDriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected