IComThreadEvents::OnThreadTerminate method (comsvcs.h)
Generated when a single-threaded apartment (STA) thread is terminated.
Syntax
HRESULT OnThreadTerminate(
[in] COMSVCSEVENTINFO *pInfo,
[in] ULONG64 ThreadID,
[in] DWORD dwThread,
[in] DWORD dwTheadCnt
);
Parameters
[in] pInfo
A pointer to a COMSVCSEVENTINFO structure.
[in] ThreadID
The unique thread identifier.
[in] dwThread
The Windows thread identifier.
[in] dwTheadCnt
The number of threads in the STA thread pool.
Return value
The user verifies the return values from this method.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | comsvcs.h |