C# Class HidSharp.Platform.Windows.NativeMethods

ファイルを表示 Open project: arvydas/BlinkStickDotNet

Public Properties

Property Type Description
HIDP_STATUS_INVALID_PREPARSED_DATA int
HIDP_STATUS_SUCCESS int
IOCTL_HID_GET_REPORT_DESCRIPTOR uint

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

CTL_CODE() public static method

public static CTL_CODE ( uint devType, uint func, uint method, uint access ) : uint
devType uint
func uint
method uint
access uint
return uint

CreateFileFromDevice() public static method

public static CreateFileFromDevice ( string filename, EFileAccess desiredAccess, EFileShare shareMode ) : IntPtr
filename string
desiredAccess EFileAccess
shareMode EFileShare
return System.IntPtr

CreateManualResetEventOrThrow() public static method

public static CreateManualResetEventOrThrow ( ) : IntPtr
return System.IntPtr

HIDP_ERROR_CODES() public static method

public static HIDP_ERROR_CODES ( int sev, ushort code ) : int
sev int
code ushort
return int

HID_CTL_CODE() public static method

public static HID_CTL_CODE ( uint id ) : uint
id uint
return uint

NTString() public static method

public static NTString ( char buffer ) : string
buffer char
return string

OverlappedOperation() public static method

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
return void

Property Details

HIDP_STATUS_INVALID_PREPARSED_DATA public_oe static_oe property

public static int HIDP_STATUS_INVALID_PREPARSED_DATA
return int

HIDP_STATUS_SUCCESS public_oe static_oe property

public static int HIDP_STATUS_SUCCESS
return int

IOCTL_HID_GET_REPORT_DESCRIPTOR public_oe static_oe property

public static uint IOCTL_HID_GET_REPORT_DESCRIPTOR
return uint