Virtual COM for Ethernet Driver / Configuration Tool
Rev. 2.02
- 16 -
6. Win32 API
The “Virtual COM for USB Driver” program can be used in serial communication
programming. Refer to Microsoft MSDN regarding the Win32 API for serial communication.
NOTE
Currently, only basic serial communication APIs are supported.
In the future, additional APIs suited to user needs are set to be added.
6-1 File I/O API
1) CreateFile(): Supported
2) WriteFile():Supported
3) ReadFile():Supported
4) CloseHandle():Supported
6-2 Communication API
1) BuildCommDCB():Supported
2) BuildCommDCBAndTimeouts():Supported
3) CommConfigDialog():Supported
4) DeviceIoControl():Supported
5) GetCommModemStatus():Supported
6) GetCommState():Supported
7) GetCommTimeouts():Supported
8) PurgeComm():Supported
9) SetCommState():Supported
10) SetCommTimeouts():Supported
6-3 Precautions for Serial Communication Programming
With CreateFile, any port name ranging from 1 to 9 may be used as “COM1” to “COM9”.
To use ports 10 to 256, the following format must be used, “\\\\.\\COM10” to
“\\\\.\\COM256”.