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

# NtSetInformationFile(3w)

## NAME

**NtSetInformationFile** (NTDLL.@)

## SYNOPSIS

NTSTATUS NtSetInformationFile\
  (\
   HANDLE                 *handle*,\
   PIO\_STATUS\_BLOCK       *io*,\
   PVOID                  *ptr*,\
   ULONG                  *len*,\
   FILE\_INFORMATION\_CLASS *class*\
  )

## DESCRIPTION

Set information about an open file *handle*.

## PARAMS

*handle* **\[In\]**  Handle returned from **ZwOpenFile(3w)** or **ZwCreateFile(3w)**.

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

*ptr* **\[In\]**  Source for file information.

*len* **\[In\]**  Size of FileInformation.

*class* **\[In\]**  Type of file information to set.

## RETURNS

**Success:** **0.** *io* is updated.

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

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
