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.
|
|
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head> <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="tty_files/filelist.xml"> <title>TTY Driver</title> <!--[if gte mso 9]><xml>
<w:WordDocument> <w:GrammarState>Clean</w:GrammarState> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <style> <!--
/* Font Definitions */ @font-face {font-family:Courier; panose-1:2 7 4 9 2 2 5 2 4 4; mso-font-charset:0; mso-generic-font-family:modern; mso-font-format:other; mso-font-pitch:fixed; mso-font-signature:3 0 0 0 1 0;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:536871559 0 0 0 415 0;} @font-face {font-family:"MS Sans Serif"; panose-1:0 0 0 0 0 0 0 0 0 0; mso-font-alt:"Times New Roman"; mso-font-charset:0; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:auto; mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:black;} h2 {color:black;} h3 {color:black;} h4 {color:black;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p {font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:black;} pre {margin-top:0in; margin-bottom:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; mso-fareast-font-family:"Times New Roman"; color:black;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 10]>
<style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--> <meta name=Template content="C:\Program Files\Microsoft Office\Office\html.dot"> <!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050"/> </xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]--> </head>
<body bgcolor=white lang=EN-US link=blue vlink=purple style='tab-interval:.5in' leftmargin=8>
<div class=Section1>
<h2><a name=MYSAMPLE><span style='font-family:Verdana'>TTY Driver: Generic Text-Only Driver<o:p></o:p></span></a></h2>
<p><span style='mso-bookmark:MYSAMPLE'><span style='font-size:10.0pt; font-family:Arial;color:red'>[This is preliminary documentation and subject to change.]</span></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Verdana'><o:p></o:p></span></span></p>
<h3><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Verdana'>SUMMARY<o:p></o:p></span></span></h3>
<p><span style='mso-bookmark:MYSAMPLE'><span style='font-size:10.0pt; font-family:Verdana'>The TTY driver is a generic, text-only driver. It prints only text, and it prints it in the native font of the print device, regardless of any formatting in the original document. The TTY driver sample uses the same source files as in the inbox driver, which means you can expect the same output as the inbox generic text-only driver when you build and install this sample. </span></span></p>
<h3><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Verdana'>BUILDING THE SAMPLE</span></span></h3>
<p><span style='mso-bookmark:MYSAMPLE'><span style='font-size:10.0pt; font-family:Verdana'>To build the samples, run <b>build -cZ </b>from each directory (RC, UI, Render). The DLLs will be placed in the appropriate platform directory (that is, i386 or IA64). To create a version with verbose debug output, add <b>_DEBUG</b> to the compile defines in the sources file.</span></span></p>
<p><span style='mso-bookmark:MYSAMPLE'><span style='font-size:10.0pt; font-family:Verdana'>After building the samples, they may be installed by using the Add Printer Wizard. Select the local printer, then select <b>Have Disk</b>, and point to the directory containing the <i>tty.inf</i> file. The Windows 2000 and later drivers do not need to be copied to the local directory containing <i>tty.inf</i>.</span></span></p>
<h3><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Verdana'>CODE TOUR<o:p></o:p></span></span></h3>
<h4><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Verdana'>File Manifest<o:p></o:p></span></span></h4>
<pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><b><span style='font-family:Verdana'>Root:</span></b></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><u><span style='font-family:Courier'>Files</span></u></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><span style='mso-spacerun:yes'>���������� </span><u>Description</u><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Dirs<span style='mso-spacerun:yes'>������ ��</span>The file containing the directory structure used by build<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Tty.htm<span style='mso-spacerun:yes'>��������</span>The documentation for this sample (this file)<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Tty.gpd<span style='mso-tab-count:2'>������� </span>The GPD file for the TTY driver<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Tty.inf<span style='mso-spacerun:yes'>������� </span>The printer INF that will install the TTY Driver sample once built<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Tty.ini<span style='mso-tab-count:2'>������� </span>The printer ini file that specifies the TTY DLLs for the TTY Driver sample<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyui.hlp<span style='mso-tab-count:1'>����� </span>The help file for the UI<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>\UFM<span style='mso-tab-count:2'>���������� </span><span class=GramE>The</span> directory containing UFM files<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>\GTT<span style='mso-tab-count:2'>���������� </span><span class=GramE>The</span> directory containing GTT files<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><b><span style='font-family:Verdana'>RC directory:</span></b></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><u><span style='font-family:Courier'>Files</span></u></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><span style='mso-spacerun:yes'>���������� </span><u>Description</u><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Tty.rc<span style='mso-tab-count:2'>�������� </span>The <span class=GramE>resource file</span> for UFM, GTT ID<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Source<span style='mso-tab-count:2'>�������� </span>The generic file for building the code sample<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Makefile<span style='mso-tab-count:1'>������ </span>The generic file for building the code sample<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><b><span style='font-family:Verdana'>Inc Directory:</span></b></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><u><span style='font-family:Courier'>Files</span></u></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><span style='mso-spacerun:yes'>���������� </span><u>Description</u><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Name.h<span style='mso-tab-count:2'>�������� </span>The <span class=GramE>header file</span> for the DDI string name<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Tty.h<span style='mso-tab-count:2'>��������� </span>The <span class=GramE>header file</span> for the memory operation function<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyui.h<span style='mso-tab-count:2'>������� </span>The <span class=GramE>header file</span> for the UI operation<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><b><span style='font-family:Verdana'>UI directory:</span></b></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><u><span style='font-family:Courier'>Files</span></u></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><span style='mso-spacerun:yes'>���������� </span><u>Description</u><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Debug.cpp<span style='mso-tab-count:1'>����� </span>The code for debugging functions<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Debug.h<span style='mso-tab-count:2'>������� </span>The header for debug.cpp<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Kmode.h<span style='mso-tab-count:2'>������� </span>The header file that allows the source code to build a Kernel mode OEM DLL<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Makefile<span style='mso-tab-count:1'>������ </span>The generic file for building the code sample<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Oem.h<span style='mso-tab-count:2'>��������� </span>The header that contains common defines between the OEM UNI and rendering modules<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Oemcom.cpp<span style='mso-tab-count:1'>���� </span>Source module for the OEM code that customizes the Printer Properties UI<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Oemcomui.h<span style='mso-spacerun:yes'>���� </span>The header for Oemcom.cpp<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Precomp.h<span style='mso-tab-count:1'>����� </span>The header that includes the headers to pre-compile<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Resource.h<span style='mso-tab-count:1'>���� </span>The header for the ui module�s resources<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Sources<span style='mso-spacerun:yes'>�� </span><span style='mso-tab-count:1'>���� </span>The generic file for building the code sample<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyui.cpp<span style='mso-tab-count:1'>����� </span>Source module that implements called function from the OEMCOM<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyui.rc <span style='mso-tab-count:1'>����� </span>The <span class=GramE>resource file</span> for the ui module<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyui.rcv<span style='mso-tab-count:1'>����� </span>Contains version strings read by the operating system<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyuihlp.h<span style='mso-tab-count:1'>���� </span>The <span class=GramE>header for the ui help</span> file<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyui.def<span style='mso-tab-count:1'>����� </span>The file that list the exported functions<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><b><span style='font-family:Verdana'>Render directory:</span></b></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><u><span style='font-family:Courier'>Files</span></u></span><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><span style='mso-spacerun:yes'>���������� </span><u>Description</u><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Debug.cpp<span style='mso-tab-count:1'>����� </span>The code for debugging functions<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Debug.h<span style='mso-tab-count:2'>������� </span>The header for debug.cpp<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Kmode.h<span style='mso-tab-count:2'>������� </span>The header file that allows the source code to build a Kernel mode DLL<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Makefile<span style='mso-tab-count:1'>������ </span>The generic file for building the code sample<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Oem.h<span style='mso-tab-count:2'>��������� </span>The header that contains common defines between the OEM UI and rendering modules<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Oemcom.cpp<span style='mso-tab-count:1'>���� </span>Source module that implements the OEM COM Printer Customization rendering interface<span style='mso-tab-count:1'>����� </span><o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Oemcom.h<span style='mso-tab-count:1'>������ </span>The header for Oemcom.cpp<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Precomp.h<span style='mso-tab-count:1'>����� </span>The header that includes the headers to pre-compile<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Resource.h<span style='mso-tab-count:1'>��� </span>The header for the rendering module�s resources<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Sources<span style='mso-tab-count:2'>������� </span>The generic file for building the code sample<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyud.cpp<span style='mso-tab-count:1'>���� </span>Source module that implements called function from the OEMCOM<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyud.h<span style='mso-tab-count:1'> </span><span style='mso-spacerun:yes'>������ </span>The header for ttyud.cpp<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Ttyud.rc<span style='mso-tab-count:1'>������ </span>The <span class=GramE>resource file</span> for the rendering module<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'>Tty.def<span style='mso-tab-count:2'>������� </span>The file that lists the exported functions<o:p></o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre><pre><span style='mso-bookmark:MYSAMPLE'><span style='font-family:Courier'><o:p> </o:p></span></span></pre>
<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 style='mso-bookmark:MYSAMPLE'><span style='font-size:10.0pt;font-family:Courier; mso-bidi-font-family:"Courier New"'><o:p> </o:p></span></span></p>
<span style='mso-bookmark:MYSAMPLE'></span>
<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 style='font-size:10.0pt;font-family:"Courier New"'><a href="#top"><span style='font-family:Verdana'>Top of page</span></a></span><span style='font-size:10.0pt;font-family:Verdana;mso-bidi-font-family:"Courier New"'> <o:p></o:p></span></p>
<pre><o:p> </o:p></pre>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=624 style='width:6.5in;mso-cellspacing:0in'> <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes;height:1.5pt'> <td style='background:aqua;padding:.75pt .75pt .75pt .75pt;height:1.5pt'> <p class=MsoNormal><o:p> </o:p></p> </td> </tr> </table>
<pre><o:p> </o:p></pre><pre><o:p> </o:p></pre>
<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 style='font-size:7.5pt;font-family:"MS Sans Serif";mso-bidi-font-family:"Courier New"'>� 2000-2003 Microsoft Corporation</span><span style='font-size:10.0pt;font-family: Verdana;mso-bidi-font-family:"Courier New"'> <o:p></o:p></span></p>
</div>
</body>
</html>
|