How To Open A Virtual Com Port That Larger Than "Com 9" By Calling Createfile() Win32 Api - ICP DAS USA PDS-220F Series User Manual

Hide thumbs Also See for PDS-220F Series:
Table of Contents

Advertisement

ГК Атлант Инжиниринг – официальный представитель в РФ и СНГ
+7(495)109-02-08 sales@bbrc.ru www.bbrc.ru
2. How to open a virtual COM port that larger than "COM 9" by calling
CreateFile() Win32 API?
If you want to open "COM 10", the correct way to call the CreateFile() is as follows:
CreateFile(
"\\\\. \\COM10",
fdwAccess,
0,
NULL,
OPEN_EXISTING,
0,
NULL
);
!
NOTES:
1.
This syntax also works for ports COM 1 through COM 9. See more... MS
Q115831.
2.
Maximum COM port number for VxComm Driver is COM 256.
3.
Valid COM port number for MSCOMM.OCX is between 1 to 16. Please refer to
MSComm.CommPort.
4.
The "\\.\" prefix must be add to the COM port name (device name) when it is larger
than "COM 9". But please note that the "\" character is a special escape symbol in
C\C++ language, thus you have to use "\\\\.\\" prefix in C\C++ language.
PDS-220Fx Series User Manual (V1.2, Apr. 2015)
// address of name of the communications device
// access (read-write) mode
// share mode
// address of security descriptor
// how to create
// file attributes
// handle of file with attributes to copy
86

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pds-220ftPds-220fcPds-220fcsPds-220fcs-60

Table of Contents