NtSetEaFile - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTIOAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetEaFile(
    _In_ HANDLE FileHandle,
    _Out_ PIO_STATUS_BLOCK IoStatusBlock,
    _In_reads_bytes_(Length) PVOID Buffer,
    _In_ ULONG Length
    );

#endif

View code on GitHub
#ifndef _NTZWAPI_H

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

#endif

View code on GitHub

This function is documented in Windows Driver Kit.


See NtQueryEaFile for information about EA.

FileHandle

HANDLE to File Object opened with FILE_SET_EA access.

IoStatusBlock

IO result of call.

EaBuffer

User's allocated input buffer containing one or more FILE_FULL_EA_INFORMATION structures.

EaBufferSize

Size of EaBuffer, in bytes.

Documented by

See also