网站首页  词典首页

请输入您要查询的函数:

 

术语 rmjoinsession
释义 RmJoinSession
语法:
C++
DWORD WINAPI RmJoinSession(
__out DWORD *pSessionHandle,
__in const WCHAR strSessionKey[ ]
);
RmJoinSession功能
加入辅助安装到现有的重新启动管理会议。此函数必须调用的会话密钥,只能从主安装程序开始的会议取得的。有效的会话密钥需要使用的重新启动管理职能。安装后,加入了第二届会议上,可以调用RmRegisterResources函数注册的资源。
参数
pSessionHandle [out]
一个指向处理现有重新经理会议。
strSessionKey [in]
一个空结束的字符串,其中包含现有会话的会话密钥。
返回值
这是最近收到的错误。该函数可以返回的系统错误在Winerror.h中定义的代码之一。
ValueMeaning
ERROR_SUCCESS
0The功能成功完成。
ERROR_SESSION_CREDENTIAL_CONFLICT
1219The会话密钥无法验证。
ERROR_SEM_TIMEOUT
121A条重新启动管理器的功能无法得到一个注册表写在规定的时间互斥。重新启动系统的建议,因为重新启动管理器进一步使用很可能会失败。
ERROR_BAD_ARGUMENTS
22One或多个参数不正确。此错误值返回的重新启动管理器的功能,如果一个NULL指针或0是一个参数,需要一个非空和非零值传递。
ERROR_WRITE_FAULT
29An行动是无法读取或写入注册表。
ERROR_MAX_SESSIONS_REACHED
353The会话的最大数目已经达到。
ERROR_OUTOFMEMORY
第14A条重新启动管理器操作无法完成,因为没有足够的内存是可用。
备注
该RmJoinSession功能加入了一个次要安装到现有的重新启动管理会议。这通常是一个安装程序,不控制的用户界面和可以运行在-的过程或门诊主安装过程。只有小学安装程序可以调用RmStartSession功能,这是典型的应用程序,控制用户界面或控制在一个更新多个补丁的安装顺序。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderRestartManager.h
LibraryRstrtmgr.lib
DLLRstrtmgr.dll
参见
RmEndSession
RmStartSession
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==RmJoinSession Function
Joins a secondary installer to an existing Restart Manager session. This function must be called with a session key that can only be obtained from the primary installer that started the session. A valid session key is required to use any of the Restart Manager functions. After a secondary installer joins a session, it can call the RmRegisterResources function to register resources.
Syntax
C++
DWORD WINAPI RmJoinSession(
__out DWORD *pSessionHandle,
__in const WCHAR strSessionKey[ ]
);
Parameters
pSessionHandle [out]
A pointer to the handle of an existing Restart Manager Session.
strSessionKey [in]
A null-terminated string that contains the session key of an existing session.
Return Value
This is the most recent error received. The function can return one of the system error codes that are defined in Winerror.h.
ValueMeaning
ERROR_SUCCESS
0The function completed successfully.
ERROR_SESSION_CREDENTIAL_CONFLICT
1219The session key cannot be validated.
ERROR_SEM_TIMEOUT
121A Restart Manager function could not obtain a Registry write mutex in the allotted time. A system restart is recommended because further use of the Restart Manager is likely to fail.
ERROR_BAD_ARGUMENTS
22One or more arguments are not correct. This error value is returned by the Restart Manager function if a NULL pointer or 0 is passed in a parameter that requires a non-null and non-zero value.
ERROR_WRITE_FAULT
29An operation was unable to read or write to the registry.
ERROR_MAX_SESSIONS_REACHED
353The maximum number of sessions has been reached.
ERROR_OUTOFMEMORY
14A Restart Manager operation could not complete because not enough memory was available.

Remarks
The RmJoinSession function joins a secondary installer to an existing Restart Manager session. This is typically an installer that does not control the user interface and can run either in-process or out-of-process of the primary installer. Only the primary installer can call the RmStartSession function and this is typically the application that controls the user interface or that controls the installation sequence of multiple patches in an update.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderRestartManager.h
LibraryRstrtmgr.lib
DLLRstrtmgr.dll
See Also
RmEndSession
RmStartSession
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa373662(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:25:46