contents.gifindex.gifprev1.gifnext1.gif

REG_CLOSE_KEY Routine

Closes a specified registry key by providing access to the Windows registry routine RegCloseKey.

Usage

 Call "REG_CLOSE_KEY" 
   USING OPEN-KEY-HANDLE 
   GIVING STATUS-CODE

Parameters

OPEN-KEY-HANDLE Usage unsigned-long

Handle of an open key to close.

STATUS-CODE Numeric data item

Receives the return status of the call to Microsoft's "RegCloseKey" function. A return status of zero indicates success; non-zero indicates that an error occurred.

Comments

Registry keys should not be left open any longer than necessary.