ITypeInfo::ReleaseVarDesc

This method releases a VARDESC previously returned by GetVarDesc.

At a Glance

Header file: Oaidl.h
Windows CE versions: 2.0 and later

Syntax

HRESULT ReleaseVarDesc( VARDESC FAR* pVarDesc );

Parameter

pVarDesc

Pointer to the VARDESC to be freed.

Remarks

ReleaseVarDesc releases a VARDESC that was returned through ITypeInfo::GetVarDesc.

Example

VARDESC      FAR *pVarDesc;
CHECKRESULT(ptypeinfo->GetVarDesc(i, &pvardesc));
idMember = pvardesc->memid;
CHECKRESULT(ptypeinfo->GetDocumentation(idMember, &bstrName, NULL, NULL,    NULL));
ptypeinfo->ReleaseVarDesc(pvardesc);