IPrinterPropertyBag 接口 (printerextension.h)
提供強型別 取得 和 方法。
請注意,驅動程式屬性套件會針對其屬性存放區格式識別碼使用下列 GUID:
DEFINE_GUID(FMTID_PrinterPropertyBag, 0x75f9adca, 0x097d, 0x45c3, 0xa6, 0xe4, 0xba, 0xb2, 0x9e, 0x27, 0x6f, 0x3e);</dd>
所有印表機屬性包都會使用 IPrinterPropertyBag 介面,包括驅動程式屬性包、使用者屬性包、佇列屬性包和 DEVMODE 屬性包。
遺產
IPrinterPropertyBag 介面繼承自 IDispatch 介面。
方法
IPrinterPropertyBag 介面具有這些方法。
IPrinterPropertyBag::GetBool 讀取指定的布爾值屬性。 |
IPrinterPropertyBag::GetBytes 讀取位元組數位屬性。 |
IPrinterPropertyBag::GetInt32 讀取整數屬性。 |
IPrinterPropertyBag::GetReadStream 取得數據流,以便從數據流屬性讀取。 |
IPrinterPropertyBag::GetString 讀取字串屬性。 |
IPrinterPropertyBag::GetWriteStream 取得數據流,以便寫入數據流屬性。 |
IPrinterPropertyBag::SetBool 寫入指定的布爾屬性值。 |
IPrinterPropertyBag::SetBytes 寫入位元組數位屬性。 |
IPrinterPropertyBag::SetInt32 寫入整數屬性。 |
IPrinterPropertyBag::SetString 寫入字串屬性。 |
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | Windows 8 |
支援的最低伺服器 | Windows Server 2012 |
目標平臺 | 窗戶 |
標頭 | printerextension.h |
另請參閱
IPrinterExtensionContext::D riverProperties