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

# SafeArrayCopyData(3w)

## NAME

**SafeArrayCopyData** (OLEAUT32.412)

## SYNOPSIS

HRESULT SafeArrayCopyData\
  (\
   SAFEARRAY\* *psaSource*,\
   SAFEARRAY\* *psaTarget*\
  )

## DESCRIPTION

Copy all data from one SafeArray to another.

## PARAMS

*psaSource* **\[In\]**  Source for copy.

*psaTarget* **\[Out\]**  Destination for copy.

## RETURNS

**Success:** **S\_OK**. *psaTarget* contains a copy of *psaSource*.

**Failure:** An **HRESULT** error code indicating the error.

## NOTES

The two arrays must have the same number of dimensions and elements.

## NOTES

See **[SafeArray(3w)](/SafeArray/3w.md)**.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/oleaut32/safearray.c"**.

Debug channel **"variant"**.
