include vmm.h
LONG _RegCloseKey(HKEY hkey)
Closes a previously opened key. See the documentation for the Win32 function of the same name for additional information.
ERROR_BADKEY |
ERROR_REGISTRY_CORRUPT |
The handle for the given key should not be used after it has been closed, because it will no longer be valid. Key handles should not be left open any longer than necessary.
_RegOpenKey