| 32 | } |
| 33 | |
| 34 | static bool GetExtendedInfo(HANDLE hProcess, PROCESS_EXTENDED_BASIC_INFORMATION* info) { |
| 35 | ULONG len; |
| 36 | info->Size = sizeof(*info); |
| 37 | auto status = ::NtQueryInformationProcess(hProcess, ProcessBasicInformation, info, sizeof(*info), &len); |
| 38 | return NT_SUCCESS(status); |
| 39 | } |
| 40 | |
| 41 | uint32_t Process::GetId() const { |
| 42 | return ::GetProcessId(_handle.get()); |
no outgoing calls
no test coverage detected