Microsoft Knowledge Base Email Alertz

(151892) - 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.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 151892 - Last Review: February 12, 2007 - Revision: 2.2

How To Use QUERYDIBSUPPORT in Printer Driver

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.

APPLIES TO
  • Microsoft Windows 95 Driver Development Kit (DDK)
  • Microsoft Windows 98 Driver Development Kit (DDK)
  • Microsoft Windows Millennium Edition Driver Development Kit
Keywords: 
kbprint KB151892
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate