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