Show / Hide Table of Contents

Interface IHidApiService

Service to handle Hid API calls. Windows oriented for now.

Inherited Members
IApiService.CreateWriteConnection(String)
IApiService.CreateReadConnection(String, FileAccessRights)
IApiService.AReadFile(SafeFileHandle, Byte[], Int32, UInt32, Int32)
IApiService.AWriteFile(SafeFileHandle, Byte[], Int32, Int32, Int32)
IApiService.AGetCommState(SafeFileHandle, Dcb)
IApiService.ASetCommState(SafeFileHandle, Dcb)
IApiService.ASetCommTimeouts(SafeFileHandle, CommTimeouts)
IApiService.APurgeComm(SafeFileHandle, Int32)
Namespace: Hid.Net.Windows
Assembly: Hid.Net.dll
Syntax
public interface IHidApiService : IApiService

Methods

GetDeviceDefinition(String, SafeFileHandle)

Declaration
ConnectedDeviceDefinition GetDeviceDefinition(string deviceId, SafeFileHandle safeFileHandle)
Parameters
Type Name Description
System.String deviceId
Microsoft.Win32.SafeHandles.SafeFileHandle safeFileHandle
Returns
Type Description
ConnectedDeviceDefinition

GetHidGuid()

Declaration
Guid GetHidGuid()
Returns
Type Description
System.Guid

GetManufacturer(SafeFileHandle)

Declaration
string GetManufacturer(SafeFileHandle safeFileHandle)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle safeFileHandle
Returns
Type Description
System.String

GetProduct(SafeFileHandle)

Declaration
string GetProduct(SafeFileHandle safeFileHandle)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle safeFileHandle
Returns
Type Description
System.String

GetSerialNumber(SafeFileHandle)

Declaration
string GetSerialNumber(SafeFileHandle safeFileHandle)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle safeFileHandle
Returns
Type Description
System.String

OpenRead(SafeFileHandle, UInt16)

Declaration
Stream OpenRead(SafeFileHandle readSafeFileHandle, ushort readBufferSize)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle readSafeFileHandle
System.UInt16 readBufferSize
Returns
Type Description
System.IO.Stream

OpenWrite(SafeFileHandle, UInt16)

Declaration
Stream OpenWrite(SafeFileHandle writeSafeFileHandle, ushort writeBufferSize)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle writeSafeFileHandle
System.UInt16 writeBufferSize
Returns
Type Description
System.IO.Stream
In This Article
Back to top Generated by DocFX