Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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_CURRENTValue: -1 The current thread. |
APTTYPE_STAValue: 0 A single-threaded apartment. |
APTTYPE_MTAValue: 1 A multithreaded apartment. |
APTTYPE_NAValue: 2 A neutral apartment. |
APTTYPE_MAINSTAValue: 3 The main single-threaded apartment. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
| Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
| Header | objidl.h (include Objidl.h) |