C# Class LiveFlight.UsbNotification

Datei anzeigen Open project: LiveFlightApp/Connect-Windows Class Usage Examples

Public Methods

Method Description
RegisterUsbDeviceNotification ( IntPtr windowHandle ) : void

Registers a window to receive notifications when USB devices are plugged or unplugged.

UnregisterUsbDeviceNotification ( ) : void

Unregisters the window for USB device notifications

Private Methods

Method Description
RegisterDeviceNotification ( IntPtr recipient, IntPtr notificationFilter, int flags ) : IntPtr
UnregisterDeviceNotification ( IntPtr handle ) : bool

Method Details

RegisterUsbDeviceNotification() public static method

Registers a window to receive notifications when USB devices are plugged or unplugged.
public static RegisterUsbDeviceNotification ( IntPtr windowHandle ) : void
windowHandle System.IntPtr Handle to the window receiving notifications.
return void

UnregisterUsbDeviceNotification() public static method

Unregisters the window for USB device notifications
public static UnregisterUsbDeviceNotification ( ) : void
return void