QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPSAPI_H
//
// Threads
//
#if (PHNT_MODE != PHNT_MODE_KERNEL)

#define QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC 0x00000001

#endif
#endif

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.

Applicable to

Related flags

Remarks

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.

Required OS version

This flag was introduced in Windows 11.