C# Класс HidSharp.Platform.Windows.NativeMethods

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
HIDP_STATUS_INVALID_PREPARSED_DATA int
HIDP_STATUS_SUCCESS int
IOCTL_HID_GET_REPORT_DESCRIPTOR uint

Открытые методы

Метод Описание
CTL_CODE ( uint devType, uint func, uint method, uint access ) : uint
CreateFileFromDevice ( string filename, EFileAccess desiredAccess, EFileShare shareMode ) : IntPtr
CreateManualResetEventOrThrow ( ) : IntPtr
HIDP_ERROR_CODES ( int sev, ushort code ) : int
HID_CTL_CODE ( uint id ) : uint
NTString ( char buffer ) : string
OverlappedOperation ( IntPtr ioHandle, IntPtr eventHandle, int eventTimeout, IntPtr closeEventHandle, bool overlapResult, NativeOverlapped overlapped, uint &bytesTransferred ) : void

Приватные методы

Метод Описание
CancelIo ( IntPtr handle ) : bool
CloseHandle ( IntPtr handle ) : bool
CreateEvent ( IntPtr eventAttributes, [ manualReset, [ initialState, IntPtr name ) : IntPtr
CreateFile ( string filename, EFileAccess desiredAccess, EFileShare shareMode, IntPtr securityAttributes, ECreationDisposition creationDisposition, EFileAttributes attributes, IntPtr template ) : IntPtr
DeviceIoControl ( IntPtr handle, uint ioControlCode, byte inBuffer, uint inBufferSize, byte outBuffer, uint outBufferSize, IntPtr bytesReturned, NativeOverlapped overlapped ) : bool
GetOverlappedResult ( IntPtr handle, NativeOverlapped overlapped, uint &bytesTransferred, [ wait ) : bool
GetVersionEx ( OSVERSIONINFO &version ) : bool
HidD_FreePreparsedData ( IntPtr preparsed ) : bool
HidD_GetAttributes ( IntPtr handle, HIDD_ATTRIBUTES &attributes ) : bool
HidD_GetFeature ( IntPtr handle, byte buffer, int bufferLength ) : bool
HidD_GetHidGuid ( System.Guid &hidGuid ) : void
HidD_GetManufacturerString ( IntPtr handle, char buffer, int bufferLengthInBytes ) : bool
HidD_GetPreparsedData ( IntPtr handle, IntPtr &preparsed ) : bool
HidD_GetProductString ( IntPtr handle, char buffer, int bufferLengthInBytes ) : bool
HidD_GetSerialNumberString ( IntPtr handle, char buffer, int bufferLengthInBytes ) : bool
HidD_SetFeature ( IntPtr handle, byte buffer, int bufferLength ) : bool
HidP_GetCaps ( IntPtr preparsed, HIDP_CAPS &caps ) : int
ReadFile ( IntPtr handle, byte buffer, int bytesToRead, IntPtr bytesRead, NativeOverlapped overlapped ) : bool
ResetEvent ( IntPtr handle ) : bool
SetEvent ( IntPtr handle ) : bool
SetupDiDestroyDeviceInfoList ( HDEVINFO deviceInfoSet ) : bool
SetupDiEnumDeviceInterfaces ( HDEVINFO deviceInfoSet, IntPtr deviceInfoData, [ interfaceClassGuid, int memberIndex, SP_DEVICE_INTERFACE_DATA &deviceInterfaceData ) : bool
SetupDiGetClassDevs ( [ classGuid, string enumerator, IntPtr hwndParent, DIGCF flags ) : HDEVINFO
SetupDiGetDeviceInterfaceDetail ( HDEVINFO deviceInfoSet, SP_DEVICE_INTERFACE_DATA &deviceInterfaceData, SP_DEVICE_INTERFACE_DETAIL_DATA &deviceInterfaceDetailData, int deviceInterfaceDetailDataSize, IntPtr requiredSize, IntPtr deviceInfoData ) : bool
WaitForMultipleObjects ( uint count, IntPtr handles, [ waitAll, uint milliseconds ) : uint
WriteFile ( IntPtr handle, byte buffer, int bytesToWrite, IntPtr bytesWritten, NativeOverlapped overlapped ) : bool

Описание методов

CTL_CODE() публичный статический Метод

public static CTL_CODE ( uint devType, uint func, uint method, uint access ) : uint
devType uint
func uint
method uint
access uint
Результат uint

CreateFileFromDevice() публичный статический Метод

public static CreateFileFromDevice ( string filename, EFileAccess desiredAccess, EFileShare shareMode ) : IntPtr
filename string
desiredAccess EFileAccess
shareMode EFileShare
Результат System.IntPtr

CreateManualResetEventOrThrow() публичный статический Метод

public static CreateManualResetEventOrThrow ( ) : IntPtr
Результат System.IntPtr

HIDP_ERROR_CODES() публичный статический Метод

public static HIDP_ERROR_CODES ( int sev, ushort code ) : int
sev int
code ushort
Результат int

HID_CTL_CODE() публичный статический Метод

public static HID_CTL_CODE ( uint id ) : uint
id uint
Результат uint

NTString() публичный статический Метод

public static NTString ( char buffer ) : string
buffer char
Результат string

OverlappedOperation() публичный статический Метод

public static OverlappedOperation ( IntPtr ioHandle, IntPtr eventHandle, int eventTimeout, IntPtr closeEventHandle, bool overlapResult, NativeOverlapped overlapped, uint &bytesTransferred ) : void
ioHandle System.IntPtr
eventHandle System.IntPtr
eventTimeout int
closeEventHandle System.IntPtr
overlapResult bool
overlapped System.Threading.NativeOverlapped
bytesTransferred uint
Результат void

Описание свойств

HIDP_STATUS_INVALID_PREPARSED_DATA публичное статическое свойство

public static int HIDP_STATUS_INVALID_PREPARSED_DATA
Результат int

HIDP_STATUS_SUCCESS публичное статическое свойство

public static int HIDP_STATUS_SUCCESS
Результат int

IOCTL_HID_GET_REPORT_DESCRIPTOR публичное статическое свойство

public static uint IOCTL_HID_GET_REPORT_DESCRIPTOR
Результат uint