Export (0) Print
Expand All

ZwSetEaFile routine

The ZwSetEaFile routine sets extended-attribute (EA) values for a file.

Syntax


NTSTATUS ZwSetEaFile(
  _In_   HANDLE FileHandle,
  _Out_  PIO_STATUS_BLOCK IoStatusBlock,
  _In_   PVOID Buffer,
  _In_   ULONG Length
);

Parameters

FileHandle [in]

The handle for the file on which the operation is to be performed.

IoStatusBlock [out]

A pointer to an IO_STATUS_BLOCK structure that receives the final completion status and other information about the requested operation.

Buffer [in]

A pointer to a caller-supplied, FILE_FULL_EA_INFORMATION-structured input buffer that contains the extended attribute values to be set.

Length [in]

Length, in bytes, of the buffer that the Buffer parameter points to.

Return value

ZwSetEaFile returns STATUS_SUCCESS or an appropriate NTSTATUS value such as the following:

Return valueDescription
STATUS_EA_LIST_INCONSISTENT

The EaList parameter is not formatted correctly. This is an error code.

 

Requirements

Version

Available in Microsoft Windows 2000 and later versions of the Windows operating system.

Header

Ntifs.h (include FltKernel.h or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

DDI compliance rules

PowerIrpDDis, HwStorPortProhibitedDDIs

See also

FILE_FULL_EA_INFORMATION
ZwQueryEaFile

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft