The RegUnLoadKey function unloads the specified registry key and its subkeys from the registry. The key should have been created by a previous call to win32api::RegLoadKey.
CommentsA call to RegUnLoadKey fails if the calling process does not have the SE_RESTORE_PRIVILEGE privilege.
If hkey is a handle returned by win32api::RegConnectRegistry, then the path specified in fileName is relative to the remote computer.
Win32 API References