Programming interface
4.1 Functions of the serial interface
SIMATIC 3964R protocol for Windows 9x/XP/7
22
Installation Manual, 01/2013, J31069-D0131-U001-A2-7218
ComWriteConfig
comInt
ComWriteConfig
(LPCSTR devName,
devConfig_p conf,
BOOL force)
This function writes the configuration data for a specified port to the registry. The port does
not need to be opened.
Parameter
devName
Interface name as string
possible values: "COM1 ... COM255"
conf
Pointer to configuration variable
force
Force the immediate adoption of the configuration
Return value
0
Function successfully completed
< 0
possible error message:
•
COM_REGISTRY
•
COM_NO_CONFIG
Notes
If the "force" parameter is set to "TRUE", the configuration data is adopted immediately even
if the interface is already open. If necessary, the interface is closed to allow this and then
opened again.