INFO: Printer Driver Must Support Multiple DCs

Last reviewed: June 5, 1997
Article ID: Q169595
The information in this article applies to:
  • Windows 95 Device Driver Kit (DDK), version 4.0

SUMMARY

In earlier versions of Windows, printer drivers were allowed to return -1 from the SetPrinterDC control code if they did not want to support multiple DCs for a print job. In Windows 95, however, there are applications that do not check the return code of the SetPrinterDC control code, and blindly use the DC they requested to be set in the printer driver.

MORE INFORMATION

Although not explicitly stated, printer drivers must not return -1 from SetPrinterDC. Instead, the driver must be able to handle multiple DCs and must use the DC that the application sends down for the print job. The driver must not restrict itself to one DC from StartDoc to EndDoc.


Keywords : kbprint kbinfo
Version : 4.0
Platform : WINDOWS


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: June 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.