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.

96 lines
4.3 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>ParClass</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="MYSAMPLE">ParClass</A> </H2>
  10. <span style="color:#FF0000">[This is preliminary documentation and subject to change.]</span>
  11. <H3>SUMMARY</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  12. The sources in this directory build the parallel.sys driver that ships in Microsoft&#174; Windows&#174; 2000. ParClass is the bus driver for the "parallel bus." ParClass is responsible for creating the \DosDevices\LPTx device objects that user-mode applications use to access (read, write, and so on) the "raw" parallel port. ParClass is also responsible, as the bus driver, for detecting all parallel enumerable devices connected to the port and creating a PDO for each such device.<P>
  13. ParClass is a kernel-mode driver that runs on all platforms supported by Windows 2000. The driver compiles using both the 64-bit compiler and the x86 version of Microsoft Visual C&#174; 6.0; however, test coverage of the driver under 64-bit and x86 Visual C 6.0 is unknown. The driver supports Plug and Play and Power Management, but Power Management support is minimal.<P>
  14. <H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  15. Type <b>build -c</B> to do a clean build. Headers other than the standard headers include Parallel.h and Ntddpar.h.<P>
  16. <H3>RESOURCES</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  17. ParClass sample is a client of ParPort. <P>
  18. <H3>CODE TOUR</H3>
  19. <H4>File Manifest</H4>
  20. </FONT><U><PRE>File&#9;&#9;Description
  21. </U>
  22. Becp.c Bounded ECP (IEEE 1284.3)
  23. Byte.c PS/2 BiDirectional Byte mode support
  24. Debug.c Debug support
  25. Devobj.c Device object management
  26. Ecp.c Main ECP
  27. Epp.c Main EPP
  28. Errlog.c Error log
  29. Exports.c Exported functions for FDO loaded on top of ParClass PDO
  30. Hwecp.c Hardware ECP
  31. Hwepp.c Hardware EPP
  32. Ieee1284.c IEEE mode main support
  33. Initunld.c Initialization (DriverEntry) and unload
  34. Ioctl.c IOCTLs
  35. Nibble.c Nibble mode
  36. Openclos.c Open and Close
  37. P12843dl.c IEEE 1284.3 data link support (required for 1284.4 interface)
  38. Par12843.c IEEE 1284.3 daisy chain support
  39. Parclass.c Globals
  40. Parharns.c Test harness interface
  41. Parloop.c Write loop for SPP mode
  42. Pnp.c Main PnP file
  43. Pnpfdo.c PnP for ParClass FDO
  44. Pnppdo.c PnP for ParClass PDOs
  45. Port.c Interface to ParPort
  46. Power.c Power Management
  47. Queue.c Queue management utilities
  48. Readwrit.c Main Read/Write support
  49. Rescan.c Rescan for changes in connected devices
  50. Spp.c SPP mode (slow/safe)
  51. Sppieee.c IEEE compliant SPP mode does not work with non-compliant Devices
  52. Swecp.c Software ECP
  53. Swepp.c Software EPP
  54. Test.c Test support
  55. Thread.c Worker thread
  56. Util.c Misc utilities
  57. Wmipdo.c WMI support for PDOs
  58. Parclass.rc Resources
  59. Parlog.mc Error log definitions
  60. Debug.h Forward declarations for debug macros
  61. Ecp.h Forward declarations for ecp.c
  62. Funcdecl.h Forward declarations for driver
  63. Hwecp.h Forward declarations for hwecp.c
  64. Parclass.h Forward declarations/Structures driver
  65. Parharns.h Forward declarations for parharns.c
  66. Parlog.h Defines for error logging
  67. Pch.h Precompiled header
  68. Queue.h Forward declarations for queue.c
  69. Readwrit.h Forward declarations for readwrit.c
  70. Test.h Forward declarations for test.c
  71. Util.h Forward declarations for util.c
  72. Wmipdo.h Forward declarations for wmipdo.c
  73. Sources The sources file
  74. Parclass.htm The documentation for this sample (this file).</FONT><FONT FACE="Verdana" SIZE=2><P>
  75. <H4>Programming Tour</H4></pre></FONT><FONT FACE="Verdana" SIZE=2><P>
  76. This is the full source for the PARALLEL.SYS driver. See code and comments in the source files.<P>
  77. </FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
  78. <TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
  79. <TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
  80. <P></TD>
  81. </TR>
  82. </TABLE>
  83. <FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
  84. </HTML>