FlushVDMPointer

BOOL FlushVDMPointer(Addr, Size, Buffer, ProtectedMode)
IN ULONG  Addr;
IN USHORT  Size;
PBYTE  Buffer;
IN BOOL  ProtectedMode;

FlushVDMPointer flushes any data associated with the memory range. This is required due to the CPU emulator.

Parameters

Addr
The high word is segment or selector and the low word is offset.
Size
Specifies the range of the pointer.
Buffer
Specifies the address returned by GetVDMPointer.
ProtectedMode
If set to TRUE then the address given is selector: offset. Otherwise it is segment: offset.

Return Value

FlushVDMPointer returns TRUE if successful. Otherwise an error message is logged.

Comments

VDDs should use this function to ensure that a nonx86 machine CPU emulator gets a chance to flush any data associated with a memory range.

See Also

GetVDMPointer