IPrinterQueueView::SetViewRange method

Sets the range of print jobs being monitored.

Syntax


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

Parameters

ulViewOffset [in]

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

ulViewSize [in]

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.

Note  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

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Header

Printerextension.h

See also

IPrinterQueue2::GetPrinterQueueView
IPrinterQueueView
IPrinterQueueViewEvent::OnChanged

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.