IPrinterPropertyBag interface

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);

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.

Methods

The IPrinterPropertyBag interface has these methods.

Method Description
printerextension.IPrinterPropertyBag.GetBool Reads a specified boolean property.
printerextension.IPrinterPropertyBag.GetBytes Reads a byte array property.
printerextension.IPrinterPropertyBag.GetInt32 Reads an integer property.
printerextension.IPrinterPropertyBag.GetReadStream Gets a stream in order to read from a stream property.
printerextension.IPrinterPropertyBag.GetString Reads a string property.
printerextension.IPrinterPropertyBag.GetWriteStream Gets a stream in order to write a stream property.
printerextension.IPrinterPropertyBag.SetBool Writes a specified boolean property value.
printerextension.IPrinterPropertyBag.SetBytes Writes a byte array property.
printerextension.IPrinterPropertyBag.SetInt32 Writes an integer property.
printerextension.IPrinterPropertyBag.SetString Writes a string property.

Remarks

Requirements

   
Windows Driver kit version
Target platform Windows
Minimum UMDF version
Header printerextension.h
DLL
## See Also

    <dl>

IDispatch
IPrinterExtensionContext::DriverProperties
IPrinterExtensionContext::UserProperties
IPrinterQueue::GetProperties
IPrinterScriptablePropertyBag
V4 Printer Driver Property Bags

Send comments about this topic to Microsoft