41 _tprintf(
TEXT(
"Port handle not NULL. Must be already open. Returning FALSE...\n"));
74 if (hTempPortHandle ==
NULL)
111 dcb.BaudRate = BaudRate;
116 dcb.fDsrSensitivity =
FALSE;
121 dcb.fAbortOnError =
TRUE;
122 dcb.fOutxCtsFlow =
FALSE;
123 dcb.fOutxDsrFlow =
FALSE;
125 dcb.fDsrSensitivity =
FALSE;
127 dcb.fOutxCtsFlow =
FALSE;
128 dcb.fOutxCtsFlow =
FALSE;
132 dcb.DCBlength =
sizeof(dcb);
static UNICODE_STRING PortName
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
BOOL WINAPI SetCommTimeouts(HANDLE hComm, LPCOMMTIMEOUTS lptimeouts)
BOOL WINAPI SetCommState(HANDLE handle, LPDCB lpdcb)
BOOL WINAPI GetCommState(HANDLE handle, LPDCB lpdcb)
BOOL WINAPI GetCommTimeouts(HANDLE hComm, LPCOMMTIMEOUTS lptimeouts)
BOOL Rs232SetCommunicationTimeoutsWin32(DWORD ReadIntervalTimeout, DWORD ReadTotalTimeoutMultiplier, DWORD ReadTotalTimeoutConstant, DWORD WriteTotalTimeoutMultiplier, DWORD WriteTotalTimeoutConstant)
BOOL Rs232OpenPortWin32(TCHAR *CommPort)
BOOL Rs232ClosePortWin32(VOID)
BOOL Rs232ReadByteWin32(BYTE *DataByte)
BOOL Rs232ConfigurePortWin32(TCHAR *DeviceControlString)
BOOL Rs232WriteByteWin32(BYTE DataByte)
_In_ NDIS_ERROR_CODE ErrorCode
DWORD WriteTotalTimeoutConstant
DWORD ReadTotalTimeoutMultiplier
DWORD ReadTotalTimeoutConstant
DWORD ReadIntervalTimeout
DWORD WriteTotalTimeoutMultiplier
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesWritten
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesRead
DWORD WINAPI GetLastError(void)
#define DTR_CONTROL_DISABLE
#define RTS_CONTROL_DISABLE