Partager via


ITypeInfo::ReleaseVarDesc

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method releases a VARDESC previously returned by ITypeInfo::GetVarDesc.

Syntax

HRESULT ReleaseVarDesc(
  VARDESC FAR* pVarDesc 
);

Parameters

  • pVarDesc
    [in] Pointer to the VARDESC to be freed.

Remarks

ReleaseVarDesc releases a VARDESC that was returned through GetVarDesc.

Example

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

Requirements

Header oaidl.h, oaidl.idl
Library oleaut32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

ITypeInfo
ITypeInfo::GetVarDesc
VARDESC