Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


AIT_RegCloseKey

Organization of this page

Description

Closes a handle to a specified registry key.

Format

bool AIT_RegCloseKey(
  integer nHKeyHandle     // Key handle
);

Parameters

nHKeyHandle (input)

Specify an already opened registry key.

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 number

Error code

6

ERROR_INVALID_HANDLE

87

ERROR_INVALID_PARAMETER

1009

ERROR_BADDB

1010

ERROR_BADKEY

1015

ERROR_REGISTRY_CORRUPT

1016

ERROR_REGISTRY_IO_FAILED

1019

ERROR_NO_LOG_SPACE