GetRawInputDevices

使 PresentationHost.exe 可以发现宿主应用程序所面向的原始输入设备(智能界面设备)。

HRESULT GetRawInputDevices( [out] IEnumRAWINPUTDEVICE **ppEnum );

参数

ppEnum

[out] 指向 IEnumRAWINPUTDEVICE 的指针,用于枚举原始输入设备。

属性值/返回值

HRESULT:

S_OK - 如果返回 S_OK,则 IEnumRAWINPUTDEVICE 将仅供 PresentationHost.exe 使用。

E_NOTIMPL

备注

原始输入设备是输入设备集,包括键盘、鼠标以及类似遥控器这样的较新设备。

检索原始输入设备列表后,PresentationHost.exe 向这些设备注册以接收 WM_INPUT 通知消息。

请参见

参考

FilterInputMessage

其他资源

https://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/rawinput/rawinputreference/rawinputfunctions/getrawinputdevicelist.asp