C# Class libusbK.UsbK

Inheritance: IDisposable
Afficher le fichier Open project: nikkov/Win-Widget Class Usage Examples

Protected Properties

Свойство Type Description
driverAPI KUSB_DRIVER_API
handle KUSB_HANDLE

Méthodes publiques

Méthode Description
AbortPipe ( byte PipeID ) : bool
ClaimInterface ( byte NumberOrIndex, bool IsIndex ) : bool
Clone ( KUSB_HANDLE &DstInterfaceHandle ) : bool
ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
FlushPipe ( byte PipeID ) : bool
Free ( ) : bool
GetAltInterface ( byte NumberOrIndex, bool IsIndex, byte &AltSettingNumber ) : bool
GetAssociatedInterface ( byte AssociatedInterfaceIndex, KUSB_HANDLE &AssociatedInterfaceHandle ) : bool
GetConfiguration ( byte &ConfigurationNumber ) : bool
GetCurrentAlternateSetting ( byte &AltSettingNumber ) : bool
GetCurrentFrameNumber ( uint &FrameNumber ) : bool
GetDescriptor ( byte DescriptorType, byte Index, ushort LanguageID, Array Buffer, uint BufferLength, uint &LengthTransferred ) : bool
GetDescriptor ( byte DescriptorType, byte Index, ushort LanguageID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred ) : bool
GetOverlappedResult ( IntPtr Overlapped, uint &lpNumberOfBytesTransferred, bool bWait ) : bool
GetOverlappedResult ( KOVL_HANDLE Overlapped, uint &lpNumberOfBytesTransferred, bool bWait ) : bool
GetPipePolicy ( byte PipeID, uint PolicyType, uint &ValueLength, Array Value ) : bool
GetPipePolicy ( byte PipeID, uint PolicyType, uint &ValueLength, IntPtr Value ) : bool
GetPowerPolicy ( uint PolicyType, uint &ValueLength, Array Value ) : bool
GetPowerPolicy ( uint PolicyType, uint &ValueLength, IntPtr Value ) : bool
GetProperty ( KUSB_PROPERTY PropertyType, uint &PropertySize, Array Value ) : bool
GetProperty ( KUSB_PROPERTY PropertyType, uint &PropertySize, IntPtr Value ) : bool
IsoReadPipe ( byte PipeID, Array Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoReadPipe ( byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoWritePipe ( byte PipeID, Array Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoWritePipe ( byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoWritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
IsoWritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
QueryDeviceInformation ( uint InformationType, uint &BufferLength, IntPtr Buffer ) : bool
QueryInterfaceSettings ( byte AltSettingNumber, USB_INTERFACE_DESCRIPTOR &UsbAltInterfaceDescriptor ) : bool
QueryPipe ( byte AltSettingNumber, byte PipeIndex, WINUSB_PIPE_INFORMATION &PipeInformation ) : bool
ReadPipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
ReadPipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
ReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
ReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
ReleaseInterface ( byte NumberOrIndex, bool IsIndex ) : bool
ResetDevice ( ) : bool
ResetPipe ( byte PipeID ) : bool
SelectInterface ( byte NumberOrIndex, bool IsIndex ) : bool
SetAltInterface ( byte NumberOrIndex, bool IsIndex, byte AltSettingNumber ) : bool
SetConfiguration ( byte ConfigurationNumber ) : bool
SetCurrentAlternateSetting ( byte AltSettingNumber ) : bool
SetPipePolicy ( byte PipeID, uint PolicyType, uint ValueLength, Array Value ) : bool
SetPipePolicy ( byte PipeID, uint PolicyType, uint ValueLength, IntPtr Value ) : bool
SetPowerPolicy ( uint PolicyType, uint ValueLength, Array Value ) : bool
SetPowerPolicy ( uint PolicyType, uint ValueLength, IntPtr Value ) : bool
UsbK ( IntPtr DeviceHandle, KUSB_DRVID driverID ) : System
UsbK ( KLST_DEVINFO_HANDLE DevInfo ) : System
WritePipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
WritePipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
WritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
WritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool

Method Details

AbortPipe() public méthode

public AbortPipe ( byte PipeID ) : bool
PipeID byte
Résultat bool

ClaimInterface() public méthode

public ClaimInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
Résultat bool

Clone() public méthode

public Clone ( KUSB_HANDLE &DstInterfaceHandle ) : bool
DstInterfaceHandle KUSB_HANDLE
Résultat bool

ControlTransfer() public méthode

public ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
SetupPacket WINUSB_SETUP_PACKET
Buffer System.Array
BufferLength uint
LengthTransferred uint
Overlapped System.IntPtr
Résultat bool

ControlTransfer() public méthode

public ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
SetupPacket WINUSB_SETUP_PACKET
Buffer System.Array
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
Résultat bool

ControlTransfer() public méthode

public ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
SetupPacket WINUSB_SETUP_PACKET
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Overlapped System.IntPtr
Résultat bool

ControlTransfer() public méthode

public ControlTransfer ( WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
SetupPacket WINUSB_SETUP_PACKET
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
Résultat bool

FlushPipe() public méthode

public FlushPipe ( byte PipeID ) : bool
PipeID byte
Résultat bool

Free() public méthode

public Free ( ) : bool
Résultat bool

GetAltInterface() public méthode

public GetAltInterface ( byte NumberOrIndex, bool IsIndex, byte &AltSettingNumber ) : bool
NumberOrIndex byte
IsIndex bool
AltSettingNumber byte
Résultat bool

GetAssociatedInterface() public méthode

public GetAssociatedInterface ( byte AssociatedInterfaceIndex, KUSB_HANDLE &AssociatedInterfaceHandle ) : bool
AssociatedInterfaceIndex byte
AssociatedInterfaceHandle KUSB_HANDLE
Résultat bool

GetConfiguration() public méthode

public GetConfiguration ( byte &ConfigurationNumber ) : bool
ConfigurationNumber byte
Résultat bool

GetCurrentAlternateSetting() public méthode

public GetCurrentAlternateSetting ( byte &AltSettingNumber ) : bool
AltSettingNumber byte
Résultat bool

GetCurrentFrameNumber() public méthode

public GetCurrentFrameNumber ( uint &FrameNumber ) : bool
FrameNumber uint
Résultat bool

GetDescriptor() public méthode

public GetDescriptor ( byte DescriptorType, byte Index, ushort LanguageID, Array Buffer, uint BufferLength, uint &LengthTransferred ) : bool
DescriptorType byte
Index byte
LanguageID ushort
Buffer System.Array
BufferLength uint
LengthTransferred uint
Résultat bool

GetDescriptor() public méthode

public GetDescriptor ( byte DescriptorType, byte Index, ushort LanguageID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred ) : bool
DescriptorType byte
Index byte
LanguageID ushort
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Résultat bool

GetOverlappedResult() public méthode

public GetOverlappedResult ( IntPtr Overlapped, uint &lpNumberOfBytesTransferred, bool bWait ) : bool
Overlapped System.IntPtr
lpNumberOfBytesTransferred uint
bWait bool
Résultat bool

GetOverlappedResult() public méthode

public GetOverlappedResult ( KOVL_HANDLE Overlapped, uint &lpNumberOfBytesTransferred, bool bWait ) : bool
Overlapped KOVL_HANDLE
lpNumberOfBytesTransferred uint
bWait bool
Résultat bool

GetPipePolicy() public méthode

public GetPipePolicy ( byte PipeID, uint PolicyType, uint &ValueLength, Array Value ) : bool
PipeID byte
PolicyType uint
ValueLength uint
Value System.Array
Résultat bool

GetPipePolicy() public méthode

public GetPipePolicy ( byte PipeID, uint PolicyType, uint &ValueLength, IntPtr Value ) : bool
PipeID byte
PolicyType uint
ValueLength uint
Value System.IntPtr
Résultat bool

GetPowerPolicy() public méthode

public GetPowerPolicy ( uint PolicyType, uint &ValueLength, Array Value ) : bool
PolicyType uint
ValueLength uint
Value System.Array
Résultat bool

GetPowerPolicy() public méthode

public GetPowerPolicy ( uint PolicyType, uint &ValueLength, IntPtr Value ) : bool
PolicyType uint
ValueLength uint
Value System.IntPtr
Résultat bool

GetProperty() public méthode

public GetProperty ( KUSB_PROPERTY PropertyType, uint &PropertySize, Array Value ) : bool
PropertyType KUSB_PROPERTY
PropertySize uint
Value System.Array
Résultat bool

GetProperty() public méthode

public GetProperty ( KUSB_PROPERTY PropertyType, uint &PropertySize, IntPtr Value ) : bool
PropertyType KUSB_PROPERTY
PropertySize uint
Value System.IntPtr
Résultat bool

IsoReadPipe() public méthode

public IsoReadPipe ( byte PipeID, Array Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
Overlapped System.IntPtr
IsoContext KISO_CONTEXT
Résultat bool

IsoReadPipe() public méthode

public IsoReadPipe ( byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
Overlapped KOVL_HANDLE
IsoContext KISO_CONTEXT
Résultat bool

IsoReadPipe() public méthode

public IsoReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
Overlapped System.IntPtr
IsoContext KISO_CONTEXT
Résultat bool

IsoReadPipe() public méthode

public IsoReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
Overlapped KOVL_HANDLE
IsoContext KISO_CONTEXT
Résultat bool

IsoWritePipe() public méthode

public IsoWritePipe ( byte PipeID, Array Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
Overlapped System.IntPtr
IsoContext KISO_CONTEXT
Résultat bool

IsoWritePipe() public méthode

public IsoWritePipe ( byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
Overlapped KOVL_HANDLE
IsoContext KISO_CONTEXT
Résultat bool

IsoWritePipe() public méthode

public IsoWritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, IntPtr Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
Overlapped System.IntPtr
IsoContext KISO_CONTEXT
Résultat bool

IsoWritePipe() public méthode

public IsoWritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
Overlapped KOVL_HANDLE
IsoContext KISO_CONTEXT
Résultat bool

QueryDeviceInformation() public méthode

public QueryDeviceInformation ( uint InformationType, uint &BufferLength, IntPtr Buffer ) : bool
InformationType uint
BufferLength uint
Buffer System.IntPtr
Résultat bool

QueryInterfaceSettings() public méthode

public QueryInterfaceSettings ( byte AltSettingNumber, USB_INTERFACE_DESCRIPTOR &UsbAltInterfaceDescriptor ) : bool
AltSettingNumber byte
UsbAltInterfaceDescriptor USB_INTERFACE_DESCRIPTOR
Résultat bool

QueryPipe() public méthode

public QueryPipe ( byte AltSettingNumber, byte PipeIndex, WINUSB_PIPE_INFORMATION &PipeInformation ) : bool
AltSettingNumber byte
PipeIndex byte
PipeInformation WINUSB_PIPE_INFORMATION
Résultat bool

ReadPipe() public méthode

public ReadPipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
LengthTransferred uint
Overlapped System.IntPtr
Résultat bool

ReadPipe() public méthode

public ReadPipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
PipeID byte
Buffer System.Array
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
Résultat bool

ReadPipe() public méthode

public ReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Overlapped System.IntPtr
Résultat bool

ReadPipe() public méthode

public ReadPipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
PipeID byte
Buffer System.IntPtr
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
Résultat bool

ReleaseInterface() public méthode

public ReleaseInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
Résultat bool

ResetDevice() public méthode

public ResetDevice ( ) : bool
Résultat bool

ResetPipe() public méthode

public ResetPipe ( byte PipeID ) : bool
PipeID byte
Résultat bool

SelectInterface() public méthode

public SelectInterface ( byte NumberOrIndex, bool IsIndex ) : bool
NumberOrIndex byte
IsIndex bool
Résultat bool

SetAltInterface() public méthode

public SetAltInterface ( byte NumberOrIndex, bool IsIndex, byte AltSettingNumber ) : bool
NumberOrIndex byte
IsIndex bool
AltSettingNumber byte
Résultat bool

SetConfiguration() public méthode

public SetConfiguration ( byte ConfigurationNumber ) : bool
ConfigurationNumber byte
Résultat bool

SetCurrentAlternateSetting() public méthode

public SetCurrentAlternateSetting ( byte AltSettingNumber ) : bool
AltSettingNumber byte
Résultat bool

SetPipePolicy() public méthode

public SetPipePolicy ( byte PipeID, uint PolicyType, uint ValueLength, Array Value ) : bool
PipeID byte
PolicyType uint
ValueLength uint
Value Array
Résultat bool

SetPipePolicy() public méthode

public SetPipePolicy ( byte PipeID, uint PolicyType, uint ValueLength, IntPtr Value ) : bool
PipeID byte
PolicyType uint
ValueLength uint
Value IntPtr
Résultat bool

SetPowerPolicy() public méthode

public SetPowerPolicy ( uint PolicyType, uint ValueLength, Array Value ) : bool
PolicyType uint
ValueLength uint
Value Array
Résultat bool

SetPowerPolicy() public méthode

public SetPowerPolicy ( uint PolicyType, uint ValueLength, IntPtr Value ) : bool
PolicyType uint
ValueLength uint
Value IntPtr
Résultat bool

UsbK() public méthode

public UsbK ( IntPtr DeviceHandle, KUSB_DRVID driverID ) : System
DeviceHandle IntPtr
driverID KUSB_DRVID
Résultat System

UsbK() public méthode

public UsbK ( KLST_DEVINFO_HANDLE DevInfo ) : System
DevInfo KLST_DEVINFO_HANDLE
Résultat System

WritePipe() public méthode

public WritePipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
PipeID byte
Buffer Array
BufferLength uint
LengthTransferred uint
Overlapped IntPtr
Résultat bool

WritePipe() public méthode

public WritePipe ( byte PipeID, Array Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
PipeID byte
Buffer Array
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
Résultat bool

WritePipe() public méthode

public WritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, IntPtr Overlapped ) : bool
PipeID byte
Buffer IntPtr
BufferLength uint
LengthTransferred uint
Overlapped IntPtr
Résultat bool

WritePipe() public méthode

public WritePipe ( byte PipeID, IntPtr Buffer, uint BufferLength, uint &LengthTransferred, KOVL_HANDLE Overlapped ) : bool
PipeID byte
Buffer IntPtr
BufferLength uint
LengthTransferred uint
Overlapped KOVL_HANDLE
Résultat bool

Property Details

driverAPI protected_oe property

protected KUSB_DRIVER_API driverAPI
Résultat KUSB_DRIVER_API

handle protected_oe property

protected KUSB_HANDLE handle
Résultat KUSB_HANDLE