The RegUnLoadKey function unloads the specified key and subkeys from the registry.
LONG RegUnLoadKey(
HKEY hKey, |
// handle of open key |
LPCTSTR lpSubKey |
// address of name of subkey to unload |
); |
HKEY_LOCAL_MACHINE
HKEY_USERS
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.
This function removes a hive from the registry but does not modify the file containing the registry information. A hive is a discrete body of keys, subkeys, and values that is rooted at the top of the registry hierarchy.
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, RegLoadKey, RegRestoreKey
file: /Techref/os/win/api/win32/func/src/f73_15.htm, 2KB, , updated: 2000/4/7 12:19, local time: 2024/8/23 02:26,
18.188.86.125: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://piclist.com/tecHREF/os/win/api/win32/func/src/f73_15.htm"> RegUnLoadKey</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.