IPrinterScriptablePropertyBag::GetReadStream method (printerextension.h)
Gets a read stream and uses it to read from a property.
Syntax
HRESULT GetReadStream(
[in] BSTR bstrName,
[out, retval] IPrinterScriptableStream **ppStream
);
Parameters
[in] bstrName
The property to read.
[out, retval] ppStream
The returned stream.
Return value
This method returns an HRESULT value.
Remarks
GetReadStream does not work with non-stream properties.
A call to GetReadStream will throw an exception, if the specified property is not found. We recommend that you use a try-catch statement around calls to this method, to allow your app to handle any failures gracefully.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 |
Minimum supported server | Windows Server 2012 |
Target Platform | Desktop |
Header | printerextension.h |