DOCERR: Return Value for DrvSetPrinterData

Last reviewed: December 1, 1996
Article ID: Q141206
The information in this article applies to:
  • Microsoft Windows 95 Device Driver Kit (DDK).

SUMMARY

The Windows 95 DDK documentation for DrvSetPrinterData incorrectly states that:

   DrvSetPrinterData returns TRUE if successful; otherwise, returns FALSE.

The DrvSetPrinterData returns FALSE if successful, otherwise, it returns TRUE.

MORE INFORMATION

The return value that the driver should be checking after the DrvSetPrinterData() call is ERROR_SUCCESS which is defined in WINDOWS.H in the \DDK\INC16 directory. For more information regarding the usage of this function in a printer driver refer to the HPPLOT sample in the Windows 95 DDK. The source for the driver can be found in the \DDK\PRINTER\SAMPLES\HPPLOT directory.


KBCategory: kbprg kbprint kbdocerr
KBSubcategory: ddkprnt
Additional reference words: 4.00


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: December 1, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.