https://docs.microsoft.com/zh-cn/windows/desktop/api/wtypes/ne-wtypes-varenum
VARENUM Enumeration
- 2018/12/05
- 2 分钟阅读时长
Specifies the variant types.
Syntax
C++复制
typedef enum VARENUM {
VT_EMPTY,
VT_NULL,
VT_I2,
VT_I4,
VT_R4,
VT_R8,
VT_CY,
VT_DATE,
VT_BSTR,
VT_DISPATCH,
VT_ERROR,
VT_BOOL,
VT_VARIANT,
VT_UNKNOWN,
VT_DECIMAL,
VT_I1,
VT_UI1,
VT_UI2,
VT_UI4,
VT_I8,
VT_UI8,
VT_INT,
VT_UINT,
VT_VOID,
VT_HRESULT,
VT_PTR,
VT_SAFEARRAY,
VT_CARRAY,
VT_USERDEFINED,
VT_LPSTR,
VT_LPWSTR,
VT_RECORD,
VT_INT_PTR,
VT_UINT_PTR,
VT_FILETIME,
VT_BLOB,
VT_STREAM,
VT_STORAGE,
VT_STREAMED_OBJECT,
VT_STORED_OBJECT,
VT_BLOB_OBJECT,
VT_CF,
VT_CLSID,
VT_VERSIONED_STREAM,
VT_BSTR_BLOB,
VT_VECTOR,
VT_ARRAY,
VT_BYREF,
VT_RESERVED,
VT_ILLEGAL,
VT_ILLEGALMASKED,
VT_TYPEMASK
} ;
Constants
VT_EMPTY | Not specified. |
VT_NULL | Null. |
VT_I2 | A 2-byte integer. |
VT_I4 | A 4-byte integer. |
VT_R4 | A 4-byte real. |
VT_R8 | An 8-byte real. |
VT_CY | Currency. |
VT_DATE | A date. |
VT_BSTR | A string. |
VT_DISPATCH | An IDispatch pointer. |
VT_ERROR | An SCODE value. |
VT_BOOL | A Boolean value. True is -1 and false is 0. |
VT_VARIANT | A variant pointer. |
VT_UNKNOWN | An IUnknown pointer. |
VT_DECIMAL | A 16-byte fixed-pointer value. |
VT_I1 | A character. |
VT_UI1 | An unsigned character. |
VT_UI2 | An unsigned short. |
VT_UI4 | An unsigned long. |
VT_I8 | A 64-bit integer. |
VT_UI8 | A 64-bit unsigned integer. |
VT_INT | An integer. |
VT_UINT | An unsigned integer. |
VT_VOID | A C-style void. |
VT_HRESULT | An HRESULT value. |
VT_PTR | A pointer type. |
VT_SAFEARRAY | A safe array. Use VT_ARRAY in VARIANT. |
VT_CARRAY | A C-style array. |
VT_USERDEFINED | A user-defined type. |
VT_LPSTR | A null-terminated string. |
VT_LPWSTR | A wide null-terminated string. |
VT_RECORD | A user-defined type. |
VT_INT_PTR | A signed machine register size width. |
VT_UINT_PTR | An unsigned machine register size width. |
VT_FILETIME | A FILETIME value. |
VT_BLOB | Length-prefixed bytes. |
VT_STREAM | The name of the stream follows. |
VT_STORAGE | The name of the storage follows. |
VT_STREAMED_OBJECT | The stream contains an object. |
VT_STORED_OBJECT | The storage contains an object. |
VT_BLOB_OBJECT | The blob contains an object. |
VT_CF | A clipboard format. |
VT_CLSID | A class ID. |
VT_VERSIONED_STREAM | A stream with a GUID version. |
VT_BSTR_BLOB | Reserved. |
VT_VECTOR | A simple counted array. |
VT_ARRAY | A SAFEARRAY pointer. |
VT_BYREF | A void pointer for local use. |
VT_RESERVED | |
VT_ILLEGAL | |
VT_ILLEGALMASKED | |
VT_TYPEMASK |