PSS ID Number: Q126286
Article Last Modified on 03-12-2002
Zwcf.exe is a sample that demonstrates how to open a file from a Windows NT
kernel-mode device driver using ZwCreateFile(). Once the file is open, it
reads the contents of this file into a buffer using ZwReadFile(). After
reading the file, it is closed using ZwClose().
NOTE: When you use the sample, the Info.dat file in the
\SystemRoot\System32\Drivers directory must be available.
Microsoft Windows 2000 and Windows XP provides a new object attribute, OBJ_KERNEL_HANDLE, that can be used with ZwCreateFile(). This attribute specifies to the system that the handle returned by ZwCreateFile() should reference the system context rather then any particular user mode context that it may have been created in.
NOTE: This object is included in the Windows XP DDK.
The following file is available for download from the Microsoft Download Center:
Zwcf.exeFor additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online ServicesMicrosoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.
Additional query words:
Keywords: kbfile kbSample
Issue Type:
Technology: kbAudDeveloper kbWinDDKSearch kbWin32sSearch kbWin32DDKSearch kbWin32DDKNT350 kbWin32DDKNT351 kbWin32DDKNT400 kbWin32DDKNTSearch