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.

200 lines
8.4 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:SpellingState>Clean</w:SpellingState>
  14. <w:GrammarState>Clean</w:GrammarState>
  15. <w:Compatibility>
  16. <w:ApplyBreakingRules/>
  17. </w:Compatibility>
  18. <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  19. </w:WordDocument>
  20. </xml><![endif]-->
  21. <style>
  22. <!--
  23. /* Font Definitions */
  24. @font-face
  25. {font-family:Verdana;
  26. panose-1:2 11 6 4 3 5 4 4 2 4;
  27. mso-font-charset:0;
  28. mso-generic-font-family:swiss;
  29. mso-font-pitch:variable;
  30. mso-font-signature:536871559 0 0 0 415 0;}
  31. @font-face
  32. {font-family:"MS Sans Serif";
  33. panose-1:0 0 0 0 0 0 0 0 0 0;
  34. mso-font-charset:0;
  35. mso-generic-font-family:swiss;
  36. mso-font-format:other;
  37. mso-font-pitch:variable;
  38. mso-font-signature:3 0 0 0 1 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. a:visited, span.MsoHyperlinkFollowed
  53. {color:blue;
  54. text-decoration:underline;
  55. text-underline:single;}
  56. p
  57. {mso-margin-top-alt:auto;
  58. margin-right:0in;
  59. mso-margin-bottom-alt:auto;
  60. margin-left:0in;
  61. mso-pagination:widow-orphan;
  62. font-size:12.0pt;
  63. font-family:"Times New Roman";
  64. mso-fareast-font-family:"Times New Roman";}
  65. pre
  66. {margin:0in;
  67. margin-bottom:.0001pt;
  68. mso-pagination:widow-orphan;
  69. 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;
  70. font-size:10.0pt;
  71. font-family:"Courier New";
  72. mso-fareast-font-family:"Times New Roman";}
  73. span.SpellE
  74. {mso-style-name:"";
  75. mso-spl-e:yes;}
  76. span.GramE
  77. {mso-style-name:"";
  78. mso-gram-e:yes;}
  79. @page Section1
  80. {size:8.5in 11.0in;
  81. margin:1.0in 1.25in 1.0in 1.25in;
  82. mso-header-margin:.5in;
  83. mso-footer-margin:.5in;
  84. mso-paper-source:0;}
  85. div.Section1
  86. {page:Section1;}
  87. -->
  88. </style>
  89. <!--[if gte mso 10]>
  90. <style>
  91. /* Style Definitions */
  92. table.MsoNormalTable
  93. {mso-style-name:"Table Normal";
  94. mso-tstyle-rowband-size:0;
  95. mso-tstyle-colband-size:0;
  96. mso-style-noshow:yes;
  97. mso-style-parent:"";
  98. mso-padding-alt:0in 5.4pt 0in 5.4pt;
  99. mso-para-margin:0in;
  100. mso-para-margin-bottom:.0001pt;
  101. mso-pagination:widow-orphan;
  102. font-size:10.0pt;
  103. font-family:"Times New Roman";}
  104. </style>
  105. <![endif]-->
  106. </head>
  107. <body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
  108. <div class=Section1>
  109. <h2><span class=SpellE><span style='font-family:Verdana'>PJLMon</span></span><span
  110. style='font-family:Verdana'>: Sample Language Monitor<o:p></o:p></span></h2>
  111. <h3><span style='font-family:Verdana'>SUMMARY<o:p></o:p></span></h3>
  112. <p><span style='font-size:10.0pt;font-family:Verdana'>A language monitor
  113. provides full duplex communication between the print spooler and <span
  114. class=SpellE>bidirectional</span> printers that are capable of providing
  115. software-accessible status information. The language monitor adds printer
  116. control information, such as commands defined by a printer job language, to the
  117. data stream. <o:p></o:p></span></p>
  118. <p><span style='font-size:10.0pt;font-family:Verdana'>PJLMon.dll supports
  119. Printer Job Language (PJL) and provides <span class=SpellE>bidirectional</span>
  120. communication for PJL printers. <o:p></o:p></span></p>
  121. <p><span style='font-size:10.0pt;font-family:Verdana'>Please refer to the DDK
  122. documentation for more information about print monitors. <o:p></o:p></span></p>
  123. <p><span style='font-size:10.0pt;font-family:Verdana'>This sample runs on the <span
  124. class=GramE>x86 platform</span> and is 64-bit compliant. <o:p></o:p></span></p>
  125. <h3><span style='font-family:Verdana'>BUILDING THE SAMPLE<o:p></o:p></span></h3>
  126. <p><span style='font-size:10.0pt;font-family:Verdana'>To build the sample, run <b>build</b>
  127. from this directory. Once built, the sample will produce the binary pjlmon.dll.
  128. <o:p></o:p></span></p>
  129. <p><span style='font-size:10.0pt;font-family:Verdana'>To install a language
  130. monitor, its file name must be listed in an .<span class=SpellE>inf</span> file
  131. by using a <span class=SpellE>LanguageMonitor</span> entry. This entry must be
  132. included for every printer driver that controls a printer requiring the use of
  133. the language monitor. All files required by the language monitor must be listed
  134. in the <span class=SpellE>CopyFiles</span> entry for each driver. The file <span
  135. class=SpellE>Pjlmon.inf</span> shows how to use the <span class=SpellE>LanguageMonitor</span>
  136. entry.<o:p></o:p></span></p>
  137. <h3><span style='font-family:Verdana'>CODE TOUR<o:p></o:p></span></h3>
  138. <h4><span style='font-family:Verdana'>File Manifest<o:p></o:p></span></h4>
  139. <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><span
  140. class=SpellE>Local.h</span> <span style='mso-tab-count:1'>������ </span>Header for global declarations and function prototypes</pre><pre><span
  141. class=SpellE>Makefile</span><span style='mso-tab-count:1'>������ </span>Generic file for building the code sample</pre><pre><span
  142. class=SpellE>Parsepjl.c</span><span style='mso-tab-count:1'>���� </span>Source module that handles parsing of PJL printer response streams</pre><pre><span
  143. class=SpellE>Parsepjl.h</span><span style='mso-tab-count:1'>���� </span>Header for PARSEPJL.C </pre><pre><span
  144. class=SpellE>Pjlmon.c</span><span style='mso-tab-count:1'>������ </span>Source module that contains the exported functions</pre><pre><span
  145. class=SpellE>Pjlmon.def</span><span style='mso-tab-count:1'>���� </span>File that list the exported functions</pre><pre><span
  146. class=SpellE>Pjlmon.inf</span><span style='mso-tab-count:1'>���� </span><span
  147. class=SpellE><span class=GramE>Inf</span></span> file that shows how to use the <span
  148. class=SpellE>LanguageMonitor</span> entry</pre><pre><span class=SpellE>Pjlmon.rc</span><span
  149. style='mso-tab-count:1'>����� </span>Resource <span class=GramE>file</span> for the module</pre><pre><span
  150. class=SpellE>Precomp.h</span><span style='mso-tab-count:1'>����� </span>Header that includes the headers to pre-compile</pre><pre>Pjlmon.htm<span
  151. style='mso-tab-count:1'>���� </span>Documentation for this sample (this file)</pre><pre>Sources<span
  152. style='mso-tab-count:2'>������� </span>Generic file for building the code sample</pre><pre><span
  153. class=SpellE>Spltypes.h</span><span style='mso-tab-count:1'>���� </span>Header for PJLMON.C </pre><pre><span
  154. class=SpellE>Util.c</span><span style='mso-spacerun:yes'></span><span
  155. style='mso-tab-count:1'>������ </span>The source module for utility routines</pre>
  156. <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
  157. style='font-size:10.0pt;font-family:"Courier New"'><a href="#top"><span
  158. style='font-family:Verdana'>Top of page</span></a></span><span
  159. style='font-size:10.0pt;font-family:Verdana;mso-bidi-font-family:"Courier New"'>
  160. <o:p></o:p></span></p>
  161. <pre><o:p>&nbsp;</o:p></pre>
  162. <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=624
  163. style='width:6.5in;mso-cellspacing:0in;mso-padding-alt:0in 5.4pt 0in 5.4pt'>
  164. <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes;height:1.5pt'>
  165. <td style='background:aqua;padding:.75pt .75pt .75pt .75pt;height:1.5pt'>
  166. <p class=MsoNormal><o:p>&nbsp;</o:p></p>
  167. </td>
  168. </tr>
  169. </table>
  170. <pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre>
  171. <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
  172. style='font-size:7.5pt;font-family:"MS Sans Serif";mso-bidi-font-family:"Courier New"'>�
  173. 1999 Microsoft Corporation</span><span style='font-size:10.0pt;font-family:
  174. Verdana;mso-bidi-font-family:"Courier New"'> <o:p></o:p></span></p>
  175. </div>
  176. </body>
  177. </html>