windows-nt/Source/XPSP1/NT/drivers/storage/classpnp/classpnp.htm

47 lines
1.8 KiB
HTML
Raw Normal View History

2020-09-26 03:20:57 -05:00
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>ClassPnP</TITLE>
<META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
</HEAD>
<BODY TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff" leftmargin="8">
<FONT FACE="Verdana"><H2><A NAME="classpnp">ClassPnP</A> </H2>
<H3>Summary</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
This is the library for all storage drivers. It simplifies writing a storage driver by implementing 90 percent of the code required to support Plug and Play, Power Management, et cetera. This library is used by disk.sys, cdrom.sys and the tape class drivers.<P>
No INF file is needed to install this library.<P>
<H3>Building the Sample</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
To build the sample, run <B>build</B>. Once built, one binary will be created: classpnp.sys.<P>
<H3>CODE TOUR</H3>
<H4>File Manifest</H4>
</FONT><U><PRE>File&#9;&#9; Description
</U>
Autorun.c&#9; Media change notification (MCN) code
Class.c&#9; Main code base
Class.rc&#9; Resource file
Class.src&#9; Exports
Classp.h&#9; Private header
Classwmi.c&#9; WMI functionality
Create.c&#9; Create IRP code
Dictlib.c&#9; File system dictionary code
Lock.c&#9; Storage remove lock implementation
Makefile&#9; Makefile
Power.c&#9; Power code
Power.h&#9; Power code header file
Sources&#9; Sources file
</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>&copy; 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
</HTML>