Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference
Description
Checks whether the specified registry value exists.
Format
integer AIT_RegValueExists( integer nHKeyHandle, // Key handle string strRegValueName // Registry value name );
Parameters
nHKeyHandle (input)
Specify a handle to an already opened registry key.
strRegValueName (input)
Specify the name of a registry value to check if it exists.
Return values
The return value is 1 if this value exists, 0 if not, and -1 if the function has not been processed successfully.
If the function has returned -1, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError may return.
| Extended error number | Error code |
|---|---|
| 2 | ERROR_FILE_NOT_FOUND |
| 6 | ERROR_INVALID_HANDLE |
| 87 | ERROR_INVALID_PARAMETER |
| 236 | ERROR_MORE_DATA |
| 1009 | ERROR_BADDB |
| 1010 | ERROR_BADKEY |
| 1011 | ERROR_CANTOPEN |
| 1015 | ERROR_REGISTRY_CORRUPT |
| 1016 | ERROR_REGISTRY_IO_FAILED |
| 1019 | ERROR_NO_LOG_SPACE |
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
Copyright, patent, trademark, and other intellectual property rights related to the "TMEng.dll" file are owned exclusively by Trend Micro Incorporated.