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)

另请参阅

CWiauPropertyList

CWiauPropertyList::D efineProperty

CWiauPropertyList::SendToWia