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: