MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetExtendedInfo

Function GetExtendedInfo

WinSysCore/Processes.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static 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
41uint32_t Process::GetId() const {
42 return ::GetProcessId(_handle.get());

Callers 3

IsProtectedMethod · 0.85
IsSecureMethod · 0.85
IsWow64ProcessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected