PRB:Real-Mode Drivers Don't Support GetFileInformationByHandle

Last reviewed: September 27, 1995
Article ID: Q137234
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) version 4.0

SYMPTOMS

GetFileInformationByHandle returns ERROR_NOT_SUPPORTED when called for a file on a volume supported by a real-mode driver.

CAUSE

GetFileInformationByHandle relies on a new service which is not supported by real-mode drivers. The real-mode, handle-based services do not fill in more than a couple of the fields in the output structure.

GetFileInformationByHandle is useful for files that reside on volumes that are supported by protected mode drivers.

RESOLUTION

If you get back ERROR_NOT_SUPPORTED from a GetFileInformationByHandle call, you need to make a name-based call to get the equivalent information.

MS-DOS-based and 16-bit Windows-based applications can call Int 21h function 440Dh, sub function 6Fh (GetDriveMapInfo) to determine if a volume is supported by a protected mode driver.

STATUS

This behavior is by design.


Additional reference words: 4.00 Windows 95
KBCategory: kbprg kbprb
KBSubcategory: BseFileio


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: September 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.