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 value | Description |
|---|---|
|
The EaList parameter is not formatted correctly. This is an error code. |
Requirements
|
Target platform | |
|---|---|
|
Version |
Available in Microsoft Windows 2000 and later versions of the Windows operating system. |
|
Header |
|
|
Library |
|
|
DLL |
|
|
IRQL |
PASSIVE_LEVEL |
|
DDI compliance rules | PowerIrpDDis, HwStorPortProhibitedDDIs |
See also