APTTYPE Enumeration

Specifies different types of apartments.

Syntax

typedef enum _APTTYPE {
  APTTYPE_CURRENT,
  APTTYPE_STA,
  APTTYPE_MTA,
  APTTYPE_NA,
  APTTYPE_MAINSTA
} APTTYPE;

Constants

APTTYPE_CURRENT The current thread.
APTTYPE_STA A single-threaded apartment.
APTTYPE_MTA A multithreaded apartment.
APTTYPE_NA A neutral apartment.
APTTYPE_MAINSTA The main single-threaded apartment.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Header objidlbase.h (include Objidl.h)

See Also

CoGetApartmentType

IComThreadingInfo::GetCurrentApartmentType