Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Allocate a buffer within our process.
PVOID Private = VirtualAlloc(NULL, 4096, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
// Use the memory to make sure it's resident.
reinterpret_cast<PBYTE>(Private)[0] = 0xFF;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.