DOC: Interrupt 2Fh Function 1684h Name-based Usage

Last reviewed: October 20, 1997
Article ID: Q175378
The information in this article applies to:
  • Windows 95 Device Driver Kit (DDK), version 4.0 on the following platform: - Windows 95

SUMMARY

The Windows 95 Device Driver Kit documentation describes how a 16-bit ring 3 application can retrieve the entry point for a VxD's service functions, by specifying the VxD's unique device ID. The documentation omitted an alternate way to specify a VxD by indicating its VxD name. The sample below demonstrates how to do this:

   xor   bx, bx      ; bx = 0 indicates name-based
   les   di, lpName  ; Name of device being queried
   int   2Fh

   mov   word ptr [DevAddr], di
   mov   word ptr [DevAddr+2], es ; ES:DI contains entry point addr
   or    di, word ptr [DevAddr+2] ; or contains 0:0 on error
   jz    Error

In the documentation of the parameters, please add

   DeviceID
      Identifies a virtual device. If this value is zero,
      then the ES:DI registers point to an 8-character
      space-padded case-sensitive device name.
Keywords          : NTDDKVDD
Version           : WINDOWS:4.0
Platform          : WINDOWS
Hardware          : x86
Issue type        : kbdocerr


================================================================================


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: October 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.