Microsoft KB Archive/259897

{|
 * width="100%"|

DOC: ZwCreateFile in Microsoft Windows 98

 * }

Q259897

-

The information in this article applies to:


 * Microsoft Windows 98 Driver Development Kit (DDK)

-

SUMMARY
The ZwCreateFile handle cannot create directory entries in Windows 98.

MORE INFORMATION
ZwCreateFile cannot create directory entries when it is called from a Windows Driver Model (WDM) driver. ZwCreateFile is handled by WDMFS, which internally calls IFSMgr_Ring0_FileIO, and then WDMFS masks directory attributes before calling IFSMgr_Ring0_FileIO. This is because IFSMgr_Ring0_FileIO cannot create directory entries.

The Windows 98 DDK documentation incorrectly states that ZwCreateFile can be used to create directory entries. This is a documentation error.

Drivers can call Int 21h to create directories, by using Begin_Nested_Exec and End_Nested_Exec.

Additional query words: IFSMgr_Ring0_FileIO ZwCreateFile

Keywords : kbdocerr kbDSupport

Issue type : kbbug

Technology : kbAudDeveloper kbWin98search kbWinDDKSearch kbWin98DDKSearch kbWin98DDK