Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SafeArrayCopyData function

Copies the source array to the specified target array after releasing any resources in the target array. This is similar to SafeArrayCopy, except that the target array has to be set up by the caller. The target is not allocated or reallocated.

Syntax


HRESULT SafeArrayCopyData(
  _In_ SAFEARRAY *psaSource,
  _In_ SAFEARRAY *psaTarget
);

Parameters

psaSource [in]

The safe array to copy.

psaTarget [in]

The target safe array.

Return value

This function can return one of these values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

The argument psa was not valid.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

 

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Show:
© 2017 Microsoft