Platform SDK: Automation

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

Requirements

  Windows NT/2000: Requires Windows NT 3.51 SP5 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Oaidl.h.