WriteOverlapped Method

Performs an asynchronous write operation (overlapped).

Syntax

Delphi
procedure WriteOverlapped(OV: FTSPCOverlapped; DataBuffer: Pointer; BytesToWrite: Cardinal); 
BCBuilder
void WriteOverlapped(FTSPCOverlapped OV, void * DataBuffer, Cardinal BytesToWrite);
 

Parameters

OV

[in] Instance of FTSPCOverlapped Class.

DataBuffer

[in] Buffer to write.

BytesToWrite

[in] Number of bytes to write to serial port.

Remarks

OV and DataBuffer must be "alive" during all time of the operation.
You should call GetResult method of OV instance to get status of the operation.