CloseThreadWaitChainSession function

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

Syntax

void CloseThreadWaitChainSession(
  HWCT WctHandle
);

Parameters

WctHandle

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

Return Value

This function does not return a value.

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

   
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