Export (0) Print
Expand All
Expand Minimize

SafeArrayCopyData

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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 
);

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.

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.

Headeroleauto.h
Libraryoleaut32.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft