PBYTE GetVDMPointer(Address, Size, ProtectedMode)
IN ULONG Address;
IN ULONG Size;
IN BOOL ProtectedMode;
GetVDMPointer returns the linear address for a given x86 address.
Parameters
Address
The high word is a segment or selector, and the low word is the offset.
Size
Specifies the range of the pointer.
ProtectedMode
If set to TRUE, then the high word is a selector. Otherwise, the highword is a segment.
Return Value
GetVDMPointer returns the linear address.
Comments
The VDDs should use this function to convert an x86-type address rather than shifting the segment by four and adding the offset. This makes linear addresses platform-independent.
See Also
FlushVdmPointer, FreeVdmPointer