术语 | avrtdeletethreadorderinggroup |
释义 | AvRtDeleteThreadOrderingGroup 语法: C++ BOOL WINAPI AvRtDeleteThreadOrderingGroup( __in HANDLE Context ); AvRtDeleteThreadOrderingGroup功能 删除指定的线程顺序调用方创建的组。它清理的订货组线程,包括上下文信息资源,并返回。 参数 语境 [in] 阿上下文句柄。这种处理是由AvRtCreateThreadOrderingGroup在创建组函数返回。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 此功能只能称为成功地为订货父线程的线程组。如果一个线程在父线程比其他调用该函数,该函数失败的ERROR_INVALID_FUNCTION最后一个错误代码。 如果父线程超时并试图调用这个函数,该函数失败的ERROR_INVALID_PARAMETER最后一个错误代码。 实例 下面的代码删除线程订货组。 #include #include #include #pragma comment(lib, "Avrt.lib") HANDLE Context; void main() { if(!AvRtDeleteThreadOrderingGroup(Context)) printf("Error deleting group (%d)\\n", GetLastError()); } 要求: client最低支持Vista server最低支持 Windows Server 2008 HeaderAvrt.h LibraryAvrt.lib DLLAvrt.dll 参见 螺纹订购服务 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==AvRtDeleteThreadOrderingGroup Function Deletes the specified thread ordering group created by the caller. It cleans up resources for the thread ordering group, including the context information, and returns. Syntax C++ BOOL WINAPI AvRtDeleteThreadOrderingGroup( __in HANDLE Context ); Parameters Context [in] A context handle. This handle is returned by the AvRtCreateThreadOrderingGroup function when creating the group. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks This function can only be called successfully by the parent thread for the thread ordering group. If a thread other than the parent thread calls this function, the function fails with a last error code of ERROR_INVALID_FUNCTION. If the parent thread times out and attempts to call this function, the function fails with a last error code of ERROR_INVALID_PARAMETER. Examples The following code deletes a thread ordering group. #include #include #include #pragma comment(lib, "Avrt.lib") HANDLE Context; void main() { if(!AvRtDeleteThreadOrderingGroup(Context)) printf("Error deleting group (%d)\\n", GetLastError()); } Requirements Minimum supported clientWindows Vista Minimum supported serverWindows Server 2008 HeaderAvrt.h LibraryAvrt.lib DLLAvrt.dll See Also Thread Ordering Service Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms681964(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。