指定接收传感器管理器事件通知的接口。
Syntax
HRESULT SetEventSink(
[in] ISensorManagerEvents *pEvents
);
参数
[in] pEvents
指向接收事件通知的 ISensorManagerEvents 回调接口的指针。 设置为 NULL 以停止接收事件通知。
返回值
该方法返回 HRESULT。 可能的值包括但不限于下表中的值。
| 返回代码 | Description |
|---|---|
|
方法成功。 |
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows 7 [仅限桌面应用] |
| 支持的最低服务器 | 无受支持的版本 |
| 目标平台 | Windows操作系统 |
| Header | sensorsapi.h |
| Library | Sensorsapi.lib |
| DLL | Sensorsapi.dll |