Configuration Manager
4-12
Create a New Configuration
CfgNew
Syntax
HANDLE CfgNew();
Parameter(s)
none
Return Value
Returns handle to new configuration or NULL on memory allocation error.
Description
Creates a configuration handle that can be used with other configuration func-
tions. The new handle defaults to the inactive state (see CfgExecute()).
Remove Configuration Entry from Configuration by Handle
CfgRemoveEntry
Syntax
int CfgRemoveEntry( HANDLE hCfg, HANDLE hCfgEntry );
Parameter(s)
hCfg
Handle to configuration
hCfgEntry
Configuration entry to remove
Return Value
Returns 0 on success or less than 0 on error. The possible errors are:
CFGERROR_BADHANDLE
Invalid hCfg handle
CFGERROR_BADPARAM
Invalid function parameter
Note: The handle hCfgEntry is not dereferenced on the event of an error.
Description
This function removes a configuration entry from a configuration.
If the execution state of the configuration is active (see CfgExecute()), then the
removal of the configuration entry is immediately reflected in the operating
state of the system.
This function also performs a single dereference operation on the configura-
tion entry handle, so the handle is invalid after the call (unless there was more
than 1 reference made). Although the entry handle is not freed until all handle
references have been removed, it is always removed from the configuration
immediately.