SafeArrayCopy

psa, ppsaOut)
SAFEARRAY FAR* psa
SAFEARRAY FAR* FAR* ppsaOut

Creates a copy of an existing safe array.

Parameters

psa

Pointer to an array descriptor created by SafeArrayCreate.

ppsaOut

Pointer to a location in which to return the new array descriptor.

Return Value

The SCODE obtained from the returned HRESULT is one of the following:

SCODE
Meaning
S_OK
Success.
E_INVALIDARG
The argument psa was not a valid safe array descriptor.
E_OUTOFMEMORY
Insufficient memory to create the copy.

Comments

SafeArrayCopy
calls the string or variant manipulation functions if the array to copy contains either of those data types. If the array being copied contains object references, the reference counts for those objects are incremented.

See Also

SysAllocStringLen
, VariantCopy, VariantCopyInd.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database