Using Selectors from _Allocate_LDT_Selector Service

Last reviewed: February 16, 1995
Article ID: Q74471
The information in this article applies to:
  • Microsoft Windows Device Driver Kit (DDK) for Windows versions 3.0 3.1

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 "Microsoft Windows Device Driver Kit: Virtual Device Adaptation Guide."


Additional reference words: 3.00 3.10 DDKVXD
KBCategory: kbprg
KBSubcategory: D3MiscVmm


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 16, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.