Partager via


TYPEDESC (Compact 2013)

3/26/2014

This structure is used to describe the type of a variable, the return type of a function, or the type of a function parameter.

Syntax

typedef struct FARSTRUCT tagTYPEDESC {
  union {
    ESC FAR* lptdesc;
    struct FARSTRUCT tagTYPEDSC* lptdesc;
    struct FARSTRUCT tagARAYDESC FAR* lpadesc;
    HREFTYPE hreftype;
  } UNION_NAME(u);
  VARTYPE vt;
} TYPEDESC;

Members

  • lptdesc
    VT_PTR, the type to which this instance points.
  • lpadesc
    VT_CARRAY.
  • hreftype
    VT_USERDEFINED, can be used to retrieve type information for a user-defined type using the ITypeInfo::GetRefTypeInfo method.
  • vt
    Type of the variable represented by this instance.

Remarks

If the variable is VT_SAFEARRAY or VT_PTR, the union portion of the TYPEDESC contains a pointer to a TYPEDESC that specifies the element type.

Requirements

Header

oaidl.h

See Also

Reference

Automation Structures
ITypeInfo::GetRefTypeInfo