DISPATCHERQUEUE_THREAD_APARTMENTTYPE enumeration (dispatcherqueue.h)

Specifies the threading apartment type for a new DispatcherQueueController.

Syntax

typedef enum DISPATCHERQUEUE_THREAD_APARTMENTTYPE {
  DQTAT_COM_NONE = 0,
  DQTAT_COM_ASTA = 1,
  DQTAT_COM_STA = 2
} ;

Constants

 
DQTAT_COM_NONE
Value: 0
No COM threading apartment type specified.
DQTAT_COM_ASTA
Value: 1
Specifies an application single-threaded apartment (ASTA) COM threading apartment.
DQTAT_COM_STA
Value: 2
Specifies a single-threaded apartment (STA) COM threading apartment.

Remarks

This value is relevant when DispatcherQueueOptions.threadType is DQTYPE_THREAD_DEDICATED. Use DQTAT_COM_NONE when DispatcherQueueOptions.threadType is DQTYPE_THREAD_CURRENT.

Introduced in Windows 10, version 1709.

Requirements

   
Header dispatcherqueue.h

See also

CreateDispatcherQueueController

DispatcherQueueOptions