6 out of 14 rated this helpful - Rate this topic

OpenThreadWaitChainSession function

Creates a new WCT session.

Syntax


HWCT WINAPI OpenThreadWaitChainSession(
  _In_      DWORD Flags,
  _In_opt_  PWAITCHAINCALLBACK callback
);

Parameters

Flags [in]

The session type. This parameter can be one of the following values.

ValueMeaning
0

A synchronous session.

WCT_ASYNC_OPEN_FLAG

An asynchronous session.

 

callback [in, optional]

If the session is asynchronous, this parameter can be a pointer to a WaitChainCallback callback function.

Return value

If the function succeeds, the return value is a handle to the newly created session.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.

Remarks

When you have finished using the session, call the CloseThreadWaitChainSession function.

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]

Header

Wct.h

Library

Advapi32.lib

DLL

Advapi32.dll

See also

CloseThreadWaitChainSession
GetThreadWaitChain
Wait Chain Traversal
WaitChainCallback

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.