Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SetupDiGetDeviceInstanceId in Setupapi.h #495

Closed
FengChendian opened this issue Jun 10, 2022 · 0 comments · Fixed by #496
Closed

Support SetupDiGetDeviceInstanceId in Setupapi.h #495

FengChendian opened this issue Jun 10, 2022 · 0 comments · Fixed by #496
Labels
enhancement New feature or request

Comments

@FengChendian
Copy link

Hi~

I findthat SetupDiGetDeviceInstanceId is not supported. It's in Setupapi.h. This function can get Device identification strings. It's useful to get USB PID and VID.

WINSETUPAPI BOOL SetupDiGetDeviceInstanceIdW(
  [in]            HDEVINFO         DeviceInfoSet,
  [in]            PSP_DEVINFO_DATA DeviceInfoData,
  [out, optional] PWSTR            DeviceInstanceId,
  [in]            DWORD            DeviceInstanceIdSize,
  [out, optional] PDWORD           RequiredSize
);

Here is win32 Doc about SetupDiGetDeviceInstanceId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants