#ifndef _NTIOAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetIoCompletion(
_In_ HANDLE IoCompletionHandle,
_In_opt_ PVOID KeyContext,
_In_opt_ PVOID ApcContext,
_In_ NTSTATUS IoStatus,
_In_ ULONG_PTR IoStatusInformation
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetIoCompletion(
_In_ HANDLE IoCompletionHandle,
_In_opt_ PVOID KeyContext,
_In_opt_ PVOID ApcContext,
_In_ NTSTATUS IoStatus,
_In_ ULONG_PTR IoStatusInformation
);
View code on GitHub
Function NtSetIoCompletion
increments pending IO counter in IO Completion Object. It can be used to manual finish IO operation.
HANDLE
to IO Completion Object opened with IO_COMPLETION_MODIFY_STATE
access.
User's defined key received by NtRemoveIoCompletion
function.
IO result of call.
IO operation status.
Number of bytes transferred in manually finished IO operation.