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.
Value Meaning - 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 |
|
|
Library |
|
|
DLL |
|
See also