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

# FCIAddFile(3w)

## NAME

**FCIAddFile** (CABINET.11)

## SYNOPSIS

BOOL FCIAddFile\
  (\
   HFCI                 *hfci*,\
   char\*                *pszSourceFile*,\
   char\*                *pszFileName*,\
   BOOL                 *fExecute*,\
   PFNFCIGETNEXTCABINET *pfnfcignc*,\
   PFNFCISTATUS         *pfnfcis*,\
   PFNFCIGETOPENINFO    *pfnfcigoi*,\
   TCOMP                *typeCompress*\
  )

## DESCRIPTION

FCIAddFile adds a file to the to be created cabinet file.

## PARAMS

*hfci* **\[In\]**  An **HFCI** from FCICreate.

*pszSourceFile* **\[In\]**  A pointer to a C string which contains the name and location of the file which will be added to the cabinet.

*pszFileName* **\[In\]**  A pointer to a C string which contains the name under which the file will be stored in the cabinet.

*fExecute* **\[In\]**  A boolean value which indicates if the file should be executed after extraction of self extracting executables.

*pfnfcignc* **\[In\]**  A pointer to a function which gets information about the next cabinet.

*pfnfcis* **\[IO\]**  A pointer to a function which will report status information about the compression process.

pfnfcioi **\[In\]**  A pointer to a function which reports file attributes and time and date information.

*typeCompress* **\[In\]**  Compression type.

## RETURNS

On success, returns **TRUE** On failure, returns **FALSE**.

## INCLUDES

fci.h

## IMPLEMENTATION

Declared in **"fci.h"**.

Implemented in **"dlls/cabinet/fci.c"**.

Debug channel **"cabinet"**.
