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

# SetupDecompressOrCopyFileW(3w)

## NAME

**SetupDecompressOrCopyFileW** (SETUPAPI.@)

## SYNOPSIS

DWORD SetupDecompressOrCopyFileW\
  (\
   PCWSTR *source*,\
   PCWSTR *target*,\
   PUINT  *type*\
  )

## DESCRIPTION

Copy a file and decompress it if needed.

## PARAMS

*source* **\[In\]**  File to copy.

*target* **\[In\]**  Filename of the copy.

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

## RETURNS

**Success:** **ERROR\_SUCCESS**

**Failure:** Win32 error code.

## IMPLEMENTATION

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

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

Debug channel **"setupapi"**.
