APTTYPE enumeration

Specifies different types of apartments.

Syntax


typedef enum _APTTYPE { 
  APTTYPE_CURRENT  = -1,
  APTTYPE_STA      = 0,
  APTTYPE_MTA      = 1,
  APTTYPE_NA       = 2,
  APTTYPE_MAINSTA  = 3
} 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 | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objidl.h

See also

CoGetApartmentType
IComThreadingInfo::GetCurrentApartmentType

 

 

Show: