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

# SetEndOfFile(3w)

## NAME

**SetEndOfFile** (KERNEL32.@)

## SYNOPSIS

BOOL SetEndOfFile\
  (\
   HANDLE *hFile*\
  )

## DESCRIPTION

Sets the current position as the end of the file.

## PARAMS

*hFile* **\[In\]**  File handle.

## RETURNS

**Success:** **TRUE**.

**Failure:** **FALSE**, check **[GetLastError(3w)](/GetLastError/3w.md)**.

## IMPLEMENTATION

Declared in **"winbase.h"**.

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

Debug channel **"file"**.
