#ifndef _NTIOAPI_H
//
// Wait completion packet
//
#if (PHNT_VERSION >= PHNT_WINDOWS_8)
NTSYSCALLAPI
NTSTATUS
NTAPI
NtCancelWaitCompletionPacket(
_In_ HANDLE WaitCompletionPacketHandle,
_In_ BOOLEAN RemoveSignaledPacket
);
View code on GitHub#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwCancelWaitCompletionPacket(
_In_ HANDLE WaitCompletionPacketHandle,
_In_ BOOLEAN RemoveSignaledPacket
);
View code on GitHubNTSTATUS NtCancelWaitCompletionPacket (
_In_ HANDLE WaitCompletionPacketHandle,
_In_ BOOLEAN RemoveSignaledPacket
)
View the official Win32 development documentationThis function is documented in Windows SDK.
Cancels an active wait completion association if it has not been picked up from the completion port.
A handle to a wait completion packet.
a boolean which determines whether this function will attempt to cancel a packet from an IO completion object queue.
An NTSTATUS code. For more information, see Using NTSTATUS values.
| Value | Description |
|---|---|
| STATUS_SUCCESS | Success |
| STATUS_PENDING | The wait completion may be pending and the packet cannot be immediately reused. |
| STATUS_CANCELLED | The packet has already been completed or if has never been associated. |
This function has no associated import library or header file; you must call it using the LoadLibrary and GetProcAddress functions. The API is exported from ntdll.dll.
| Requirement | Value |
|---|---|
| DLL | ntdll.dll |