DispatcherQueueOptions structure (dispatcherqueue.h)

Represents options around threading affinity and type of COM apartment 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 a new DispatcherQueueController.

apartmentType

Specifies whether to initialize the COM apartment on the new thread as an application single-threaded apartment (ASTA) or a single-threaded apartment (STA). This field is relevant only 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

Requirement Value
Header dispatcherqueue.h

See also

CreateDispatcherQueueController