RegLoadHive

Loads a hive into a registry subkey.

Syntax:

RegLoadHive(handle, subkey, filename)

Parameters:

(i) handle either @REGUSERS or @REGMACHINE.

(s) subkey the name of the key to be created

(s) filename specifies the name of a hive file.

Returns:

(s) always 1.

 

This function creates a subkey under HKEY_USERS or HKEY_LOCAL_MACHINE and stores registration information from the specified file into that subkey. This registration information is in the form of a hive. A hive is a discrete body of keys, subkeys, and values that is rooted at the top of the registry hierarchy.

Windows Vista/2008 and newer: This function may require an Administrator level account, if it attempts to access to the HKEY_LOCAL_MACHINE registry key.

Example:
RegLoadHive(@REGMACHINE, "WinWare", "winware")
See Also:

RegUnloadHive and the section on Registration Database Operations