Add Windows-specific API to get device container ID #379
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!379
Loading…
Reference in a new issue
No description provided.
Delete branch "windows-container-id"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As discussed in https://github.com/libusb/hidapi/discussions/252#discussioncomment-2089707.
Looks good
@ -1048,6 +1048,44 @@ int HID_API_EXPORT_CALL HID_API_CALL hid_get_indexed_string(hid_device *dev, intreturn 0;call
CM_Get_DevNode_PropertyWdirectly and passguid- you'll avoid extra memory allocation/copy/free@ -0,0 +1,54 @@/*******************************************************@ -0,0 +32,4 @@extern "C" {#endif/** @brief Get the container ID for a HID device.Add mode description/details. Make a reference to
DEVPKEY_Device_ContainerId@ -0,0 +40,4 @@@ingroup API@param dev A device handle returned from hid_open().@param guid The device's container ID on return.@ -0,0 +40,4 @@@ingroup API@param dev A device handle returned from hid_open().@param guid The device's container ID on return.I included
guiddef.h, which is all that should be needed to includehidapi_winapi.h.