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

Function GetProcessPeb

WinSysCore/ApiSets.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#define API_SET_SCHEMA_ENTRY_FLAGS_SEALED 1
6
7static bool GetProcessPeb(HANDLE hProcess, PPEB peb) {
8 PROCESS_BASIC_INFORMATION info;
9 if (!NT_SUCCESS(::NtQueryInformationProcess(hProcess, ProcessBasicInformation, &info, sizeof(info), nullptr)))
10 return false;
11
12 return ::ReadProcessMemory(hProcess, info.PebBaseAddress, peb, sizeof(*peb), nullptr);
13}
14
15const std::vector<ApiSetEntry>& ApiSets::GetApiSets() const {
16 return _entries;

Callers 2

BuildMethod · 0.70
DbgkpPostModuleMessagesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected