SafeArrayDestroyDescriptor Function

Destroys a descriptor of a safe array.

HRESULT SafeArrayDestroyDescriptor{
  SAFEARRAY *psa
};

psa

Pointer to a safe array descriptor.

The return value obtained from the returned HRESULT is one of the following.

Value

Meaning

S_OK

Success.

DISP_E_ARRAYISLOCKED

The array is currently locked.

E_INVALIDARG

The item pointed to by psa is not a safe array descriptor.

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.

Show:
© 2014 Microsoft