CloseThreadWaitChainSession function (wct.h)

Closes the specified WCT session and cancels any outstanding asynchronous operations.

Syntax

void CloseThreadWaitChainSession(
  [in] HWCT WctHandle
);

Parameters

[in] WctHandle

A handle to the WCT session created by the OpenThreadWaitChainSession function.

Return value

None

Remarks

If the WCT session was opened in asynchronous mode (with WCT_ASYNC_OPEN_FLAG), the function cancels any outstanding operations after their callback functions have been called and returned, and then it returns.

Examples

For an example, see Using WCT.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wct.h
Library Advapi32.lib
DLL Advapi32.dll

See also

OpenThreadWaitChainSession

Wait Chain Traversal