术语 | rmcancelcurrenttask |
释义 | RmCancelCurrentTask 语法: C++ DWORD WINAPI RmCancelCurrentTask( __in DWORD dwSessionHandle ); RmCancelCurrentTask功能 取消当前RmShutdown或RmRestart操作。此函数必须调用的,已开始通过调用RmStartSession会议应用功能。 参数 dwSessionHandle [in] 句柄到现有的会话。 返回值 这是最近收到的错误。该函数可以返回的系统错误在Winerror.h中定义的代码之一。 ValueMeaning ERROR_SUCCESS 答目前的行动,要求取消。 ERROR_BAD_ARGUMENTS 160One或多个参数不正确。此错误值返回的重新启动管理器的功能,如果一个NULL指针或0是一个参数,需要一个非空和非零值传递。 ERROR_OUTOFMEMORY 第14A条重新启动管理器操作无法完成,因为没有足够的内存是可用。 出现ERROR_INVALID_HANDLE 6No存在重新启动管理会议提供的句柄。 要求: client最低支持Vista server最低支持 Windows Server 2008 HeaderRestartManager.h LibraryRstrtmgr.lib DLLRstrtmgr.dll 参见 RmRestart RmShutdown 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==RmCancelCurrentTask Function Cancels the current RmShutdown or RmRestart operation. This function must be called from the application that has started the session by calling the RmStartSession function. Syntax C++ DWORD WINAPI RmCancelCurrentTask( __in DWORD dwSessionHandle ); Parameters dwSessionHandle [in] A handle to 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 0A cancellation of the current operation is requested. 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_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 RmRestart RmShutdown Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa373658(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。