SysComWriteΒΆ

This function of type DWORD writes the data to that port which is defined by the handle got by SysComOpen. Besides the handle also the address from which the data should be taken, the number of data which should be written and the timeout of the function must be passed on.

The function will return the number of actually written bytes.

Input Variable Data Type Description
dwHandle DWORD Port handle, acquired by SysComOpen
dwBufferAddress DWORD Address from which the data should be taken and written to the port; you can use the ADR operator to get this address
dwBytesToWrite DWORD Number of bytes, which should be written
dwTimeout DWORD Time in [ms], after which the function will return at the latest