Bewerken

Delen via


IPrinterQueueViewEvent::OnChanged method (printerextension.h)

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

Syntax

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

Parameters

[in] pCollection

An IPrintJobCollection object.

[in] ulViewOffset

The start of the range of jobs being monitored.

[in] ulViewSize

The range of jobs being monitored.

[in] 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

Requirement Value
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