IComThreadingInfo interface
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.
When to implement
You do not need to implement this interface.
When to use
You can use IComThreadingInfo when your program needs to know the types of apartment and thread that it is executing in or when you need to know or set the GUID of your thread. This information is rarely of use; therefore, use of this interface is not encouraged.
Members
The IComThreadingInfo interface inherits from the IUnknown interface. IComThreadingInfo also has these types of members:
Methods
The IComThreadingInfo interface has these methods.
| Method | Description |
|---|---|
| GetCurrentApartmentType |
Retrieves the type of apartment in which the caller is executing. |
| GetCurrentLogicalThreadId |
Retrieves the GUID of the thread in which the caller is executing. |
| GetCurrentThreadType |
Retrieves the type of thread in which the caller is executing. |
| SetCurrentLogicalThreadId |
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
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IComThreadingInfo is defined as 000001ce-0000-0000-C000-000000000046 |