Retrieves an IPrinterQueueView object, and initializes the object with the range of jobs to be monitored.
This method allows the user to perform job management tasks from within a Windows Store Device App for printers.
HRESULT GetPrinterQueueView( [in] ULONG ulViewOffset, [in] ULONG ulViewSize, [out, retval] IPrinterQueueView ** ppJobView );
- ulViewOffset [in]
Indicates the start of the range of jobs to be monitored.
- ulViewSize [in]
Indicates the size or the range of jobs to be monitored.
- ppJobView [out, retval]
IPrinterQueueView object that shows the range of jobs to be monitored.
If the method call is successful, GetPrinterQueueView returns S_OK.
Otherwise, if a call to GetPrinterQueueView results in an error condition, then one of the following HRESULT values can be returned.
|E_ILLEGAL_METHOD_CALL||Indicates an attempt to retrieve more than one printer queue view object.|
|E_INVALIDARG||Indicates an attempt to create a view size larger than the maximum size.|
Only one IPrinterQueueView object can be retrieved per IPrinterQueue2 object. However it is possible to move around the single view that you retrieve. In other words, it is possible to change the positions of the monitored jobs by invoking IPrinterQueueView::SetViewRange.
Note There is work underway to implement a cap on the maximum size of the printer queue view.
Minimum supported client
Minimum supported server
|Windows Server 2012 R2|