DrvSplClose

VOID DrvSplClose(

    HANDLE hDriver

   );

DrvSplClose releases the specified user-mode printer driver handle and its associated resources.

Parameters

hDriver
Identifies the per-job instance handle to be closed. The driver generated this handle in response to a call to DrvSplStartDoc.

Comments

The spooler calls DrvSplClose when it will not be making any more calls to the user-mode printer driver using the driver data identified by hDriver. This happens at the normal end of a print job or when an application terminates in an error condition.

The user-mode printer driver should free hDriver and clean up any other resources associated with the print job for which hDriver was generated. The driver should take any steps necessary to protect itself in the event that multiple jobs are printed simultaneously.

DrvSplClose must be implemented if you do write a user-mode printer driver.

See Also

DrvSplAbort, DrvSplStartDoc