include vmm.inc
VMMCall _PageGetSizeAddr, <hMem, flags>
test eax, eax ; returns zero if error
mov [Pages], eax ; number of pages in memory block
mov [Address], edx ; ring-0 linear address of memory block
Returns the size and linear address of a memory block. Uses EAX, ECX, EDX, and Flags.
The return value specifies the number of reserved pages for the memory block, which may be greater than the number of committed pages. For example, if the _PageReAllocate service is used to reduce the size of a memory block, the number of virtual pages reserved for that block may remain unchanged.
_PageAllocate, _PageReAllocate