IComThreadingInfo interface (objidlbase.h)

Enables you to obtain the following information about the apartment and thread that the caller is executing in: apartment type, thread type, and thread GUID. It also allows you to specify a thread GUID.

Inheritance

The IComThreadingInfo interface inherits from the IUnknown interface. IComThreadingInfo also has these types of members:

Methods

The IComThreadingInfo interface has these methods.

 
IComThreadingInfo::GetCurrentApartmentType

The IComThreadingInfo::GetCurrentApartmentType (objidlbase.h) method retrieves the type of apartment in which the caller is executing.
IComThreadingInfo::GetCurrentLogicalThreadId

The IComThreadingInfo::GetCurrentLogicalThreadId (objidlbase.h) method retrieves the GUID of the thread in which the caller is executing.
IComThreadingInfo::GetCurrentThreadType

The IComThreadingInfo::GetCurrentThreadType (objidlbase.h) method retrieves the type of thread in which the caller is executing.
IComThreadingInfo::SetCurrentLogicalThreadId

The IComThreadingInfo::SetCurrentLogicalThreadId (objidlbase.h) method sets the GUID of the thread in which the caller is executing.

Remarks

An instance of this interface for the current context can be obtained using CoGetObjectContext.

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 objidlbase.h (include ObjIdl.h)