Programming Applications for Microsoft Windows (Dv-Mps General)

Author: Jeffrey Richter
4.0

Comments

by anonymous   2018-03-18
@PeterCordes Windows also reserves the top 64-KB of the user address space (64-KB is the allocation granularity on Windows). According to [this](https://www.amazon.com/Programming-Applications-Microsoft-Windows-General/dp/1572319968) old book, "Microsoft reserves this partition because doing so makes implementing the operating system easier for Microsoft. You could easily imagine code like this: `BYTE bBuf[70000]; DWORD dwNumBytesWritten; WriteProcessMemory(GetCurrentProcess(), (PVOID) 0x7FFEEE90, bBuf, sizeof(bBuf), &dwNumBytesWritten); `"