Share via


SafeArrayCopyData (Windows CE 5.0)

Send Feedback

This function copies the source array to the target array after releasing resources in the target array.

This function is similar to SafeArrayCopy, except that the target array must be set up by the caller. The target is not allocated or reallocated.

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

Parameters

  • psaSource
    [in] Pointer to the safearray to be copied.
  • psaTarget
    [out] On exit, a pointer to the array referred to by psaTarget that contains a copy of the data in psaSource.

Return Values

Returns the HRESULT values shown in the following table.

Value Description
S_OK Success.
E_INVALIDARG The psa parameter was not a valid safearray descriptor.
E_OUTOFMEMORY Insufficient memory to create the copy.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oleauto.h.
Link Library: Oleaut32.lib.

See Also

Automation Functions | SafeArrayCopy

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.