AIT_RegDeleteValue

Description

Deletes a specified registry value.

Format

bool AIT_RegDeleteValue(
 integer nHKeyHandle,     // Key handle
 string strRegValueName   // Registry value name
);

Parameters

nHKeyHandle (input)

Specify a handle to an already opened registry key.

strRegValueName (input)

Specify a registry key name you want to delete.

Return values

The return value is true if the function was executed normally, and false if not. If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError might return:

Extended error numberError code
2ERROR_FILE_NOT_FOUND
6ERROR_INVALID_HANDLE
87ERROR_INVALID_PARAMETER
1009ERROR_BADDB
1010ERROR_BADKEY
1015ERROR_REGISTRY_CORRUPT
1016ERROR_REGISTRY_IO_FAILED
1019ERROR_NO_LOG_SPACE