Questions tagged [virtualalloc]

64 questions
0
votes
3 answers

Win32 WriteProcessMemory() magical offset value

I'm trying to read the data in a Win32 ListView owned by another process. Unfortunately, my WriteProcessMemory() call fails with the error "This function is not supported on this system." when I specify "NULL" for the base address in my…
PaulH
  • 7,759
  • 8
  • 66
  • 143
0
votes
1 answer

determine the address of the allocated region in VirtualAlloc?

According to this VirtualAlloc allows the value of address parameter to be null and the "the system determines where to allocate the region." The question is, is there a way to know the allocated address? If yes, how?
srh snl
  • 797
  • 1
  • 19
  • 42
0
votes
1 answer

Executable memory within 32 bits displacement of code area

Writing a JIT compiler in C++ on 64-bit Windows, generated code will sometimes need to call run-time functions that are written in C++. At the moment I'm allocating memory in which to place the generated code with VirtualAlloc(0, bytes, MEM_COMMIT,…
rwallace
  • 31,405
  • 40
  • 123
  • 242
0
votes
0 answers

Mapping a page with a specific address

I'm trying to map a virtual memory page using VirtualAlloc, but it's an specific address outside 8TB Windows 7 64 bits allowed range, i've read at Windows Internals book this address range is used for "page table self mapping structures", anyway,is…
1 2 3 4
5