win32api.RegUnLoadKey

RegUnLoadKey(key, subKey)

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.

Parameters

key : PyHKEY/int

An already open key, or any one of the following win32con constants:
HKEY_USERS
HKEY_LOCAL_MACHINE

subKey : string

The name of the key to unload. This key must be a subkey of the key identified by the key parameter. This value must not be None.

Comments

A 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

Search for RegUnLoadKey at msdn, google or google groups.