DIB_Enable Sets dpTechnology Field to DT_DISPLAY

Last reviewed: March 11, 1997
Article ID: Q141207
4.00 WINDOWS 95 kbprint kbhowto This information applies to:
  • Microsoft Windows 95 Device Driver Kit (DDK).

SUMMARY

When called to fill the GDIINFO structure from a printer driver, the DIB_Enable function in DIBENGINE.DLL sets the dpTechnology bit in the GDIINFO structure to DT_DISPLAY.

MORE INFORMATION

DIB_Enable () in the DIBENGINE.DLL can be called by printer drivers to fill the GDIINFO structure when the Enable function of the printer driver gets called by the GDI. However, because the DIBEngine was designed keeping in mind the display driver, it sets the dpTechnology to DT_DISPLAY.

When the call from the DIB_Enable returns, you must reset the bit to the appropriate value so the GDI does not interpret the structure as a display driver structure. Failure to do so may cause General Protection Fault in GDI.


KBCategory: kbprg kbhowto
KBSubcategory: DDKPRNT
Additional reference words: 4.00 DIB_Enable Enable
Keywords : DDKPRNT kbhowto kbprg
Version : 4.00
Platform : WINDOWS


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: March 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.