BOOL VDDFreeMem(hVdd, Address, Size)
IN HANDLE hVdd;
IN PVOID Address;
IN DWORD Size;
VDDFreeMem releases previously allocated memory at a given virtual address.
Parameters
hVdd
Identifies the VDD.
Address
Specifies the address where memory will be freed.
Size
Specifies the number of bytes of memory to free.
Return Value
VDDFreeMem returns TRUE if successful. If the function fails then FALSE is returned and an error is logged. The extended error code available is ERROR_INVALID_ADDRESS, indicating an invalid address error.
Comments
The freed Address is page-aligned downwards, and Size is stretched upwards to be page-aligned.
Address is relative to DOS 0:0. That means GetVDMPointer should not be called on this address before calling VDDAllocMem.
This address is the same as that provided by the hook handler for memory-mapped I/O.
See Also
VDDAllocMem, VDDInstallMemoryHook