TTY Driver: Generic Text-Only Driver

[This is preliminary documentation and subject to change.]

SUMMARY

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.

BUILDING THE SAMPLE

To build the samples, run build -cZ 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 _DEBUG to the compile defines in the sources file.

After building the samples, they may be installed by using the Add Printer Wizard. Select the local printer, then select Have Disk, and point to the directory containing the tty.inf file. The Windows 2000 and later drivers do not need to be copied to the local directory containing tty.inf.

CODE TOUR

File Manifest

 
Root:
 
Files           Description
 
Dirs           The file containing the directory structure used by build
Tty.htm        The documentation for this sample (this file)
Tty.gpd        The GPD file for the TTY driver
Tty.inf        The printer INF that will install the TTY Driver sample once built
Tty.ini        The printer ini file that specifies the TTY DLLs for the TTY Driver sample
Ttyui.hlp      The help file for the UI
\UFM           The directory containing UFM files
\GTT           The directory containing GTT files
 
 
 
RC directory:
 
Files           Description
 
Tty.rc         The resource file for UFM, GTT ID
Source         The generic file for building the code sample
Makefile       The generic file for building the code sample
 
 
 
Inc Directory:
 
Files           Description
 
Name.h         The header file for the DDI string name
Tty.h          The header file for the memory operation function
Ttyui.h        The header file for the UI operation
 
 
 
UI directory:
 
Files           Description
 
Debug.cpp      The code for debugging functions
Debug.h        The header for debug.cpp
Kmode.h        The header file that allows the source code to build a Kernel mode OEM DLL
Makefile       The generic file for building the code sample
Oem.h          The header that contains common defines between the OEM UNI and rendering modules
Oemcom.cpp     Source module for the OEM code that customizes the Printer Properties UI
Oemcomui.h     The header for Oemcom.cpp
Precomp.h      The header that includes the headers to pre-compile
Resource.h     The header for the ui module’s resources
Sources        The generic file for building the code sample
Ttyui.cpp      Source module that implements called function from the OEMCOM
Ttyui.rc       The resource file for the ui module
Ttyui.rcv      Contains version strings read by the operating system
Ttyuihlp.h     The header for the ui help file
Ttyui.def      The file that list the exported functions
 
 
 
 
 
Render directory:
 
Files           Description
 
Debug.cpp      The code for debugging functions
Debug.h        The header for debug.cpp
Kmode.h        The header file that allows the source code to build a Kernel mode DLL
Makefile       The generic file for building the code sample
Oem.h          The header that contains common defines between the OEM UI and rendering modules
Oemcom.cpp     Source module that implements the OEM COM Printer Customization rendering interface      
Oemcom.h       The header for Oemcom.cpp
Precomp.h      The header that includes the headers to pre-compile
Resource.h     The header for the rendering module’s resources
Sources        The generic file for building the code sample
Ttyud.cpp      Source module that implements called function from the OEMCOM
Ttyud.h        The header for ttyud.cpp
Ttyud.rc       The resource file for the rendering module
Tty.def        The file that lists the exported functions
 
 
 
 

 

Top of page

 

 

 
 

© 2000-2003 Microsoft Corporation