SafeArrayAllocData function (oleauto.h)

Allocates memory for a safe array, based on a descriptor created with SafeArrayAllocDescriptor.

Syntax

HRESULT SafeArrayAllocData(
  [in] SAFEARRAY *psa
);

Parameters

[in] psa

A safe array descriptor created by SafeArrayAllocDescriptor.

Return value

This function can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
The argument psa is not valid.
E_UNEXPECTED
The array could not be locked.

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll