winapi-rs
winapi-rs copied to clipboard
Add newdev bindings
Fixes #851 .
These bindings are only missing DiInstallDevice
, which has the following signature:
BOOL
WINAPI
DiInstallDevice(
_In_opt_ HWND hwndParent,
_In_ HDEVINFO DeviceInfoSet,
_In_ PSP_DEVINFO_DATA DeviceInfoData,
_In_opt_ PSP_DRVINFO_DATA DriverInfoData,
_In_ DWORD Flags,
_Out_opt_ PBOOL NeedReboot
);
However, PSP_DRVINFO_DATA is a unicode-dependent data-structure. Either the header is buggy, or the function somehow doesn't access any of the UNICODE/ASCII fields.
Since I don't need this function and couldn't find any documentation about which structure is the one we're supposed to pass, I left it out.