| 25 | |
| 26 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 27 | NTSTATUS OpenProcess( |
| 28 | HANDLE ProcessId, |
| 29 | OUT PHANDLE hProcess, |
| 30 | ACCESS_MASK AccessMask, |
| 31 | ULONG Attributes |
| 32 | ) { |
| 33 | CLIENT_ID ClientId; |
| 34 | ClientId.UniqueProcess = ProcessId; |
| 35 | ClientId.UniqueThread = 0; |
| 36 | |
| 37 | OBJECT_ATTRIBUTES ObjectAttributes; |
| 38 | InitializeObjectAttributes(&ObjectAttributes, NULL, Attributes, NULL, NULL); |
| 39 | |
| 40 | return ZwOpenProcess(hProcess, AccessMask, &ObjectAttributes, &ClientId); |
| 41 | } |
| 42 | |
| 43 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 44 | NTSTATUS OpenProcessByPointer( |
no outgoing calls
no test coverage detected