IPrinterScriptablePropertyBag::GetWriteStream method

Gets a stream and uses it to write to a stream property.

Syntax


HRESULT GetWriteStream(
  [in]          BSTR                      bstrName,
  [out, retval] IPrinterScriptableStream **ppStream
);

Parameters

bstrName [in]

The property to write.

ppStream [out, retval]

The retrieved stream.

Return value

This method returns an HRESULT value.

Remarks

GetWriteStream does not work with non-stream properties.

A call to GetWriteStream 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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Target platform

Header

Printerextension.h

See also

IPrinterScriptablePropertyBag
IPrinterScriptableStream

 

 

Send comments about this topic to Microsoft

Show: