Leaked source code of windows server 2003
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.

185 lines
7.7 KiB

  1. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2. xmlns:w="urn:schemas-microsoft-com:office:word"
  3. xmlns="http://www.w3.org/TR/REC-html40">
  4. <head>
  5. <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
  6. <meta name=ProgId content=Word.Document>
  7. <meta name=Generator content="Microsoft Word 10">
  8. <meta name=Originator content="Microsoft Word 10">
  9. <link rel=File-List href="pjlmon_files/filelist.xml">
  10. <title>PJLmon</title>
  11. <!--[if gte mso 9]><xml>
  12. <w:WordDocument>
  13. <w:GrammarState>Clean</w:GrammarState>
  14. <w:Compatibility>
  15. <w:ApplyBreakingRules/>
  16. </w:Compatibility>
  17. <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  18. </w:WordDocument>
  19. </xml><![endif]-->
  20. <style>
  21. <!--
  22. /* Font Definitions */
  23. @font-face
  24. {font-family:Verdana;
  25. panose-1:2 11 6 4 3 5 4 4 2 4;
  26. mso-font-charset:0;
  27. mso-generic-font-family:swiss;
  28. mso-font-pitch:variable;
  29. mso-font-signature:536871559 0 0 0 415 0;}
  30. @font-face
  31. {font-family:"MS Sans Serif";
  32. panose-1:0 0 0 0 0 0 0 0 0 0;
  33. mso-font-alt:"Times New Roman";
  34. mso-font-charset:0;
  35. mso-generic-font-family:roman;
  36. mso-font-format:other;
  37. mso-font-pitch:auto;
  38. mso-font-signature:0 0 0 0 0 0;}
  39. /* Style Definitions */
  40. p.MsoNormal, li.MsoNormal, div.MsoNormal
  41. {mso-style-parent:"";
  42. margin:0in;
  43. margin-bottom:.0001pt;
  44. mso-pagination:widow-orphan;
  45. font-size:12.0pt;
  46. font-family:"Times New Roman";
  47. mso-fareast-font-family:"Times New Roman";}
  48. a:link, span.MsoHyperlink
  49. {color:blue;
  50. text-decoration:underline;
  51. text-underline:single;}
  52. p
  53. {font-size:12.0pt;
  54. font-family:"Times New Roman";
  55. mso-fareast-font-family:"Times New Roman";}
  56. pre
  57. {margin-top:0in;
  58. margin-bottom:0in;
  59. margin-bottom:.0001pt;
  60. font-size:10.0pt;
  61. font-family:"Courier New";
  62. mso-fareast-font-family:"Times New Roman";}
  63. span.GramE
  64. {mso-style-name:"";
  65. mso-gram-e:yes;}
  66. @page Section1
  67. {size:8.5in 11.0in;
  68. margin:1.0in 1.25in 1.0in 1.25in;
  69. mso-header-margin:.5in;
  70. mso-footer-margin:.5in;
  71. mso-paper-source:0;}
  72. div.Section1
  73. {page:Section1;}
  74. -->
  75. </style>
  76. <!--[if gte mso 10]>
  77. <style>
  78. /* Style Definitions */
  79. table.MsoNormalTable
  80. {mso-style-name:"Table Normal";
  81. mso-tstyle-rowband-size:0;
  82. mso-tstyle-colband-size:0;
  83. mso-style-noshow:yes;
  84. mso-style-parent:"";
  85. mso-padding-alt:0in 5.4pt 0in 5.4pt;
  86. mso-para-margin:0in;
  87. mso-para-margin-bottom:.0001pt;
  88. mso-pagination:widow-orphan;
  89. font-size:10.0pt;
  90. font-family:"Times New Roman";}
  91. </style>
  92. <![endif]-->
  93. </head>
  94. <body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
  95. <div class=Section1>
  96. <h2><span style='font-family:Verdana'>PJLMon: Sample Language Monitor<o:p></o:p></span></h2>
  97. <p><span style='font-size:10.0pt;font-family:Arial;color:red'>[This is
  98. preliminary documentation and subject to change.]</span><span style='font-size:
  99. 10.0pt;font-family:Verdana'><o:p></o:p></span></p>
  100. <h3><span style='font-family:Verdana'>SUMMARY<o:p></o:p></span></h3>
  101. <p><span style='font-size:10.0pt;font-family:Verdana'>A language monitor
  102. provides a full duplex communications path between the print spooler and
  103. bidirectional printers that are capable of providing software-accessible status
  104. information and adds printer control information, such as commands defined by a
  105. printer job language, to the data stream. <o:p></o:p></span></p>
  106. <p><span style='font-size:10.0pt;font-family:Verdana'>PJLMon.dll supports
  107. Printer Job Language (PJL) and provides bidirectional communication for PJL
  108. printers. <o:p></o:p></span></p>
  109. <p><span style='font-size:10.0pt;font-family:Verdana'>Please refer to the DDK
  110. documentation for more information about print monitors. <o:p></o:p></span></p>
  111. <p><span style='font-size:10.0pt;font-family:Verdana'>This sample runs on the <span
  112. class=GramE>x86 platform</span> and is 64-bit compliant. <o:p></o:p></span></p>
  113. <h3><span style='font-family:Verdana'>BUILDING THE SAMPLE<o:p></o:p></span></h3>
  114. <p><span style='font-size:10.0pt;font-family:Verdana'>The code must be built
  115. using the build environment shipped with the DDK. To build the sample, run <b>build</b>
  116. from this directory. The DLL will be placed in the i386 platform directory. <o:p></o:p></span></p>
  117. <p><span style='font-size:10.0pt;font-family:Verdana'>To install a language
  118. monitor, its file name must be listed in an .inf file by using a
  119. LanguageMonitor entry. This entry must be included for every printer driver that
  120. controls a printer requiring the use of the language monitor. <o:p></o:p></span></p>
  121. <p><span style='font-size:10.0pt;font-family:Verdana'>Once built, the sample
  122. will produce four binaries: Pjlmon.dll, Pjlmon.lib (an export lib), Pjlmon.exp,
  123. and, if the sample is built in a checked environment, Pjlmon.pdb. <o:p></o:p></span></p>
  124. <h3><span style='font-family:Verdana'>CODE TOUR<o:p></o:p></span></h3>
  125. <h4><span style='font-family:Verdana'>File Manifest<o:p></o:p></span></h4>
  126. <pre><u>File<span style='mso-tab-count:2'>���������� </span>Description<o:p></o:p></u></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Local.h<span
  127. style='mso-tab-count:1'> </span> <span style='mso-tab-count:1'>������ </span>Header for global declarations and function prototypes<o:p></o:p></pre><pre>Makefile<span
  128. style='mso-tab-count:1'>������ </span>Generic file for building the code sample<o:p></o:p></pre><pre>Parsepjl.c<span
  129. style='mso-tab-count:1'>���� </span>Source module that handles parsing of PJL printer response streams<o:p></o:p></pre><pre>Parsepjl.h<span
  130. style='mso-tab-count:1'>���� </span>Header for PARSEPJL.C <o:p></o:p></pre><pre>Pjlmon.c<span
  131. style='mso-tab-count:1'>������ </span>Source module that contains the exported functions<o:p></o:p></pre><pre>Pjlmon.def<span
  132. style='mso-tab-count:1'>���� </span>File that list the exported functions<o:p></o:p></pre><pre>Pjlmon.rc<span
  133. style='mso-tab-count:1'>����� </span>Resource <span class=GramE>file</span> for the module<o:p></o:p></pre><pre>Precomp.h<span
  134. style='mso-tab-count:1'>����� </span>Header that includes the headers to pre-compile<o:p></o:p></pre><pre>Pjlmon.htm<span
  135. style='mso-tab-count:1'>���� </span>Documentation for this sample (this file)<o:p></o:p></pre><pre>Sources<span
  136. style='mso-tab-count:1'> </span> <span style='mso-tab-count:1'>������ </span>Generic file for building the code sample<o:p></o:p></pre><pre>Spltypes.h<span
  137. style='mso-tab-count:1'>���� </span>Header for PJLMON.C <o:p></o:p></pre><pre>Util.c<span
  138. style='mso-tab-count:1'>� </span> <span style='mso-tab-count:1'>������ </span>The source module for utility routines<o:p></o:p></pre>
  139. <p align=center style='text-align:center;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span
  140. style='font-size:10.0pt;font-family:"Courier New"'><a href="#top"><span
  141. style='font-family:Verdana'>Top of page</span></a></span><span
  142. style='font-size:10.0pt;font-family:Verdana;mso-bidi-font-family:"Courier New"'>
  143. <o:p></o:p></span></p>
  144. <pre><o:p>&nbsp;</o:p></pre>
  145. <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=624
  146. style='width:6.5in;mso-cellspacing:0in'>
  147. <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes;height:1.5pt'>
  148. <td style='background:aqua;padding:.75pt .75pt .75pt .75pt;height:1.5pt'>
  149. <p class=MsoNormal><o:p>&nbsp;</o:p></p>
  150. </td>
  151. </tr>
  152. </table>
  153. <pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre>
  154. <p style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span
  155. style='font-size:7.5pt;font-family:"MS Sans Serif";mso-bidi-font-family:"Courier New"'>�
  156. 1999 Microsoft Corporation</span><span style='font-size:10.0pt;font-family:
  157. Verdana;mso-bidi-font-family:"Courier New"'> <o:p></o:p></span></p>
  158. </div>
  159. </body>
  160. </html>