Releases the specified key's handle.
LONG RegCloseKey( HKEY hKey );
hKey
This function does not necessarily write information to the registry before returning; it can take as much as several seconds for the cache to flush to the hard disk. If an application must explicitly write registry information to the hard disk, it can use RegFlushKey.
The handle for a specified key should not be used after it is closed, because it is no longer valid. Key handles should not be open any longer than necessary.
ERROR_SUCCESS
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/iwin32.h | iwin32.h iwin32rt.h |
rt.lib |
Note
This function operates in the real-time portion of your application.
RegCreateKeyEx, RegDeleteKey, RegFlushKey, RegOpenKeyEx, RegSetValueEx, iwin32 API, iwin32 Overview