CWiauPropertyList::SetCurrentValue (INT,LONG) 方法 (wiautil.h)

CWiauPropertyList::SetCurrentValue (INT,LONG) 方法會設定LONG類型的屬性目前值,並將其類型設定為 VT_I4。

語法

HRESULT SetCurrentValue(
  INT  index,
  LONG value
);

參數

index

指定屬性索引。 當 CWiauPropertyList::D efineProperty 方法傳回時,請將此參數設定為 *pIdx 中的值。

value

指定寫入屬性清單中的裝置屬性的值。

傳回值

HRESULT

規格需求

需求
目標平台 桌面
標頭 wiautil.h (包括 Wiautil.h、Wiamindr.h)

另請參閱

CWiauPropertyList

CWiauPropertyList::D efineProperty