网站首页  词典首页

请输入您要查询的函数:

 

术语 rmgetlist
释义 RmGetList
语法:
C++
DWORD WINAPI RmGetList(
__in DWORD dwSessionHandle,
__out UINT *pnProcInfoNeeded,
__inout UINT *pnProcInfo,
__inout_opt RM_PROCESS_INFO rgAffectedApps[ ],
__out LPDWORD lpdwRebootReasons
);
RmGetList功能
获取所有应用程序和服务,这是目前使用已与重新登记管理会议资源列表。
参数
dwSessionHandle [in]
句柄到现有的重新启动管理会议。
pnProcInfoNeeded [out]
对一个数组的大小,以获得所需的必要退回所有受影响的应用程序和服务的信息RM_PROCESS_INFO结构的指针。
pnProcInfo [ in , out ]
一个数组和指针填充物的数目的RM_PROCESS_INFO结构的总数。
rgAffectedApps [中,指出,可选]
一个RM_PROCESS_INFO结构数组该名单上的应用和服务使用已登记的会议资源。
lpdwRebootReasons [out]
指针的位置,也能收到RM_REBOOT_REASON枚举说明理由重新启动系统的价值是必要的。
返回值
这是最近收到的错误。该函数可以返回的系统错误在Winerror.h中定义的代码之一。
ValueMeaning
ERROR_SUCCESS
0The功能成功完成。
ERROR_MORE_DATA
234This返回错误值由RmGetList功能,如果rgAffectedApps缓冲区太小,无法容纳所有列表中的应用程序的信息。
ERROR_CANCELLED
1223The取消当前的操作是由用户。
ERROR_SEM_TIMEOUT
121A条重新启动管理器的功能无法得到一个注册表写在规定的时间互斥。重新启动系统的建议,因为重新启动管理器进一步使用很可能会失败。
ERROR_BAD_ARGUMENTS
160One或多个参数不正确。此错误值返回的重新启动管理器的功能,如果一个NULL指针或0是一个参数,需要一个非空和非零值传递。
ERROR_WRITE_FAULT
29An行动是无法读取或写入注册表。
ERROR_OUTOFMEMORY
第14A条重新启动管理器操作无法完成,因为没有足够的内存是可用。
出现ERROR_INVALID_HANDLE
6No存在重新启动管理会议提供的句柄。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderRestartManager.h
LibraryRstrtmgr.lib
DLLRstrtmgr.dll
参见
RmCancelCurrentTask
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==RmGetList Function
Gets a list of all applications and services that are currently using resources that have been registered with the Restart Manager session.
Syntax
C++
DWORD WINAPI RmGetList(
__in DWORD dwSessionHandle,
__out UINT *pnProcInfoNeeded,
__inout UINT *pnProcInfo,
__inout_opt RM_PROCESS_INFO rgAffectedApps[ ],
__out LPDWORD lpdwRebootReasons
);
Parameters
dwSessionHandle [in]
A handle to an existing Restart Manager session.
pnProcInfoNeeded [out]
A pointer to an array size necessary to receive RM_PROCESS_INFO structures required to return information for all affected applications and services.
pnProcInfo [in, out]
A pointer to the total number of RM_PROCESS_INFO structures in an array and number of structures filled.
rgAffectedApps [in, out, optional]
An array of RM_PROCESS_INFO structures that list the applications and services using resources that have been registered with the session.
lpdwRebootReasons [out]
Pointer to location that receives a value of the RM_REBOOT_REASON enumeration that describes the reason a system restart is needed.
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_MORE_DATA
234This error value is returned by the RmGetList function if the rgAffectedApps buffer is too small to hold all application information in the list.
ERROR_CANCELLED
1223The current operation is canceled by user.
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
160One 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_OUTOFMEMORY
14A Restart Manager operation could not complete because not enough memory was available.
ERROR_INVALID_HANDLE
6No Restart Manager session exists for the handle supplied.

Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderRestartManager.h
LibraryRstrtmgr.lib
DLLRstrtmgr.dll
See Also
RmCancelCurrentTask
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa373661(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:30