Function Reference


_SafeArrayDestroyDescriptor

Frees a SafeArray descriptor allocated by _SafeArrayAllocDescriptor or _SafeArrayAllocDescriptorEx.

_SafeArrayDestroyDescriptor($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

Must be called to free descriptors allocated by _SafeArrayAllocDescriptor or _SafeArrayAllocDescriptorEx.

Related

_SafeArrayAllocDescriptor, _SafeArrayAllocDescriptorEx, _SafeArrayDestroyData