UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:oaidl.ITypeInfo.GetVarDesc |
ITypeInfo::GetVarDesc (oaidl.h) |
Retrieves a VARDESC structure that describes the specified variable. |
|
automat\itypeinfo_getvardesc.htm |
automat |
c4226d33-37ec-4e9a-87ce-92c4ff0e6cb3 |
12/05/2018 |
GetVarDesc, GetVarDesc method [Automation], GetVarDesc method [Automation],ITypeInfo interface, ITypeInfo interface [Automation],GetVarDesc method, ITypeInfo.GetVarDesc, ITypeInfo::GetVarDesc, _oa96_ITypeInfo_GetVarDesc, automat.itypeinfo_getvardesc, oaidl/ITypeInfo::GetVarDesc |
oaidl.h |
Windows |
OaIdl.idl |
Windows |
19H1 |
|
|
|
|
|
|
Retrieves a VARDESC structure that describes the specified variable.
The index of the variable whose description is to be returned. The index should be in the range of 0 to 1 less than the number of variables in this type.
A VARDESC that describes the specified variable.
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
One or more of the arguments is not valid. |
|
Insufficient memory to complete the operation. |
To free the VARDESC structure, use ReleaseVarDesc.
In the following example, the CHECKRESULT function is undefined. Replace this function with your error handling code.
CHECKRESULT(ptypeinfo->GetVarDesc(i, &pvardesc));
idMember = pvardesc->memid;
CHECKRESULT(ptypeinfo->GetDocumentation(idMember, &bstrName, NULL, NULL,
NULL));
ptypeinfo->ReleaseVarDesc(pvardesc);