Gets a read stream and uses it to read from a property.
HRESULT GetReadStream( [in] BSTR bstrName, [out, retval] IPrinterScriptableStream **ppStream );
- bstrName [in]
The property to read.
- ppStream [out, retval]
The returned stream.
This method returns an HRESULT value.
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.
Minimum supported client
Minimum supported server
|Windows Server 2012|