IPrinterQueueViewEvent::OnChanged method

Provides an IPrintJobCollection object that provides a snapshot of a range of print jobs in the queue.

Syntax

HRESULT OnChanged(
  IPrintJobCollection *pCollection,
  ULONG               ulViewOffset,
  ULONG               ulViewSize,
  ULONG               ulCountJobsInPrintQueue
);

Parameters

pCollection

An IPrintJobCollection object.

ulViewOffset

The start of the range of jobs being monitored.

ulViewSize

The range of jobs being monitored.

ulCountJobsInPrintQueue

The current number of jobs in the print queue.

Return Value

This method returns the appropriate HRESULT value.

Remarks

The job range is controlled by the IPrinterQueueView interface. Additionally, this method provides the current number of jobs in the print queue, and the indices of the job range being monitored. Information about the number of jobs, and the indices of the jobs is provided in response to the IPrinterQueueView::SetViewRange method being invoked.

Requirements

   
Minimum supported client Windows 8.1
Minimum supported server Windows Server 2012 R2
Target Platform Desktop
Header printerextension.h

See Also

IPrintJobCollection

IPrinterQueueView

IPrinterQueueView::SetViewRange

IPrinterQueueViewEvent