C# 클래스 ScpControl.Usb.PnP.UsbNotifier

A modified version of the USB HID Component for C#. http://www.codeproject.com/Articles/18099/A-USB-HID-Component-for-C
상속: ScpControl.Usb.PnP.Win32Usb
파일 보기 프로젝트 열기: nefarius/ScpToolkit

공개 메소드들

메소드 설명
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, IntPtr wParam ) : void

This method will filter the messages that are passed for usb device change messages only. And parse them and take the appropriate action

RegisterHandle ( IntPtr handle ) : void

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

비공개 메소드들

메소드 설명
FindDevice ( int nVid, int nPid ) : bool

Finds a device given its PID and VID

GetDevicePath ( IntPtr hInfoSet, DeviceInterfaceData &oInterface ) : string

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.

메소드 상세

CheckDevicePresent() 공개 메소드

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.
public CheckDevicePresent ( ) : void
리턴 void

ParseMessages() 공개 메소드

This method will filter the messages that are passed for usb device change messages only. And parse them and take the appropriate action
public ParseMessages ( int msg, IntPtr wParam ) : void
msg int The window message received by the window procedure.
wParam System.IntPtr The wParam argument.
리턴 void

RegisterHandle() 공개 메소드

Registers this application, so it will be notified for usb events.
public RegisterHandle ( IntPtr handle ) : void
handle System.IntPtr a IntPtr, that is a handle to the application.
리턴 void

UnregisterHandle() 공개 메소드

Unregisters this application, so it won't be notified for usb events.
public UnregisterHandle ( ) : bool
리턴 bool

UsbNotifier() 공개 메소드

public UsbNotifier ( ) : System
리턴 System

UsbNotifier() 공개 메소드

public UsbNotifier ( System.Guid classGuid ) : System
classGuid System.Guid GUID that specifies the device interface class.
리턴 System

UsbNotifier() 공개 메소드

public UsbNotifier ( ushort vid, ushort pid ) : System
vid ushort Vendor identifier.
pid ushort Product identifier.
리턴 System

UsbNotifier() 공개 메소드

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.
리턴 System