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

# ExtractFilesW(3w)

## NAME

**ExtractFilesW** (ADVPACK.@)

## SYNOPSIS

HRESULT ExtractFilesW\
  (\
   LPCWSTR *CabName*,\
   LPCWSTR *ExpandDir*,\
   DWORD   *Flags*,\
   LPCWSTR *FileList*,\
   LPVOID  *LReserved*,\
   DWORD   *Reserved*\
  )

## DESCRIPTION

Extracts the specified files from a cab archive into a destination directory.

## PARAMS

*CabName* **\[In\]**  Filename of the cab archive.

*ExpandDir* **\[In\]**  Destination directory for the extracted files.

*Flags* **\[In\]**  *Reserved*.

*FileList* **\[In\]**  Optional list of files to extract. See **NOTES**.

*LReserved* **\[In\]**  *Reserved*. Must be **NULL**.

*Reserved* **\[In\]**  *Reserved*. Must be **0.**

## RETURNS

**Success:** **S\_OK**.

**Failure:** **E\_FAIL**.

## NOTES

*FileList* is a colon-separated list of filenames. If *FileList* is non-NULL, only the files in the list will be extracted from the cab file, otherwise all files will be extracted. Any number of spaces, tabs, or colons can be before or after the list, but the list itself must only be separated by colons.

## BUGS

Unimplemented.

## IMPLEMENTATION

Declared in **"advpub.h"**.

Implemented in **"dlls/advpack/files.c"**.

Debug channel **"advpack"**.
