---
name: "NtSetEaFile"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/NtSetEaFile"
---

# NtSetEaFile(3w)

## NAME

**NtSetEaFile** (NTDLL.@)

## SYNOPSIS

NTSTATUS NtSetEaFile\
  (\
   HANDLE           *hFile*,\
   PIO\_STATUS\_BLOCK *iosb*,\
   PVOID            *buffer*,\
   ULONG            *length*\
  )

## DESCRIPTION

Update extended attributes for **NTFS** files.

## PARAMS

*hFile* **\[In\]**  File handle, must be opened with **FILE\_READ\_EA** access.

*iosb* **\[Out\]**  Receives information about the operation on return.

*buffer* **\[In\]**  Buffer with **EA** information.

*length* **\[In\]**  Length of *buffer*.

## RETURNS

**Success:** **0.** Attributes are updated

**Failure:** An **NTSTATUS** error code describing the error.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/file.c"**.

Debug channel **"ntdll"**.
