INtime SDK Help
CfgNetSetString

Set the value for one entry.

DWORD CfgNetSetString(
CFGFILE cFile,
    LPCSTR  keyword,
    LPCSTR  value,
    int*    n
); 

Parameters

cFile
(in) File handle retrieved by previous CfgFileOpen with argument CFG_NET_EQUAL or CFG_NET_SPACE as type.
keyword
(in) The keyword for which the value should be set.
value
(in) The value for the keyword.
n
(in) The nth occurrence of the keyword is searched.

Return values

ECFG_OK for success or an error code on failure.

Remarks

Sets the value for the keyword nth occurrence in the file. Appends at end of file, if keyword is not found n times and updates n with this line number.

Errors

ECFG_BADCFGFILE
File handle out of range or invalid
ECFG_WRONGFILETYPE
Wrong file type
See Also