检索一组 PROPERTYKEY,表示传感器可以提供的数据字段。
Syntax
HRESULT GetSupportedDataFields(
[out] IPortableDeviceKeyCollection **ppDataFields
);
参数
[out] ppDataFields
接收受支持数据字段列表的 IPortableDeviceKeyCollection 指针的地址。
返回值
该方法返回 HRESULT。 可能的值包括但不限于下表中的值。
| 返回代码 | Description |
|---|---|
|
方法成功。 |
|
为 ppDataFields 传入 NULL。 |
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows 7 [仅限桌面应用] |
| 支持的最低服务器 | 无受支持的版本 |
| 目标平台 | Windows操作系统 |
| Header | sensorsapi.h |
| Library | Sensorsapi.lib |
| DLL | Sensorsapi.dll |