![]() |
|
#6
|
|||
|
|||
|
@gigaman:
About VirtualAlloc: dwSize in: Size of the region, in bytes. If the lpAddress parameter is NULL, this value is rounded up to the next page boundary. Otherwise, the allocated pages include all pages containing one or more bytes in the range from lpAddress to (lpAddress+dwSize). This means that a 2-byte range straddling a page boundary causes both pages to be included in the allocated region. so even if you allocate 1-byte using virtualAlloc, the system will reserve an entire page (4KB). |
| Thread Tools | |
| Display Modes | |
|
|