This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
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.
AVRTAPI BOOL AvRtDeleteThreadOrderingGroup( [in] HANDLE Context);
[in] Context
A context handle. This handle is returned by theAvRtCreateThreadOrderingGroup function when creating the group.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, callGetLastError.
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.
The following code deletes a thread ordering group.
#include <windows.h>#include <avrt.h>#include <stdio.h>#pragma comment(lib, "Avrt.lib")HANDLE Context;int main( void ){ if(!AvRtDeleteThreadOrderingGroup(Context)) { printf("Error deleting group (%d)\n", GetLastError()); return 1; } return 0;}
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | avrt.h |
Library | Avrt.lib |
DLL | Avrt.dll |
Was this page helpful?
Was this page helpful?