RegCloseKey

Closes a key to the Registration Database.

Syntax:

RegCloseKey(handle)

Parameters:

(i) handle handle to a registration database key.

Returns:

(i)  @TRUE Database was closed; @FALSE Close failed.

 

The RegCloseKey function closes a key to the Registration Database. The key is opened or created with the RegOpenKey or the RegCreateKey functions. Registration Database changes made using a key are saved when the key is closed.

Example:


key=RegOpenKey(@REGCLASSES, "txtfile")
b=RegQueryStr(key, "shell\open\command")
RegCloseKey(key)
Message("Default textfile editor is", b)
See Also:

RegOpenKey, RegCreateKey, RegSetValue, RegQueryValue, and the section on Registration Database Operations