Partager via


VARTYPE (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

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 = 0x8000
VT_BYREF = 0x4000
VT_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

Header oaidl.h
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Automation Enumerations
TYPEDESC
VARIANT and VARIANTARG