The RegLoadKey function creates a subkey under HKEY_USER or HKEY_LOCAL_MACHINE and stores registration information from a 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. A hive is backed by a single file and .LOG file.
LONG RegLoadKey(
HKEY hKey, |
// handle of open key |
LPCTSTR lpSubKey, |
// address of name of subkey |
LPCTSTR lpFile |
// address of filename for registry information |
); |
HKEY_LOCAL_MACHINE
HKEY_USERS
This function always loads information at the top of the registry hierarchy.
The HKEY_CLASSES_ROOT and HKEY_CURRENT_USER handle values cannot
be specified for this parameter, because they represent subsets of the HKEY_LOCAL_MACHINE
and HKEY_USERS handle values, respectively.
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is a nonzero error code defined in WINERROR.H. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error.
If hKey is a handle returned by RegConnectRegistry, then the path specified in lpFile is relative to the remote computer.
Windows NT: The calling process must have the SE_RESTORE_NAME privilege. For more information about privileges, see Privileges.
Windows 95: Security privileges are not supported or required.
RegConnectRegistry, RegDeleteKey, RegReplaceKey, RegRestoreKey, RegSaveKey, RegUnloadKey
file: /Techref/os/win/api/win32/func/src/f73_1.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/11/12 18:15,
3.144.111.174:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/techref/os/win/api/win32/func/src/f73_1.htm"> RegLoadKey</A> |
Did you find what you needed? |