mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Upstream commit dddccbc3ef50ac52bf00723fd2f68d98140aab80 Martin Storsjö suggested synchronizing with git snapshots rather than waiting for tagged releases. Let's try this for a few releases of Zig and see how we like it. These headers were configured with `--with-default-msvcrt=ucrt`. See related issue #18477.
38 lines
1.1 KiB
C
Vendored
38 lines
1.1 KiB
C
Vendored
/**
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is part of the mingw-w64 runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
*/
|
|
|
|
#ifndef _DISPATCHERQUEUE_H_
|
|
#define _DISPATCHERQUEUE_H_
|
|
|
|
#include <windows.system.h>
|
|
|
|
typedef ABI::Windows::System::IDispatcherQueue *PDISPATCHERQUEUE;
|
|
typedef ABI::Windows::System::IDispatcherQueueController *PDISPATCHERQUEUECONTROLLER;
|
|
|
|
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
|
|
|
enum DISPATCHERQUEUE_THREAD_APARTMENTTYPE {
|
|
DQTAT_COM_NONE = 0,
|
|
DQTAT_COM_ASTA = 1,
|
|
DQTAT_COM_STA = 2
|
|
};
|
|
|
|
enum DISPATCHERQUEUE_THREAD_TYPE {
|
|
DQTYPE_THREAD_DEDICATED = 1,
|
|
DQTYPE_THREAD_CURRENT = 2
|
|
};
|
|
|
|
struct DispatcherQueueOptions {
|
|
DWORD dwSize;
|
|
DISPATCHERQUEUE_THREAD_TYPE threadType;
|
|
DISPATCHERQUEUE_THREAD_APARTMENTTYPE apartmentType;
|
|
};
|
|
|
|
EXTERN_C HRESULT WINAPI CreateDispatcherQueueController(DispatcherQueueOptions options, PDISPATCHERQUEUECONTROLLER *dispatcherQueueController);
|
|
|
|
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
|
|
|
|
#endif /* _DISPATCHERQUEUE_H_ */
|