Skip to main content
added 113 characters in body
Source Link
DJm00n
  • 1.6k
  • 11
  • 28

You can try to use Device instance IDinstance ID for your HID device (call CM_Get_Device_Interface_Property with device interface path and DEVPKEY_Device_InstanceId property and use string after last & char). It should be unique and persistent per system restarts. But it is not guaranteed if serial number is not provided (in this case instance ID will be different if device is plugged into different usb port)...

More info on this here: https://stackoverflow.com/a/56885175/1795050

You can try to use Device instance ID for your HID device (call CM_Get_Device_Interface_Property with device interface path and DEVPKEY_Device_InstanceId property). It should be unique and persistent per system restarts. But it is not guaranteed if serial number is not provided...

More info on this here: https://stackoverflow.com/a/56885175/1795050

You can try to use instance ID for your HID device (call CM_Get_Device_Interface_Property with device interface path and DEVPKEY_Device_InstanceId property and use string after last & char). It should be unique and persistent per system restarts. But it is not guaranteed if serial number is not provided (in this case instance ID will be different if device is plugged into different usb port)...

More info on this here: https://stackoverflow.com/a/56885175/1795050

Source Link
DJm00n
  • 1.6k
  • 11
  • 28

You can try to use Device instance ID for your HID device (call CM_Get_Device_Interface_Property with device interface path and DEVPKEY_Device_InstanceId property). It should be unique and persistent per system restarts. But it is not guaranteed if serial number is not provided...

More info on this here: https://stackoverflow.com/a/56885175/1795050