HRESULT ITypeInfo::GetVarDesc(UINT Index, VARDESC **Description);
La description est rangée dans Description.
#include <windows.h>
#include <winbase.h>
#include <ole2.h>
ITypeInfo *pITypeInfo;
UNIT Index;
VARDESC *Description;
...
Description=NULL;
if ((pITypeInfo->GetVarDesc(Index, &Description)!=S_OK)||!Description)
{
...
}
...
if (pITypeInfo->ReleaseVarDesc(Description)!=S_OK)
{
...
}
...