diff --git a/Utilities/sync.h b/Utilities/sync.h index 60ac01d9a1..bd589827e0 100644 --- a/Utilities/sync.h +++ b/Utilities/sync.h @@ -28,6 +28,12 @@ DYNAMIC_IMPORT("ntdll.dll", NtWaitForKeyedEvent, NTSTATUS(HANDLE, PVOID Key, BOO DYNAMIC_IMPORT("ntdll.dll", NtReleaseKeyedEvent, NTSTATUS(HANDLE, PVOID Key, BOOLEAN Alertable, PLARGE_INTEGER Timeout)); DYNAMIC_IMPORT("ntdll.dll", NtWaitForSingleObject, NTSTATUS(HANDLE Handle, BOOLEAN Alertable, PLARGE_INTEGER Timeout)); DYNAMIC_IMPORT("ntdll.dll", NtDelayExecution, NTSTATUS(BOOLEAN Alertable, PLARGE_INTEGER DelayInterval)); +DYNAMIC_IMPORT("ntdll.dll", NtWaitForAlertByThreadId, NTSTATUS(PVOID Address, PLARGE_INTEGER Timeout)); +DYNAMIC_IMPORT("ntdll.dll", NtAlertThreadByThreadId, NTSTATUS(DWORD_PTR ThreadId)); + +constexpr NTSTATUS NTSTATUS_SUCCESS = 0; +constexpr NTSTATUS NTSTATUS_ALERTED = 0x101; +constexpr NTSTATUS NTSTATUS_TIMEOUT = 0x102; #endif #ifndef __linux__