SafeArrayAllocData function

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

Syntax

HRESULT SafeArrayAllocData(
  SAFEARRAY *psa
);

Parameters

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

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