Share via


TYPEDESC

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Automation Structures
ITypeInfo::GetRefTypeInfo