include vmm.inc VMMcall _GetDescriptor, <Selector, VM, flags> mov ecx, eax ; zero in eax and edx if error or ecx, edx jz error mov [DescDWORD1], edx ; high doubleword of descriptor mov [DescDWORD2], eax ; low doubleword of descriptor
Retrieves a copy of the descriptor associated with the given LDT or GDT selector. Uses EAX, ECX, EDX, and Flags.
Selector
GDT or LDT selector.
VM
Handle of the virtual machine to which the specified LDT selector belongs. This parameter is ignored if the Selector parameter is a GDT selector.
flags
Operation flags. Must be 0.
This service ignores the high 16-bits of the Selector parameter; the 80386 CPU often sets these bits to random values when doubleword operations are performed on segment registers.
This service ignores the RPL bits of the selector.
See also _BuildDescriptorDWORDs, _SetDescriptor