网站首页  词典首页

请输入您要查询的函数:

 

术语 regunloadkey
释义 RegUnLoadKey
语法:
C++
LONG WINAPI RegUnLoadKey(
__in HKEY hKey,
__in_opt LPCTSTR lpSubKey
);
RegUnLoadKey功能
卸载指定的注册表项及其子项从注册表中。
参数
hKey [in]
句柄的注册表项被卸载。此参数可以是一个处理一个,以RegConnectRegistry职能或下列之一调用返回预定义的处理:
HKEY_LOCAL_MACHINE
HKEY_USERS
lpSubKey [中,可选]
该子项的名称被卸载。关键提到了lpSubKey参数必须已经建立使用RegLoadKey功能。
键名不区分大小写。
有关更多信息,请注册元素的大小限制。
返回值
如果函数成功,返回值是ERROR_SUCCESS。
如果函数失败,返回值是一个非零错误代码Winerror.h中定义。您可以使用带有FORMAT_MESSAGE_FROM_SYSTEM标记的FormatMessage函数获得错误的一般说明。
备注
此函数删除从注册表配置单元,但不修改该文件包含注册表的信息。配置单元是一个项,子项离散身体状况,这是注册表的层次结构顶部根深蒂固的价值观念。
调用进程必须在计算机上的注册表中,居住SE_RESTORE_NAME和SE_BACKUP_NAME特权。有关更多信息,请运行特权。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinreg.h(头文件:winuser.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
Unicode和ANSI namesRegUnLoadKeyW(Unicode)和RegUnLoadKeyA(ANSI)的
参见
RegConnectRegistry
RegDeleteKey
登记职能
注册表概述
RegLoadKey
RegRestoreKey
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==RegUnLoadKey Function
Unloads the specified registry key and its subkeys from the registry.
Syntax
C++
LONG WINAPI RegUnLoadKey(
__in HKEY hKey,
__in_opt LPCTSTR lpSubKey
);
Parameters
hKey [in]
A handle to the registry key to be unloaded. This parameter can be a handle returned by a call to RegConnectRegistry function or one of the following predefined handles:
HKEY_LOCAL_MACHINE
HKEY_USERS
lpSubKey [in, optional]
The name of the subkey to be unloaded. The key referred to by the lpSubKey parameter must have been created by using the RegLoadKey function.
Key names are not case sensitive.
For more information, see Registry Element Size Limits .
Return Value
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.
Remarks
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.
The calling process must have the SE_RESTORE_NAME and SE_BACKUP_NAME privileges on the computer in which the registry resides. For more information, see Running with Special Privileges .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinreg.h (include Windows.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
Unicode and ANSI namesRegUnLoadKeyW (Unicode) and RegUnLoadKeyA (ANSI)
See Also
RegConnectRegistry
RegDeleteKey
Registry Functions
Registry Overview
RegLoadKey
RegRestoreKey
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724924(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:20:20