次の方法で共有


VARTYPE (Windows CE 5.0)

Send Feedback

This enumeration is used in VARIANT, TYPEDESC, OLE property sets, and safe arrays.

The enumeration constants listed in the following VARENUM section are valid in the vt member of a VARIANT structure.

typedef unsigned short VARTYPE;enum VARENUM {VT_EMPTY = 0, VT_NULL = 1, VT_I2 = 2, VT_I4 = 3, VT_R4 = 4, VT_R8 = 5, VT_CY = 6, VT_DATE = 7, VT_BSTR = 8, VT_DISPATCH = 9, VT_ERROR = 10, VT_BOOL = 11, VT_VARIANT = 12, VT_UNKNOWN = 13, VT_UI1 = 17, };VT_RESERVED = 0x8000VT_BYREF = 0x4000VT_ARRAY = 0x2000

Elements

  • VT_EMPTY
    Variable type is not specified.
  • VT_NULL
    Variable type is NULL.
  • VT_I2
    Variable type is 2-byte signed INT.
  • VT_I4
    Variable type is 4-byte signed INT.
  • VT_R4
    Variable type is 4-byte real.
  • VT_R8
    Variable type is 8-byte real.
  • VT_CY
    Variable type is currency.
  • VT_DATE
    Variable type is date.
  • VT_BSTR
    Variable type is binary string.
  • VT_DISPATCH
    Variable type is IDispatch FAR*.
  • VT_ERROR
    Variable type is SCODE.
  • VT_BOOL
    Variable type is Boolean; True=-1, False=0.
  • VT_VARIANT
    Variable type is VARIANT FAR*.
  • VT_UNKNOWN
    Variable type is IUnknown FAR*.
  • VT_UI1
    Variable type is unsigned char.
  • VT_RESERVED
    This element is reserved.
  • VT_BYREF
    Variable type is a pointer to data.
  • VT_ARRAY
    Variable type is a safe array.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oaidl.h.

See Also

Automation Enumerations | TYPEDESC | VARIANT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.