Microsoft KB Archive/151892

{|
 * width="100%"|

How To Use QUERYDIBSUPPORT in Printer Driver

 * }

Q151892

-

The information in this article applies to:


 * Microsoft Windows 95 Driver Development Kit (DDK)

-

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.

Additional query words: QUERYDIBSUPPORT

Keywords : kbDDK kbPrinting

Issue type :

Technology : kbAudDeveloper kbWin95search kbWin95DDKSearch kbWinDDKSearch kbWin95DDK