Using Thunks with Windows 95, Windows 98, or Windows Me Printer Driver
Article ID: 133090
Article Last Modified on 2/12/2007
APPLIES TO
- Microsoft Windows 95 Driver Development Kit (DDK)
- Microsoft Windows 98 Driver Development Kit (DDK)
- Microsoft Windows Millennium Edition Driver Development Kit
This article was previously published under Q133090
SUMMARY
A Windows 95, Windows 98, Windows Millennium Edition (Me) printer driver should only use thunks in calls to the ABORTDOC, ENDDOC, NEWFRAME, NEXTBAND and STARTDOC subfunctions of its Control() function.
MORE INFORMATION
If a Windows 95, Windows 98, or Windows Me printer driver thunks in any call other than a ABORTDOC, ENDDOC, NEWFRAME, NEXTBAND or STARTDOC call, the Windows graphics device interface (GDI) may become reentrant. Because the GDI was never designed to be reentrant, the system may be left in an unstable state or errors may occur. If the printer driver thunks or yields, this causes the Win16Mutex system semaphore to be released and another thread may enter the GDI.
Additional query words: 4.00 win95
Keywords: kbinfo KB133090