#ifndef _NTPSAPI_H
// Threads
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#define QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC 0x00000001
View code on GitHub
This flags indicates the use of a special user-mode APC that does not require the thread to enter an alertable state. The APC will be executed on the next thread's transition to user mode.
For the introduction to special user-mode APCs, see this blog post.
Because execution of special APCs is not synchronized with the target thread (which might happen to acquire locks), it is crucial to keep the amount and complexity of the code invoked by the special APC routine to a minimum.
This flag was introduced in Windows 11.