Direct Connected Network Printers Using DLC, IPX

Last reviewed: September 18, 1995
Article ID: Q115757
The information in this article applies to:
  • Microsoft Win32 Device Development Kit (DDK) for Windows NT, versions 3.1, 3.5, and 3.51

Windows NT as a base system does not support printing directly to a printer with an option card, which connects the printer directly into the network using a protocol in the card. The most common protocols used are IPX and DLC.

The process that the printer goes through to print is as follows:

  1. The application begins to generate output for the targeted spooled printer.

  2. The spooler subsystem passes the data to the local print provider. If any other print providers are installed (such as through the network control panel under the Networks option), the data is passed to the additional print providers.

  3. The data is passed to the appropriate print processor.

  4. The print processor handles the data to determine what, if anything, must be done to the data to make it printable.

  5. After processing, the data returns back to the print provider.

  6. At this time, the print data is sent to the appropriate print monitor.

The key to providing support for direct connected printers is a custom print monitor. You can use the print monitor to give a printer driver more options during installation for where the print data will be directed. This is set up during installation: when selecting the port connected to the printer, you can either choose "Other" and select a print monitor already installed in the system or choose to install a new print monitor.

When the print provider is ready to send data to the print monitor, there are a set of mandatory callback functions that must be present in the monitor driver. These functions include the following:

  • InitializeMonitor
  • EnumPorts
  • OpenPort
  • ReadPort
  • WritePort
  • StartDocPort
  • EndDocPort
  • ClosePort
  • DeletePort
  • AddPort
  • ConfigurePort

The data is transmitted to the print monitor through these callback functions. The print monitor can then transmit the data through appropriate means for the connection or protocol you want. For example, under IPX you can communicate to the card using the Sockets API, and under DLC you can communicate to the card using the AcsLan API.

More information on these functions can be found in the "Microsoft Win32 Subsystem Driver Design Guide," in section 1.4, "Print Monitors."


Additional reference words: 3.10 3.50 PRINTING MONITOR IPX
KBCategory: kbprg
KBSubCategory: GdiPrn


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 18, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.