网站首页  词典首页

请输入您要查询的函数:

 

术语 regcopytree
释义 RegCopyTree
语法:
C++
LONG WINAPI RegCopyTree(
__in HKEY hKeySrc,
__in_opt LPCTSTR lpSubKey,
__in HKEY hKeyDest
);
RegCopyTree功能
复制指定的注册表项,连同其值和子,到指定的目标的关键。
参数
hKeySrc [in]
句柄到打开注册表项。关键必须是开放的KEY_READ访问权限。有关更多信息,请参见注册表关键的安全和访问权限。
这种处理是由RegCreateKeyEx的或RegOpenKeyEx函数,返回的,也可以预定义的关键之一。
lpSubKey [中,可选]
键的名称。这关键的必须是由hKeySrc参数确定的主要子项。此参数也可以为NULL。
hKeyDest [in]
句柄到目标的关键。调用进程必须具有KEY_CREATE_SUB_KEY访问的关键。
这种处理是由RegCreateKeyEx的或RegOpenKeyEx函数,返回的,也可以预定义的关键之一。
返回值
如果函数成功,返回值是ERROR_SUCCESS。
如果函数失败,返回值是一个非零错误代码Winerror.h中定义。您可以使用带有FORMAT_MESSAGE_FROM_SYSTEM标记的FormatMessage函数获得错误的一般说明。
备注
此功能还复制了关键的安全描述符。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0600或更高版本。有关详细信息,请参阅使用Windows头。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinreg.h(头文件:winuser.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
Unicode和ANSI namesRegCopyTreeW(Unicode)和RegCopyTreeA(ANSI)的
参见
登记职能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==RegCopyTree Function
Copies the specified registry key, along with its values and subkeys, to the specified destination key.
Syntax
C++
LONG WINAPI RegCopyTree(
__in HKEY hKeySrc,
__in_opt LPCTSTR lpSubKey,
__in HKEY hKeyDest
);
Parameters
hKeySrc [in]
A handle to an open registry key. The key must have been opened with the KEY_READ access right. For more information, see Registry Key Security and Access Rights .
This handle is returned by the RegCreateKeyEx or RegOpenKeyEx function, or it can be one of the predefined keys .
lpSubKey [in, optional]
The name of the key. This key must be a subkey of the key identified by the hKeySrc parameter. This parameter can also be NULL.
hKeyDest [in]
A handle to the destination key. The calling process must have KEY_CREATE_SUB_KEY access to the key.
This handle is returned by the RegCreateKeyEx or RegOpenKeyEx function, or it can be one of the predefined keys.
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 also copies the security descriptor for the key.
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinreg.h (include Windows.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
Unicode and ANSI namesRegCopyTreeW (Unicode) and RegCopyTreeA (ANSI)
See Also
Registry Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa379768(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:18:35