DispatcherQueueOptions structure (dispatcherqueue.h)
Specifies the threading and apartment type for a new DispatcherQueueController.
Syntax
struct DispatcherQueueOptions {
DWORD dwSize;
DISPATCHERQUEUE_THREAD_TYPE threadType;
DISPATCHERQUEUE_THREAD_APARTMENTTYPE apartmentType;
};
Members
dwSize
Size of this DispatcherQueueOptions structure.
threadType
Thread affinity for the created DispatcherQueueController.
apartmentType
Specifies whether to initialize COM apartment on the new thread as an application single-threaded apartment (ASTA) or single-threaded apartment (STA). This field is only relevant if threadType is DQTYPE_THREAD_DEDICATED. Use DQTAT_COM_NONE when DispatcherQueueOptions.threadType is DQTYPE_THREAD_CURRENT.
Remarks
Introduced in Windows 10, version 1709.
Requirements
| Header | dispatcherqueue.h |