CComSafeArray::CopyFrom
Copies the contents of a SAFEARRAY structure into the CComSafeArray object.
HRESULT CopyFrom(
LPSAFEARRAY * ppArray
);
Parameters
- ppArray
Pointer to the SAFEARRAY to copy.
Return Value
Returns S_OK on success, or an error HRESULT on failure.
Remarks
This method copies the contents of a SAFEARRAY into the current CComSafeArray object. The existing contents of the array are replaced.
Smart Device Developer Notes
CComSafeArray::CopyFrom( SAFEARRAY * ) is supported for only VT_BSTR, VT_VARIANT, VT_UNKNOWN, and VT_DISPATCH VARTYPEs.
Requirements
Header: atlsafe.h