MCPcopy Create free account
hub / github.com/Compiled-Code/eac-mapper / get_peprocess

Method get_peprocess

dependencies/vdm/vdm_ctx/vdm_ctx.hpp:81–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 __forceinline auto get_peprocess(std::uint32_t pid) -> PEPROCESS
82 {
83 static const auto ps_lookup_peproc =
84 util::get_kmodule_export(
85 "ntoskrnl.exe",
86 "PsLookupProcessByProcessId");
87
88 PEPROCESS peproc = nullptr;
89 this->syscall<PsLookupProcessByProcessId>(
90 ps_lookup_peproc,
91 (HANDLE)pid,
92 &peproc
93 );
94 return peproc;
95 }
96 private:
97 void locate_syscall(std::uintptr_t begin, std::uintptr_t end) const;
98 bool valid_syscall(void* syscall_addr) const;

Callers

nothing calls this directly

Calls 1

get_kmodule_exportFunction · 0.85

Tested by

no test coverage detected