Show / Hide Table of Contents

Interface IApiService

Namespace: Device.Net.Windows
Assembly: Device.Net.dll
Syntax
public interface IApiService

Methods

AGetCommState(SafeFileHandle, ref Dcb)

Declaration
bool AGetCommState(SafeFileHandle hFile, ref Dcb lpDCB)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle hFile
Dcb lpDCB
Returns
Type Description
System.Boolean

APurgeComm(SafeFileHandle, Int32)

Declaration
bool APurgeComm(SafeFileHandle hFile, int dwFlags)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle hFile
System.Int32 dwFlags
Returns
Type Description
System.Boolean

AReadFile(SafeFileHandle, Byte[], Int32, out UInt32, Int32)

Declaration
bool AReadFile(SafeFileHandle hFile, byte[] lpBuffer, int nNumberOfBytesToRead, out uint lpNumberOfBytesRead, int lpOverlapped)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle hFile
System.Byte[] lpBuffer
System.Int32 nNumberOfBytesToRead
System.UInt32 lpNumberOfBytesRead
System.Int32 lpOverlapped
Returns
Type Description
System.Boolean

ASetCommState(SafeFileHandle, ref Dcb)

Declaration
bool ASetCommState(SafeFileHandle hFile, ref Dcb lpDCB)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle hFile
Dcb lpDCB
Returns
Type Description
System.Boolean

ASetCommTimeouts(SafeFileHandle, ref CommTimeouts)

Declaration
bool ASetCommTimeouts(SafeFileHandle hFile, ref CommTimeouts lpCommTimeouts)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle hFile
CommTimeouts lpCommTimeouts
Returns
Type Description
System.Boolean

AWriteFile(SafeFileHandle, Byte[], Int32, out Int32, Int32)

Declaration
bool AWriteFile(SafeFileHandle hFile, byte[] lpBuffer, int nNumberOfBytesToWrite, out int lpNumberOfBytesWritten, int lpOverlapped)
Parameters
Type Name Description
Microsoft.Win32.SafeHandles.SafeFileHandle hFile
System.Byte[] lpBuffer
System.Int32 nNumberOfBytesToWrite
System.Int32 lpNumberOfBytesWritten
System.Int32 lpOverlapped
Returns
Type Description
System.Boolean

CreateReadConnection(String, FileAccessRights)

Declaration
SafeFileHandle CreateReadConnection(string deviceId, FileAccessRights desiredAccess)
Parameters
Type Name Description
System.String deviceId
FileAccessRights desiredAccess
Returns
Type Description
Microsoft.Win32.SafeHandles.SafeFileHandle

CreateWriteConnection(String)

Declaration
SafeFileHandle CreateWriteConnection(string deviceId)
Parameters
Type Name Description
System.String deviceId
Returns
Type Description
Microsoft.Win32.SafeHandles.SafeFileHandle
In This Article
Back to top Generated by DocFX