BOOL VDDFreeMem(hVdd, Address, Size)
IN HANDLE hVdd;
IN PVOID Address;
IN DWORD Size;
VDDFreeMem releases previously allocated memory at a given virtual address.
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.
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.
VDDAllocMem, VDDInstallMemoryHook