CComObjectThreadModel

#if defined(_ATL_SINGLE_THREADED)
typedef CComSingleThreadModel CComObjectThreadModel
#elif defined (_ATL_APARTMENT_THREADED)
typedef CComSingleThreadModel CComObjectThreadModel
#else
typedef CComMultiThreadModel CComObjectThreadModel
#endif

Depending on the threading model used by your application, the typedef name CComObjectThreadModel references either CComSingleThreadModel or CComMultiThreadModel.

At a Glance

Header file: Atlbase.h
Platforms:
Versions: 2.0 and later
Complete documentation: Visual C++ documentation

Remarks

Windows CE only supports the single threading and free threading models. It doesn't support the apartment threading model.

See Also

CComObjectRootEx