Microsoft KB Archive/74471

{|
 * width="100%"|

Using Selectors from _Allocate_LDT_Selector Service

 * }

Q74471

-

The information in this article applies to:


 * Microsoft Windows Device Development Kit (DDK) for Windows, versions 3.0, 3.1

-

SUMMARY
In the Microsoft Windows environment, a selector created by the _Allocate_LDT_Selector service is returned in the AX register, the high- order word of EAX is usually 0 (zero).

If the service is successful, the returned selector is valid for the LDT in the target virtual machine (VM) specified in the VM parameter. If a driver or application uses the returned selector in a different VM, while the selector may or may not be valid in the LDT, it will not point to the same memory.

To access the same memory from multiple VMs, use the _Allocate_GDT_Selector service. If the application uses LDT selectors, be very careful to use them only in the VM for which they were built.

The _Allocate_GDT_Selector and _Allocate_LDT_Selector services are documented in the &quot;Microsoft Windows Device Driver Kit: Virtual Device Adaptation Guide.&quot;

Additional query words: 3.00 3.10 DDKVXD

Keywords :

Issue type :

Technology :