A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
2.12k
stars
222
forks
source link
Correct layout of SP_DEVINFO_DATA struct #386
Closed
luke-dixon closed 6 years ago
I found that passing this structure to SetupApi.SetupDiEnumDeviceInfo was giving me an ERROR_INVALID_USER_BUFFER error from GetLastWin32Error.
After I rearranged the fields on this struct, things began to work fine.