Microsoft KB Archive/141207

{|
 * width="100%"|

DIB_Enable Sets dpTechnology Field to DT_DISPLAY

 * }

Q141207

-

The information in this article applies to:


 * Microsoft Windows 95 Driver Development 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.

Additional query words: DIB_Enable Enable

Keywords : kbDDK kbPrinting

Issue type :

Technology : kbAudDeveloper kbWin95search kbWin95DDKSearch kbWinDDKSearch kbWin95DDK