SafeArrayDestroyDescriptor function (oleauto.h)
Destroys the descriptor of the specified safe array.
Syntax
HRESULT SafeArrayDestroyDescriptor(
[in] SAFEARRAY *psa
);
Parameters
[in] psa
A safe array descriptor.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
The argument psa was not valid. |
|
The array is locked. |
Remarks
This function is typically used to destroy the descriptor of a safe array that contains elements with data types other than variants. Destroying the array descriptor does not destroy the elements in the array. Before destroying the array descriptor, call SafeArrayDestroyData to free the elements.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |