RtlSetIoCompletionCallback - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

/**
 * Associates the I/O completion port owned by the thread pool with the specified file handle.
 * On completion of an I/O request involving this file, a non-I/O worker thread will execute the specified callback function.
 *
 * \param FileHandle A handle to the file or device for which to set the I/O completion callback.
 * \param Function A pointer to the callback function to be executed when an I/O operation completes.
 * \param Flags Reserved; must be zero.
 * \return NTSTATUS Successful or errant status.
 * \sa https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-bindiocompletioncallback
 */
NTSYSAPI
NTSTATUS
NTAPI
RtlSetIoCompletionCallback(
    _In_ HANDLE FileHandle,
    _In_ PRTL_OVERLAPPED_COMPLETION_ROUTINE Function,
    _In_ ULONG Flags
    );

#endif

View code on GitHub

NtDoc

No description available.