IPrinterPropertyBag interface (printerextension.h)

Provides strongly-typed get and set methods.

Note that the driver property bag uses the following GUID for its property store format ID:

DEFINE_GUID(FMTID_PrinterPropertyBag, 0x75f9adca, 0x097d, 0x45c3, 0xa6, 0xe4, 0xba, 0xb2, 0x9e, 0x27, 0x6f, 0x3e);</dd>

The IPrinterPropertyBag interface is used by all the printer property bags, including driver property bag, user property bag, queue property bag, and DEVMODE property bag.

Inheritance

The IPrinterPropertyBag interface inherits from the IDispatch interface.

Methods

The IPrinterPropertyBag interface has these methods.

 
IPrinterPropertyBag::GetBool

Reads a specified boolean property.
IPrinterPropertyBag::GetBytes

Reads a byte array property.
IPrinterPropertyBag::GetInt32

Reads an integer property.
IPrinterPropertyBag::GetReadStream

Gets a stream in order to read from a stream property.
IPrinterPropertyBag::GetString

Reads a string property.
IPrinterPropertyBag::GetWriteStream

Gets a stream in order to write a stream property.
IPrinterPropertyBag::SetBool

Writes a specified boolean property value.
IPrinterPropertyBag::SetBytes

Writes a byte array property.
IPrinterPropertyBag::SetInt32

Writes an integer property.
IPrinterPropertyBag::SetString

Writes a string property.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header printerextension.h

See also

IDispatch

IPrinterExtensionContext::DriverProperties

IPrinterExtensionContext::UserProperties

IPrinterQueue::GetProperties

IPrinterScriptablePropertyBag

V4 Printer Driver Property Bags