Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

AvRtDeleteThreadOrderingGroup function (avrt.h)

  • 2024-02-22
Feedback

In this article

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

AVRTAPI BOOL AvRtDeleteThreadOrderingGroup(  [in] HANDLE Context);

Parameters

[in] Context

A context handle. This handle is returned by theAvRtCreateThreadOrderingGroup 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, callGetLastError.

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 <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;}

Requirements

RequirementValue
Minimum supported clientWindows Vista [desktop apps only]
Minimum supported serverWindows Server 2008 [desktop apps only]
Target PlatformWindows
Headeravrt.h
LibraryAvrt.lib
DLLAvrt.dll

See also

Thread Ordering Service


Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo