How To Use QUERYDIBSUPPORT in Printer Driver (151892)



The information in this article applies to:

  • Microsoft Windows 95 Driver Development Kit (DDK)
  • Microsoft Windows 98 Driver Development Kit (DDK)
  • Microsoft Windows ME Driver Development Kit (DDK)

This article was previously published under Q151892

SUMMARY

A printer driver should set flags based on the drivers capability for the DIB when it gets calls to the Control function with the QUERYDIBSUPPORT escape.

MORE INFORMATION

When a printer driver gets call to the Control function with the QUERYDIBSUPPORT Escape, the lpInData parameter points to the BITMAPINFO structure and the lpOutData points to LPINT. Based on the capabilities of the driver, it is expected to set the following flags:
   QDI_SETDIBITS    Device can convert DIB to bitmap
   QDI_GETDIBITS    Device can convert bitmap to DIB
   QDI_DIBTOSCREEN  Device can draw DIB
   QDI_STRETCHDIB   Device can stretch DIB
				
The driver uses the biBitCount, biCompression, and biPlanes to determine its capability with respect to DIB support. Once the capabilities are determined, it then sets the flags above appropriately. These flags are documented in the Windows SDK in \MSTOOLS\INCLUDE\WINGDI.H.

Modification Type:MinorLast Reviewed:5/24/2004
Keywords:kbprint KB151892