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