ITypeInfo::ReleaseVarDesc

HRESULT ReleaseVarDesc( 
  VARDESC FAR*  pVarDesc  
);
 

Releases a VARDESC previously returned by GetVarDesc.

Parameter

pVarDesc
Pointer to the VARDESC to be freed.

Comments

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);