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

SetupDiGetClassImageList should be in/out #1810

Closed
Nuklon opened this issue Jan 9, 2024 · 1 comment
Closed

SetupDiGetClassImageList should be in/out #1810

Nuklon opened this issue Jan 9, 2024 · 1 comment
Assignees

Comments

@Nuklon
Copy link
Contributor

Nuklon commented Jan 9, 2024

https://learn.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetclassimagelist

It's defined as out:
[out] PSP_CLASSIMAGELIST_DATA ClassImageListData

But this doesn't work correctly as:
The cbSize field of this structure must be initialized with the size of the structure, in bytes, before calling this function or it will fail.

@Nuklon
Copy link
Contributor Author

Nuklon commented Jan 9, 2024

https://learn.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdriverinstallparamsw
Same for SetupDiGetDriverInstallParams, the DriverInstallParams must set cbSize before calling (although it's not listed on MSDN).

@mikebattista mikebattista self-assigned this Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants