#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The NtSetEventBoostPriority routine sets an event object to the signaled state and boosts the priority of threads waiting on the event.
*
* @param EventHandle A handle to the event object.
* @return NTSTATUS Successful or errant status.
*/
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.