检索集合中指定索引处的传感器。
Syntax
HRESULT GetAt(
[in] ULONG ulIndex,
[out] ISensor **ppSensor
);
参数
[in] ulIndex
包含要检索的传感器索引的 ULONG。
[out] ppSensor
接收指向指定传感器的指针的 ISensor 指针的地址。
返回值
该方法返回 HRESULT。 可能的值包括但不限于下表中的值。
| 返回代码 | Description |
|---|---|
|
方法成功。 |
|
为 ppSensor 传入 NULL。 |
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows 7 [仅限桌面应用] |
| 支持的最低服务器 | 无受支持的版本 |
| 目标平台 | Windows操作系统 |
| Header | sensorsapi.h |
| Library | Sensorsapi.lib |
| DLL | Sensorsapi.dll |