| 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( |
no outgoing calls
no test coverage detected