Knowledge Base

PRB:Real-Mode Drivers Don't Support GetFileInformationByHandle

Article ID: 137234

Article Last Modified on 3/5/1999


APPLIES TO


This article was previously published under Q137234

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 query words: 4.00 Windows 95 win95fest

Keywords: KB137234