RegCloseKey
RegCloseKey a handle to the specified registry key.
Syntax
LONG RegCloseKey(
[in] HKEY hKey
);
Parameters
[in] hKey
A handle to the open key to be closed. The handle must have been opened by the RegCreateKey, RegCreateKeyEx, RegOpenKey or RegOpenKeyEx function.
Return Value
If the function succeeds, it returns ERROR_SUCCESS. If the function fails, it returns a non-zero error code.
Remarks
The handle for a specified key should not be used after it has been closed, because it will no longer be valid. Key handles should only be left open as long as necessary.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
windows.h |
wRTOS_rtss.lib |
See Also: