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

# GetOpenFileNameA(3w)

## NAME

**GetOpenFileNameA** (COMDLG32.@)

## SYNOPSIS

BOOL GetOpenFileNameA\
  (\
   LPOPENFILENAMEA *ofn*\
  )

## PARAMS

*ofn* **\[In/Out\]**  address of init structure.

## DESCRIPTION

Creates a dialog box for the user to select a file to open.

## RETURNS

**TRUE** on success: user enters a valid file **FALSE** on cancel, error, close or filename-does-not-fit-in-buffer.

## IMPLEMENTATION

Declared in **"commdlg.h"**.

Implemented in **"dlls/comdlg32/filedlg.c"**.

Debug channel **"commdlg"**.
