Method | Description | |
---|---|---|
CheckDevicePresent ( ) : void |
Checks the devices that are present at the moment and checks if one of those is the device you defined by filling in the product id and vendor id.
|
|
ParseMessages ( int msg, |
This method will filter the messages that are passed for usb device change messages only. And parse them and take the appropriate action
|
|
RegisterHandle ( |
Registers this application, so it will be notified for usb events.
|
|
UnregisterHandle ( ) : bool |
Unregisters this application, so it won't be notified for usb events.
|
|
UsbNotifier ( ) : System | ||
UsbNotifier ( System.Guid classGuid ) : System |
|
|
UsbNotifier ( ushort vid, ushort pid ) : System |
|
|
UsbNotifier ( ushort vid, ushort pid, System.Guid classGuid ) : System |
|
Method | Description | |
---|---|---|
FindDevice ( int nVid, int nPid ) : bool |
Finds a device given its PID and VID
|
|
GetDevicePath ( |
Helper method to return the device path given a DeviceInterfaceData structure and an InfoSet handle. Used in 'FindDevice' so check that method out to see how to get an InfoSet handle and a DeviceInterfaceData.
|
public ParseMessages ( int msg, |
||
msg | int | The window message received by the window procedure. |
wParam | The wParam argument. | |
return | void |
public RegisterHandle ( |
||
handle | a IntPtr, that is a handle to the application. | |
return | void |
public UsbNotifier ( System.Guid classGuid ) : System | ||
classGuid | System.Guid | GUID that specifies the device interface class. |
return | System |
public UsbNotifier ( ushort vid, ushort pid ) : System | ||
vid | ushort | Vendor identifier. |
pid | ushort | Product identifier. |
return | System |
public UsbNotifier ( ushort vid, ushort pid, System.Guid classGuid ) : System | ||
vid | ushort | Vendor identifier. |
pid | ushort | Product identifier. |
classGuid | System.Guid | GUID that specifies the device interface class. |
return | System |