#ifndef _NTIOAPI_H
//
// Wait completion packet
//
#if (PHNT_VERSION >= PHNT_WINDOWS_8)
/**
* The NtCreateWaitCompletionPacket routine creates a wait completion packet object.
*
* A wait completion packet is a kernel object that can be associated with wait
* or I/O completion sources and later queried via I/O completion mechanisms.
*
* \param WaitCompletionPacketHandle Pointer to a variable that receives a handle
* to the newly created wait completion packet object.
* \param DesiredAccess The access mask that specifies the requested access to
* the wait completion packet object.
* \param ObjectAttributes Optional pointer to an OBJECT_ATTRIBUTES structure that
* supplies the object name and other attributes. May be NULL.
* \return NTSTATUS Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtCreateWaitCompletionPacket(
_Out_ PHANDLE WaitCompletionPacketHandle,
_In_ ACCESS_MASK DesiredAccess,
_In_opt_ PCOBJECT_ATTRIBUTES ObjectAttributes
);
View code on GitHub#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwCreateWaitCompletionPacket(
_Out_ PHANDLE WaitCompletionPacketHandle,
_In_ ACCESS_MASK DesiredAccess,
_In_opt_ PCOBJECT_ATTRIBUTES ObjectAttributes
);
View code on GitHubNTSTATUS NtCreateWaitCompletionPacket (
_Out_ PHANDLE WaitCompletionPacketHandle,
_In_ ACCESS_MASK DesiredAccess,
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes
)
View the official Win32 development documentationThis function is documented in Windows SDK.
Creates a wait completion packet object with the specified access rights and attributes.
A pointer to a variable that receives the wait completion packet handle.
The desired types of access for the wait completion packet.
A pointer to an object attributes structure.
An NTSTATUS code. For more information, see Using NTSTATUS values.
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 |