Compartilhar via


pfnShutdown method

A print monitor's Shutdown function performs the tasks required to delete a monitor instance.

Syntax

VOID WINAPI pfnShutdown(
  [in] HANDLE hMonitor
);

Parameters

  • hMonitor [in]
    Caller supplied monitor instance handle. This is the handle returned by the monitor's InitializePrintMonitor2 function.

Return value

Return code Description
None

 

Remarks

Language monitors and port monitor server DLLs are required to define a Shutdown function and include the function's address in a MONITOR2 structure.

The function must return quickly. If multiple threads need to be terminated, they should just be marked for removal. Thread termination can occur after the function returns.

The Shutdown function should mark the following information as no longer valid:

  • The spooler handle received in the MONITORINIT structure

  • The registry function pointers received in the MONITORREG structure

Requirements

Target platform

Desktop

Header

Mfidl.h (include Mfidl.h)

See also

InitializePrintMonitor2

MONITORINIT

MONITORREG

 

 

Send comments about this topic to Microsoft