public static extern unsafe bool DiInstallDevice( IntPtr hwndParent, SetupApi.SafeDeviceInfoSetHandle deviceInfoSet, [Friendly(FriendlyFlags.In)] SetupApi.SP_DEVINFO_DATA *deviceInfoData, [Friendly(FriendlyFlags.In)] SetupApi.SP_DRVINFO_DATA *driverInfoData, InstallDeviceFlags flags, out bool needReboot);
public static extern bool DiUninstallDevice( IntPtr hwndParent, SetupApi.SafeDeviceInfoSetHandle deviceInfoSet, ref SetupApi.SP_DEVINFO_DATA deviceInfoData, int flags, out bool needReboot);