The structure in which to return error information.
Error messages
CPF3CF1 E
Error code parameter not valid.
HTPA001 E
Input parameter &1 not valid.
HTPA106 E
Input configuration handle not valid.
HTPA107 E
Input directive handle in parameter &1 not valid.
Replace a Main Directive or Subdirective(QzhbReplaceDirective) API
Required Parameter Group:
1 cfg Input Binary(4)
2 dir Input Binary(4)
3 value Input Char(*)
4 value_len Input Binary(4)
5 errcode I/O Char(*)
Threadsafe: Yes
Use the QzhbReplaceDirective API to replace the string value of a main directive or
subdirective in a configuration file located in memory.
Authorities and locks
None.
Required parameter group
cfg
INPUT:BINARY(4)
The handle returned by a call to the QzhbOpenConfig API.
dir
INPUT:BINARY(4)
The handle to the main directive or subdirective to be changed.
value
INPUT:CHAR(*)
The character string to replace the directive. This string is not validated in any
way to ensure that it is a valid directive.
value_len
INPUT:BINARY(4)
The length of the value string must be greater than or equal to 1.
errcode
I/O:CHAR(*)
The structure in which to return error information.
Chapter2. Application Programming Interfaces 55