SafeArrayDestroy

psa)
SAFEARRAY FAR* psa

Destroys an existing array descriptor and all the data in the array. If objects are stored in the array, Release is called on each object in the array.

Parameters

psa

Pointer to an array descriptor created by SafeArrayCreate.

Return Value

The SCODE obtained from the returned HRESULT is one of the following:

SCODE
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.

Example

STDMETHODIMP_(ULONG) CEnumPoint::Release()

{

if(--m_refs == 0){

if(m_psa != NULL)

SafeArrayDestroy(m_psa);

delete this;

return 0;

}

return m_refs;

}

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database