Function Reference


_SafeArrayAllocData

Allocates memory for a SafeArray's data without initializing it.

_SafeArrayAllocData($pSafeArray)

Parameters

$pSafeArray Pointer to the SafeArray descriptor.

Return Value

Success: 0 (S_OK).
Failure: Non-zero HRESULT and sets @error:
1 - Invalid SafeArray pointer.
2 - DllCall failure.

Remarks

The SafeArray descriptor must have been allocated using _SafeArrayAllocDescriptor or _SafeArrayAllocDescriptorEx.
The caller must initialize the data and call _SafeArrayDestroyData to free it.

Related

_SafeArrayAllocDescriptor, _SafeArrayAllocDescriptorEx, _SafeArrayDestroyData