INtime SDK Help
CfgParSetDWORD

Set parameter as a DWORD value.

DWORD Cfg(
CFGFILE cFile,
    LPCSTR  szSection,
    LPCSTR  szPar,
    DWORD   dwVal
);

Parameters

cFile
(in) File handle retrieved by previous CfgFileOpen with argument CFG_SECTION as type.
szSection
(in) Name of section in which the parameter is searched.
szPar
(in) Name of parameter.
pDest
(in) The new value for the parameter.

Return values

ECFG_OK for success or an error code on failure.

Remarks

Set the DWORD value for a section/parameter.

Errors

ECFG_BADCFGFILE
File handle out of range or invalid
ECFG_WRONGTYPE
The parameter is not a DWORD.
ECFG_NOTFOUND
Section name not found
ECFG_NOTFOUND2
Parameter name not found
ECFG_WRONGFILETYPE
Wrong file type
See Also