LONG RegUnLoadKey(hkey, lpSubKey) | |||
HKEY hkey; | |||
LPTSTR lpSubKey; |
The RegUnLoadKey function unloads the specified tree (hive) from the registry.
hkey
Specifies a handle to an open key. lpSubKey is relative to this handle.
lpSubKey
Specifies a path name to the key that is to be unloaded. The combination of hkey and lpSubKey must refer to a hive in the registry created with RegRestoreKey or RegLoadKey. This parameter may be NULL.
If the function is successful, the return value is ERROR_SUCCESS. Otherwise, it is an error code.
The calling process must have SeRestorePrivilege.
RegLoadKey