OpenThreadWaitChainSession function (wct.h)
Creates a new WCT session.
HWCT OpenThreadWaitChainSession(
[in] DWORD Flags,
[in, optional] PWAITCHAINCALLBACK callback
);
[in] Flags
The session type. This parameter can be one of the following values.
[in, optional] callback
If the session is asynchronous, this parameter can be a pointer to a WaitChainCallback callback function.
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.
When you have finished using the session, call the CloseThreadWaitChainSession function.
For an example, see Using WCT.
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 |