-
-
Save mvankuipers/56dbc80a33871a2350da21029732af52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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