[DllImport("setupapi.dll", SetLastError=true)]
static extern TODO SetupDiGetDeviceInstallParams(TODO);
<DllImport("setupapi.dll")> _
Public Shared Function SetupDiGetDeviceInstallParams(ByVal hDevinfo As Integer, _ 'Alternate ByVal hDevInfo as IntPtr
ByRef DeviceInfoData As SP_DEVINFO_DATA, _
ByRef DeviceInstallParams As SP_DEVINSTALL_PARAMS _
) As Boolean
End Function
None.
Do you know one? Please contribute it!
None.
Please add some!
' see if device needs reboot
Dim devParams As SP_DEVINSTALL_PARAMS
devParams.cbSize = Marshal.SizeOf(devParams)
If Win32.SetupDiGetDeviceInstallParams(hDevInfo, DeviceInfoData, devParams) Then
If (devParams.Flags And Win32.DI_NEEDRESTART) = Win32.DI_NEEDRESTART OrElse (devParams.Flags And Win32.DI_NEEDREBOOT) = Win32.DI_NEEDREBOOT Then
Return True
End If
Else
Return False
End If