Menu

Application Verifier break message

The plug-in closed the printer handle

Probable cause

The plug-in closed the printer handle that it received as input from the core driver. This violates the Windows Driver Kit (WDK) rules for a call from the core driver to the plug-in. Use dps on the second parameter of the stop in order to dump the stack trace of the routine that closed the handle.

For example:

Copy Code
=======================================
VERIFIER STOP 0000D006 : pid 0x1644: The plugin driver closed the printer handle. 
00000000018F6898 : Printer handle that was closed.
0000000001E733B0 : Stack trace of the closing. Use dps to dump the stack trace if it is not NULL.
0000000000000000 : Not used.
0000000000000000 : Not used.

This verifier stop was caused by the GetSupportedVersions method in the plug-in module at C:\WINDOWS\system32\spool\DRIVERS\x64\3\PTPlug_GetSupVersions_1.dll
=======================================
0:000> k
Child-SP          RetAddr           Call Site
00000000'000aefe8 00000000'01d032d5 ntdll!DbgBreakPoint
00000000'000aeff0 00000000'01d49b98 vrfcore!VerifierStopMessageEx+0x5f5
00000000'000af2c0 00000000'01d3829e vfprint!CPrintVerifierCommonDriverHelper::PluginClosedPrinterHandleCheck+0xb8
00000000'000af330 00000000'4f4d3d31 vfprint!CPrintVerifierPrintTicketProvider::GetSupportedVersions+0x10e
00000000'000af3a0 00000000'01f05f31 UNIDRVUI!CPrintTicketProvider::GetSupportedVersions+0x1e1
00000000'000af480 00000000'01f05a07 prntvpt!PTOpenProviderExImp+0x471
00000000'000af620 00000000'01efe93c prntvpt!PTOpenProviderImp+0x97
00000000'000af6b0 00000000'01f02cc5 prntvpt!CPrintTicketServerBase::Bind+0x3c
00000000'000af6f0 00000000'01d47e57 prntvpt!PTOpenProvider+0x1c5
00000000'000af7b0 00000001'0000e87f vfprint!VfPTOpenProvider+0x97
00000000'000af810 00000001'00008ce5 ptutil!PTUGetDefaultTicket<_PRINTER_INFO_9W,9>+0x11f
00000000'000afcb0 00000001'000304b0 ptutil!main+0x205
00000000'000aff20 00000000'78d5965c ptutil!__tmainCRTStartup+0x144
00000000'000aff80 00000000'00000000 KERNEL32!BaseProcessStart+0x29

0:000> dps 0000000001E733B0 
00000000'01e733b0  00000000'01d34441 vfprint!VfHookClosePrinter+0x71
00000000'01e733b8  00000000'50010c57 PTPlug_GetSupVersions_1!COemPrintTicketProvider::GetSupportedVersions+0xa7    <-------- Code that closed the handle
00000000'01e733c0  00000000'01d3821c vfprint!CPrintVerifierPrintTicketProvider::GetSupportedVersions+0x8c
00000000'01e733c8  00000000'4f4d3d31 UNIDRVUI!CPrintTicketProvider::GetSupportedVersions+0x1e1
00000000'01e733d0  00000000'01f05f31 prntvpt!PTOpenProviderExImp+0x471
00000000'01e733d8  00000000'01f05a07 prntvpt!PTOpenProviderImp+0x97
00000000'01e733e0  00000000'01efe93c prntvpt!CPrintTicketServerBase::Bind+0x3c
00000000'01e733e8  00000000'01f02cc5 prntvpt!PTOpenProvider+0x1c5
00000000'01e733f0  00000000'01d47e57 vfprint!VfPTOpenProvider+0x97
00000000'01e733f8  00000001'0000e87f ptutil!PTUGetDefaultTicket<_PRINTER_INFO_9W,9>+0x11f
00000000'01e73400  00000001'00008ce5 ptutil!main+0x205
00000000'01e73408  00000001'000304b0 ptutil!__tmainCRTStartup+0x144
00000000'01e73410  00000000'78d5965c KERNEL32!BaseProcessStart+0x29

Information displayed by Application Verifier

Format:�-�This verifier stop was caused by the %lS method in the plug-in module at %lS

Parameter 1�-�Printer handle that was closed.

Parameter 2�-�Stack trace of the closing. Use dps to dump the stack trace if it is not NULL.

Parameter 3�-�Not used.

Parameter 4�-�Not used.

Additional information

Test Layer:�PrintDriver

Stop code:�0000D006

Severity:�Error

One-time error:�no

Error report:�Break

Log to file:�yes

Create backtrace:�yes