#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetEventBoostPriority(
_In_ HANDLE EventHandle
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetEventBoostPriority(
_In_ HANDLE EventHandle
);
View code on GitHub
Function NtSetEventPriorityBoost
was added in Windows XP system. Has the same functionality as NtSetEvent
, but thread that is waiting on specified Event will be executed immediately after context switch, regardless of waiting thread's priority.
HANDLE
to previously created or opened Event object. Note that Event has to be created with EVENT_TYPE
set to SynchronizationEvent (automatic reset), in other cases function will return with error.