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

Function get_file_header

dependencies/vdm/util/util.hpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 })();
78
79 __forceinline auto get_file_header(void* base_addr) -> PIMAGE_FILE_HEADER
80 {
81 PIMAGE_DOS_HEADER dos_headers =
82 reinterpret_cast<PIMAGE_DOS_HEADER>(base_addr);
83
84 PIMAGE_NT_HEADERS nt_headers =
85 reinterpret_cast<PIMAGE_NT_HEADERS>(
86 reinterpret_cast<DWORD_PTR>(base_addr) + dos_headers->e_lfanew);
87
88 return &nt_headers->FileHeader;
89 }
90
91 __forceinline auto get_kmodule_base(const char* module_name) -> std::uintptr_t
92 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected