Programming Applications for Microsoft Windows (Dv-Mps General)

Author: Jeffrey Richter


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]( 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); `"