DOCERR: Return Value for DrvGetPrinterData

ID: Q141161

The information in this article applies to:

SUMMARY

The Windows 95 DDK documentation for DrvGetPrinterData incorrectly states that:

   DrvGetPrinterData returns TRUE if successful; otherwise, returns FALSE.

The DrvGetPrinterData returns FALSE if successful, otherwise, returns TRUE.

More Information

The return value that the driver should be checking after the DrvGetPrinterData 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.

Additional query words:

Keywords          : kbDDK kbPrinting 
Version           : 4.00
Platform          : WINDOWS

Last Reviewed: June 26, 1998