Bewerken

Delen via


IPrinterQueueView::SetViewRange method (printerextension.h)

Sets the range of print jobs being monitored.

Syntax

HRESULT SetViewRange(
  [in] ULONG ulViewOffset,
  [in] ULONG ulViewSize
);

Parameters

[in] ulViewOffset

The start of the range of jobs being monitored. Note that the offset value uses a zero-based index.

[in] ulViewSize

The size of the range of jobs being monitored.

Return value

This method returns the appropriate HRESULT value.

Remarks

Invoking this method causes the events for status change to the jobs to be fired. The IPrinterQueueViewEvent::OnChanged event method returns the live queue in response, using the specified maximum range size.

ulViewSize must be specified as a value less than or equal to 25. If the caller specifies a size which exceeds 25, this method will return E_INVALIDARG.

Requirements

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

See also

IPrinterQueue2::GetPrinterQueueView

IPrinterQueueView

IPrinterQueueViewEvent::OnChanged