Bewerken

Delen via


FILE_COMPLETION_INFORMATION structure (ntifs.h)

The FILE_COMPLETION_INFORMATION structure contains the port handle and key for an I/O completion port created for a file handle.

Syntax

typedef struct _FILE_COMPLETION_INFORMATION {
  HANDLE Port;
  PVOID  Key;
} FILE_COMPLETION_INFORMATION, *PFILE_COMPLETION_INFORMATION;

Members

Port

The handle to the completion port created for an associated file handle.

Key

A custom defined value which is included in every I/O completion packet for Port.

Remarks

The FILE_COMPLETION_INFORMATION structure is used to replace the completion information for a port handle set in Port. Completion information is replaced with the ZwSetInformationFile routine with the FileInformationClass parameter set to FileReplaceCompletionInformation. The Port and Key members of FILE_COMPLETION_INFORMATION are set to their new values. To remove an existing completion port for a file handle, Port is set to NULL.

Requirements

Requirement Value
Minimum supported client This structure is available starting with Windows 8.1.
Header ntifs.h (include Ntifs.h, Fltkernel.h)

See also

ZwSetInformationFile