Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.8 KiB

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
  4. <META NAME="Generator" CONTENT="Microsoft Word 97">
  5. <TITLE>ClassPnP</TITLE>
  6. <META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
  7. </HEAD>
  8. <BODY TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff" leftmargin="8">
  9. <FONT FACE="Verdana"><H2><A NAME="classpnp">ClassPnP</A> </H2>
  10. <H3>Summary</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  11. 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>
  12. No INF file is needed to install this library.<P>
  13. <H3>Building the Sample</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  14. To build the sample, run <B>build</B>. Once built, one binary will be created: classpnp.sys.<P>
  15. <H3>CODE TOUR</H3>
  16. <H4>File Manifest</H4>
  17. </FONT><U><PRE>File&#9;&#9; Description
  18. </U>
  19. Autorun.c&#9; Media change notification (MCN) code
  20. Class.c&#9; Main code base
  21. Class.rc&#9; Resource file
  22. Class.src&#9; Exports
  23. Classp.h&#9; Private header
  24. Classwmi.c&#9; WMI functionality
  25. Create.c&#9; Create IRP code
  26. Dictlib.c&#9; File system dictionary code
  27. Lock.c&#9; Storage remove lock implementation
  28. Makefile&#9; Makefile
  29. Power.c&#9; Power code
  30. Power.h&#9; Power code header file
  31. Sources&#9; Sources file
  32. </FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
  33. <TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
  34. <TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
  35. <P></TD>
  36. </TR>
  37. </TABLE>
  38. <FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
  39. </HTML>