47 lines
1.8 KiB
HTML
47 lines
1.8 KiB
HTML
<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		 Description
|
|
</U>
|
|
Autorun.c	 Media change notification (MCN) code
|
|
Class.c	 Main code base
|
|
Class.rc	 Resource file
|
|
Class.src	 Exports
|
|
Classp.h	 Private header
|
|
Classwmi.c	 WMI functionality
|
|
Create.c	 Create IRP code
|
|
Dictlib.c	 File system dictionary code
|
|
Lock.c	 Storage remove lock implementation
|
|
Makefile	 Makefile
|
|
Power.c	 Power code
|
|
Power.h	 Power code header file
|
|
Sources	 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>© 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
|
|
</HTML>
|