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

# FileExists(3w)

## NAME

**FileExists** (SETUPAPI.@)

## SYNOPSIS

BOOL FileExists\
  (\
   LPCWSTR            *lpFileName*,\
   LPWIN32\_FIND\_DATAW *lpFileFindData*\
  )

## DESCRIPTION

Checks whether a file exists.

## PARAMS

*lpFileName* **\[In\]**  Name of the file to check.

lpNewFileName **\[Out\]**  Optional information about the existing file.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Declared in **"setupapi.h"**.

Implemented in **"dlls/setupapi/misc.c"**.

Debug channel **"setupapi"**.
