添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
激动的手套  ·  Windows小技巧13-Windows10 ...·  2 周前    · 
气宇轩昂的钥匙  ·  Full Show: Sen. Ted ...·  1 月前    · 
严肃的豌豆  ·  CustomTkinter 默认支持 ...·  1 月前    · 
强健的茄子  ·  inter milan - ...·  1 月前    · 
怕老婆的匕首  ·  Android ...·  1 月前    · 
讲道义的砖头  ·  Solved: My confluence ...·  3 月前    · 
坏坏的拐杖  ·  哥布林洞窟 - 百度·  1 年前    · 
I am not sure if "device interface symbolic link" is correct.
This is the string that I mean..
\\?\ACPI#10250759#4&2f80d4b8&0#{884b96c3-56ef-11d1-bc8c-00a0c91405dd
This is for a built in keyboard.
Other devices work, but this one doesn't. For example, for a built in touchpad with device interface class GUID_DEVINTERFACE_MOUSE this string is..
\\?\HID#VID_06CB&PID_2970&Col01#6&4e814c3&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
For each of these devices, I used CreateFileA with OPEN_EXISTING .
Then the HANDLE from CreateFileA is passed to..
.. HidD_GetAttributes
.. HidD_GetProductString
.. HidD_GetManufacturerString
.. HidD_GetSerialnumberString
For all devices for which the "device interface symbolic link" starts with HID, the functions work (all except HidD_GetSerialnumberString , which causes ERROR_INVALID_PARAMETER (i.e. "The parameter is incorrect.").
For the ACPI one, all of these functions fail and GetLastError is set to ERROR_INVALID_FUNCTION (i.e. "Incorrect function.").
As HidD_GetAttributes doesn't mention in the documentation ever setting the "last error", I call SetLastError(ERROR_SUCCESS) before. It turns out HidD_GetAttributes does set the "last error".
The raw input overview page [ ^ ] has this sentence "The raw input API provides a stable and robust way for applications to accept raw input from any HID, including the keyboard and mouse.". Thus I assume that raw input is ONLY for HID devices, what is up then with this ACPI device?
I found this page [ ^ ] that mentions the format of both these ACPI and HID paths, but I don't know much about this topic.
What I have tried:
I've tried both using MinGW-w64 (from chocolatey) and Visual Studio 2022. The results were the same.
  • Read the question carefully.
  • Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  • If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  • Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
  •