?? krnldrvr.htm
字號:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-
1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>Krnldrvr</TITLE>
</HEAD>
<BODY LINK="#0000ff">
<FONT FACE="Verdana" SIZE=5><H2>Krnldrvr</H2>
</FONT><FONT FACE="Verdana" SIZE=2>
<P><span style="color:#FF0000;font-size:10pt;font-family:Arial">[This is preliminary
documentation and subject to change.]</span></P>
<H3>SUMMARY</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
This is the Microsoft® Windows NT® kernel driver component of the DOSIOCTL sample.<P>
This kernel driver's sole responsibility is to respond to a single IOCTL and return a fixed DWORD of information. The interesting trick is that this driver places the DWORD directly in the buffer of a DOS application.<P>
This is accomplished by using a DOS driver and a VDD. An IOCTL read is issued from the DOS application, and the pointer supplied in that request is passed along to this driver. Note that the IOCTL used is <I>buffered</I>, so the I/O subsystem need only do a single copy.<P>
The data passed here is the DWORD 0x12345678. This data will then be displayed by the DOS application.<P>
The drivers supplied in this sample are only skeletons, but having the working communication mechanism in place provides a good starting point for building a new driver.<P>
<H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana"
SIZE=2><P>
To build this sample, enter the free or checked build environment and run <B>build</B>
from the \\Ntddk\Vdd\Dosioctl\Krnldrvr directory. A successful build produces the
binary Krnldrvr.sys.<P>
<H3>CODE TOUR</H3>
<H4>File Manifest</H4>
</FONT><U><PRE>File		Description
</U>
Krnldrvr.htm	The documentation for these samples (this file)
Sources	 The generic file for building the code sample
Makefile	Drivers makefile
Krnldrvr.c	The sample source for Krnldrvr
Krnldrvr.h	The header file for Krnldrvr.c source
Krnldrvr.rc	The resource file for Krnldrvr.c source
<P>
</FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
<TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
<TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
<P></TD>
</TR>
</TABLE>
<FONT FACE="MS Sans Serif" SIZE=1><P>© 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -