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.

156 lines
14 KiB

  1. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2. xmlns:w="urn:schemas-microsoft-com:office:word"
  3. xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
  4. xmlns="http://www.w3.org/TR/REC-html40">
  5. <head>
  6. <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
  7. <meta name=ProgId content=Word.Document>
  8. <meta name=Generator content="Microsoft Word 10">
  9. <meta name=Originator content="Microsoft Word 10">
  10. <link rel=File-List href="readme_files/filelist.xml">
  11. <title>MSPLOT</title>
  12. <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
  13. name="date"/>
  14. <!--[if gte mso 9]><xml>
  15. <w:WordDocument>
  16. <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  17. </w:WordDocument>
  18. </xml><![endif]--><!--[if !mso]><object
  19. classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
  20. <style>
  21. st1\:*{behavior:url(#ieooui) }
  22. </style>
  23. <![endif]-->
  24. <style>
  25. <!--
  26. /* Font Definitions */
  27. @font-face
  28. {font-family:Verdana;
  29. panose-1:2 11 6 4 3 5 4 4 2 4;
  30. mso-font-charset:0;
  31. mso-generic-font-family:swiss;
  32. mso-font-pitch:variable;
  33. mso-font-signature:536871559 0 0 0 415 0;}
  34. @font-face
  35. {font-family:"MS SANS SERIF";
  36. panose-1:0 0 0 0 0 0 0 0 0 0;
  37. mso-font-alt:"Times New Roman";
  38. mso-font-charset:0;
  39. mso-generic-font-family:roman;
  40. mso-font-format:other;
  41. mso-font-pitch:auto;
  42. mso-font-signature:0 0 0 0 0 0;}
  43. /* Style Definitions */
  44. p.MsoNormal, li.MsoNormal, div.MsoNormal
  45. {mso-style-parent:"";
  46. margin:0in;
  47. margin-bottom:.0001pt;
  48. mso-pagination:widow-orphan;
  49. font-size:12.0pt;
  50. font-family:"Times New Roman";
  51. mso-fareast-font-family:"Times New Roman";}
  52. a:link, span.MsoHyperlink
  53. {color:blue;
  54. text-decoration:underline;
  55. text-underline:single;}
  56. p
  57. {font-size:12.0pt;
  58. font-family:"Times New Roman";
  59. mso-fareast-font-family:"Times New Roman";}
  60. pre
  61. {margin-top:0in;
  62. margin-bottom:0in;
  63. margin-bottom:.0001pt;
  64. font-size:10.0pt;
  65. font-family:"Courier New";
  66. mso-fareast-font-family:"Times New Roman";}
  67. @page Section1
  68. {size:8.5in 11.0in;
  69. margin:1.0in 1.25in 1.0in 1.25in;
  70. mso-header-margin:.5in;
  71. mso-footer-margin:.5in;
  72. mso-paper-source:0;}
  73. div.Section1
  74. {page:Section1;}
  75. -->
  76. </style>
  77. <!--[if gte mso 10]>
  78. <style>
  79. /* Style Definitions */
  80. table.MsoNormalTable
  81. {mso-style-name:"Table Normal";
  82. mso-tstyle-rowband-size:0;
  83. mso-tstyle-colband-size:0;
  84. mso-style-noshow:yes;
  85. mso-style-parent:"";
  86. mso-padding-alt:0in 5.4pt 0in 5.4pt;
  87. mso-para-margin:0in;
  88. mso-para-margin-bottom:.0001pt;
  89. mso-pagination:widow-orphan;
  90. font-size:10.0pt;
  91. font-family:"Times New Roman";}
  92. </style>
  93. <![endif]-->
  94. </head>
  95. <body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
  96. <div class=Section1>
  97. <h2><span style='font-family:Verdana'>MSPLOT<o:p></o:p></span></h2>
  98. <h3><span style='font-family:Verdana'>SUMMARY<o:p></o:p></span></h3>
  99. <p><span style='font-size:10.0pt;font-family:Verdana'>The MSPLOT is a
  100. Windows� 2000, Windows� XP and Windows� Server 2003 printer driver that is designed to support
  101. all HPGL/2 compatible plotters. The full source codes of this driver include
  102. parser/UI and are published in the DDK as an example of how to write a
  103. user-mode or kernel-mode printer driver in Windows� 2000, Windows� XP and Windows� Server 2003. The sample
  104. is 64-bit compliant. <o:p></o:p></span></p>
  105. <h3><span style='font-family:Verdana'>BUILDING THE SAMPLE<o:p></o:p></span></h3>
  106. <p><span style='font-size:10.0pt;font-family:Verdana'>To build the sample, use
  107. the <b>build</b> command. Once built, the sample will produce three binaries:
  108. Plotter.dll, Plotui.dll, and Plotgpc.exe. All plotter samples can be installed
  109. using the file <i>plotter.inf</i>. This INF expects plotter minidriver files to
  110. be in an i386 directory. <o:p></o:p></span></p>
  111. <h3><span style='font-family:Verdana'>CODE TOUR<o:p></o:p></span></h3>
  112. <h4><span style='font-family:Verdana'>File Manifest<o:p></o:p></span></h4>
  113. <pre><u>File<span style='mso-tab-count:3'>������������������ </span>Description<o:p></o:p></u></pre><pre><o:p>&nbsp;</o:p></pre><pre>Plotter.inf<span
  114. style='mso-tab-count:3'>������������������� </span>INF file for plotter sample installation</pre><pre>Inc\Plotdm.h<span style='mso-spacerun:yes'>����������� </span>PLOTDEVMODE extended devmode definitions</pre><pre>Inc\Plotgpc.h<span style='mso-spacerun:yes'>���������� </span>Characterization data definition</pre><pre><o:p>&nbsp;</o:p></pre><pre>Lib\Plotlib.h<span style='mso-spacerun:yes'>���������� </span>Defines and prototype for the plotter library</pre><pre>Lib\Precomp.h<span style='mso-spacerun:yes'>���������� </span>Precompile header file</pre><pre>Lib\Cachegpc.c<span style='mso-spacerun:yes'>��������� </span>Functions to cached the PLOTGPC</pre><pre>Lib\Devmode.c<span style='mso-spacerun:yes'>���������� </span>Different version devmode conversion functions</pre><pre>Lib\Drvinfo.c<span style='mso-spacerun:yes'>���������� </span>Functions to access spooler's DRIVER_INFO data structure</pre><pre>Lib\File.c<span style='mso-spacerun:yes'>������������� </span>Function to read file</pre><pre>Lib\Forms.c<span style='mso-spacerun:yes'>������������ </span>All functions related to the spooler/driver's forms</pre><pre>Lib\Halftone.c<span style='mso-spacerun:yes'>��������� </span>Data and function to validate the COLORADJUSTMENT</pre><pre>Lib\Plotdbg.c<span style='mso-spacerun:yes'>���������� </span>Contains all plotter's debugging functions</pre><pre>Lib\Plotdm.c<span style='mso-spacerun:yes'>����������� </span>Functions which validate/set plotter's devmodes</pre><pre>Lib\Readgpc.c<span style='mso-spacerun:yes'>���������� </span>Functions to read the PLOTGPC data file</pre><pre>Lib\Regdata.c<span style='mso-spacerun:yes'>���������� </span>Plotter property registry data save/retrieve functions</pre><pre>Lib\Widechar.c<span style='mso-spacerun:yes'>��������� </span>NLS unicode /ANSI translation code</pre><pre><o:p>&nbsp;</o:p></pre><pre>Plotter\Bitblt.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module bitblt.c</pre><pre>Plotter\Brush.h<span style='mso-spacerun:yes'>�������� </span>Definitions and prototypes for module brush.c</pre><pre>Plotter\Compress.h<span style='mso-spacerun:yes'>����� </span>Definitions and prototypes for module compress.c</pre><pre>Plotter\Enable.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module enable.c</pre><pre>Plotter\Escape.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module escape.c</pre><pre>Plotter\Htblt.h<span style='mso-spacerun:yes'>�������� </span>Definitions and prototypes for module htblt.c</pre><pre>Plotter\Htbmp1.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module htbmp1.c</pre><pre>Plotter\Htbmp4.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module htbmp4.c</pre><pre>Plotter\Output.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module output.c</pre><pre>Plotter\Page.h<span style='mso-spacerun:yes'>��������� </span>Definitions and prototypes for module page.h</pre><pre>Plotter\Path.h<span style='mso-spacerun:yes'>��������� </span>Definitions and prototypes for module path.h</pre><pre>Plotter\Pdevinfo.h<span style='mso-spacerun:yes'>����� </span>Definitions and prototypes for module pdevinfo.c</pre><pre>Plotter\Pencolor.h<span style='mso-spacerun:yes'>����� </span>Definitions and prototypes for module pencolor.c</pre><pre>Plotter\Plotform.h<span style='mso-spacerun:yes'>����� </span>Definitions and prototypes for module plotform.c</pre><pre>Plotter\Plotters.h<span style='mso-spacerun:yes'>����� </span>Plotter Information to be included by all source files</pre><pre>Plotter\Polygon.h<span style='mso-spacerun:yes'>������ </span>Definitions and prototypes for module polygon.c</pre><pre>Plotter\Precomp.h<span style='mso-spacerun:yes'>������ </span>Precompiled header file</pre><pre>Plotter\Ropblt.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module ropblt.c</pre><pre>Plotter\Textout.h<span style='mso-spacerun:yes'>������ </span>Definitions and prototypes for module tex
  115. Year="2001" Day="4" Month="8">8/4/1</st1:date> BPP bitmaps</pre><pre>Plotter\Plotter.rc<span style='mso-spacerun:yes'>����� </span>Resource file</pre><pre><o:p>&nbsp;</o:p></pre><pre>Plotui\Cpsui.h<span style='mso-spacerun:yes'>��������� </span>Definitions and prototypes for module cpsui.c</pre><pre>Plotui\Formbox.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module formbox.c</pre><pre>Plotui\Help.h<span style='mso-spacerun:yes'>���������� </span>Definitions and prototypes for module help.c</pre><pre>Plotui\Pensetup.h<span style='mso-spacerun:yes'>������ </span>Definitions and prototypes for module pensetup.c</pre><pre>Plotui\Plotui.h<span style='mso-spacerun:yes'>�������� </span>Definitions and prototypes for module plotui.c</pre><pre>Plotui\Precomp.h<span style='mso-spacerun:yes'>������� </span>Precompiled header file</pre><pre>Plotui\Ptrinfo.h<span style='mso-spacerun:yes'>������� </span>Definitions and prototypes for module ptrinfo.c</pre><pre>Plotui\Cpsui.c<span style='mso-spacerun:yes'>��������� </span>Contains helper functions to be used with common UI</pre><pre>Plotui\Devcaps.c<span style='mso-spacerun:yes'>������� </span>DrvDeviceCapabilities() and other support functions</pre><pre>Plotui\Docprop.c<span style='mso-spacerun:yes'>������� </span>Contains functions for DrvDocumentPropertySheets().</pre><pre>Plotui\Formbox.c<span style='mso-spacerun:yes'>������� </span>Functions to enumerate valid form and list on the combobox</pre><pre>Plotui\Help.c<span style='mso-spacerun:yes'>���������� </span>All help functions for the plotter user interface</pre><pre>Plotui\Pensetup.c<span style='mso-spacerun:yes'>������ </span>Contains Functions to setup the plotter's pen</pre><pre>Plotui\Plotui.c<span style='mso-spacerun:yes'>�������� </span>Contains plotter UI dll entry point</pre><pre>Plotui\Ptrinfo.c<span style='mso-spacerun:yes'>������� </span>Functions to mapping/cache a hPrinter to useful data</pre><pre>Plotui\Ptrprop.c<span style='mso-spacerun:yes'>������� </span>PrinterProperties() API entry and it's related functions</pre><pre>Plotui\Qryprint.c<span style='mso-spacerun:yes'>������ </span>Functions called by the spooler to determine if a particular job can be print to a given plotter</pre><pre>Plotui\Upgrade.c<span style='mso-spacerun:yes'>������� </span>Contains version upgrade functions</pre><pre>Plotui\Plotui.rc<span style='mso-spacerun:yes'>�� </span><span style='mso-spacerun:yes'>�����</span>Plotter user interface resource file</pre><pre><o:p>&nbsp;</o:p></pre><pre>Tools\Ntres\Plotgpc.c<span style='mso-spacerun:yes'>�� </span>Functions required to generate a plotter gpc data file</pre><pre><o:p>&nbsp;</o:p></pre>
  116. <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
  117. style='font-size:10.0pt;font-family:"Courier New"'><a href="#top"><span
  118. style='font-family:Verdana'>Top of page</span></a></span><span
  119. style='font-size:10.0pt;font-family:Verdana;mso-bidi-font-family:"Courier New"'>
  120. <o:p></o:p></span></p>
  121. <pre><o:p>&nbsp;</o:p></pre>
  122. <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=624
  123. style='width:6.5in;mso-cellspacing:0in'>
  124. <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes;height:1.5pt'>
  125. <td style='background:aqua;padding:.75pt .75pt .75pt .75pt;height:1.5pt'>
  126. <p class=MsoNormal><o:p>&nbsp;</o:p></p>
  127. </td>
  128. </tr>
  129. </table>
  130. <pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre>
  131. <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
  132. style='font-size:7.5pt;font-family:"MS SANS SERIF";mso-bidi-font-family:"Courier New"'>�
  133. 1999-2003 Microsoft Corporation</span><span style='font-size:10.0pt;font-family:
  134. Verdana;mso-bidi-font-family:"Courier New"'> <o:p></o:p></span></p>
  135. </div>
  136. </body>
  137. </html>