Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. void* allocation = VirtualAlloc(NULL, 4096, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);
  2. void* desiredNextAllocation = (char*)allocation + 4096;
  3. MEMORY_BASIC_INFORMATION info;
  4. size_t memory_info = VirtualQuery(desiredNextAllocation, &info, sizeof(info));
  5. void* extended = VirtualAlloc(desiredNextAllocation, 4096, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);
  6.  
  7. BaseAddress 0x00000000000d1000 void *
  8. AllocationBase 0x0000000000000000 void *
  9. AllocationProtect 0x00000000 unsigned long
  10. RegionSize 0x00000000000ff000 unsigned __int64
  11. State 0x00010000 unsigned long
  12. Protect 0x00000001 unsigned long
  13. Type 0x00000000 unsigned long
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement