Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.23 KB

File metadata and controls

45 lines (32 loc) · 1.23 KB

Home

Function name : RegCloseKey

Group: Registry - Library: advapi32


The RegCloseKey function releases a handle to the specified registry key.


Code examples:

Reading VFP settings from the Windows Registry
How to save registry key including its subkeys and values to a file
Obtaining current Internet Explorer browser version and UserAgent
Saving local machine ODBC Registry Entries to XML file
How to obtain Content-Type value for a file type from the System Registry
Class library providing access to the System Registry

Declaration:

LONG RegCloseKey(
  HKEY hKey   // handle to key to close
);  

FoxPro declaration:

DECLARE INTEGER RegCloseKey IN advapi32 INTEGER hKey  

Parameters:

hKey [in] Handle to the open key to close.


Return value:

If the function succeeds, the return value is 0 (ERROR_SUCCESS).