#ifndef _NTRTL_H
/**
* Releases all resources used by a wait object.
*
* \param WaitHandle The wait handle.
* \param CompletionEvent A handle to the event object to be signaled when the wait operation
* has been unregistered. This parameter can be NULL.
* \remarks If this parameter is RTL_WAITER_DEREGISTER_WAIT_FOR_COMPLETION, the function waits
* for all callback functions to complete before returning.
* \return NTSTATUS Successful or errant status.
* \sa https://learn.microsoft.com/en-us/windows/win32/sync/unregisterwaitex
*/
NTSYSAPI
NTSTATUS
NTAPI
RtlDeregisterWaitEx(
_In_ HANDLE WaitHandle,
_In_opt_ HANDLE CompletionEvent // optional: RTL_WAITER_DEREGISTER_WAIT_FOR_COMPLETION
);
View code on GitHubNo description available.