Skip to content

Instantly share code, notes, and snippets.

@schrodyn
Forked from herrcore/pebase.h
Created July 1, 2023 22:00
Show Gist options
  • Save schrodyn/6ca82fa3deefb413c3316ae8591bcdd5 to your computer and use it in GitHub Desktop.
Save schrodyn/6ca82fa3deefb413c3316ae8591bcdd5 to your computer and use it in GitHub Desktop.
PE_BASE struct to help with IDA markup of PE access
union PE_BASE {
PVOID baseAddress;
IMAGE_DOS_HEADER *mz;
IMAGE_NT_HEADERS *pe;
};
union PE_BASE64 {
PVOID baseAddress;
IMAGE_DOS_HEADER *mz;
IMAGE_NT_HEADERS64 *pe;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment