CWiauPropertyList::SetCurrentValue (INT,BSTR) 方法 (wiautil.h)
CWiauPropertyList::SetCurrentValue (INT,BSTR) 方法會設定 BSTR 類型的屬性目前值,並將其類型設定為 VT_BSTR。
語法
void SetCurrentValue(
INT index,
BSTR value
);
參數
index
指定屬性索引。 當 CWiauPropertyList::D efineProperty 方法傳回時,請將此參數設定為 *pIdx 中的值。
value
記憶體位置的指標,其中包含寫入屬性清單中的裝置屬性的值。 此指標必須保持有效狀態,直到呼叫 CWiauPropertyList::SendToWia 方法為止。
傳回值
無
規格需求
需求 | 值 |
---|---|
目標平台 | 桌面 |
標頭 | wiautil.h (包括 Wiautil.h、Wiamindr.h) |