xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::windows::com::variantTypes Namespace Reference

Namespace containing Windows COM variant types. More...

Variables

constexpr VARTYPE VT_EMPTY
 The type for a default constructed variant.
 
constexpr VARTYPE VT_NULL
 A database-style NULL value.
 
constexpr VARTYPE VT_I2
 A 16-bit integer.
 
constexpr VARTYPE VT_I4
 A 32-bit integer.
 
constexpr VARTYPE VT_R4
 A 32-bit IEEE floating point value.
 
constexpr VARTYPE VT_R8
 A 64-bit IEEE floating point value.
 
constexpr VARTYPE VT_CY
 A currency value.
 
constexpr VARTYPE VT_DATE
 A date and time value.
 
constexpr VARTYPE VT_BSTR
 A UTF-16 string.
 
constexpr VARTYPE VT_DISPATCH
 A COM dispatch interface pointer.
 
constexpr VARTYPE VT_ERROR
 An error code.
 
constexpr VARTYPE VT_BOOL
 A Boolean value.
 
constexpr VARTYPE VT_VARIANT
 A pointer to another variant.
 
constexpr VARTYPE VT_UNKNOWN
 A pointer to a generic COM object.
 
constexpr VARTYPE VT_DECIMAL
 A fixed point decimal.
 
constexpr VARTYPE VT_I1
 An 8-bit integer.
 
constexpr VARTYPE VT_UI1
 An unsigned 8-bit integer.
 
constexpr VARTYPE VT_UI2
 An unsigned 16-bit integer.
 
constexpr VARTYPE VT_UI4
 A 32-nit unsigned integer.
 
constexpr VARTYPE VT_I8
 A 64-bit integer.
 
constexpr VARTYPE VT_UI8
 An unsigned 64-bit integer.
 
constexpr VARTYPE VT_INT
 An integer.
 
constexpr VARTYPE VT_UINT
 An unsigned integer.
 
constexpr VARTYPE VT_RECORD
 A user defined record.
 
constexpr VARTYPE VT_ARRAY
 Flag for an array of values.
 
constexpr VARTYPE VT_TYPEMASK
 Bit mask to extract the base type from a type.
 

Detailed Description

Namespace containing Windows COM variant types.

The constants defined in this namespace are equivalent to the values of the Windows enum VARENUM. The constants can be used to specify types vor xentara::utils::windows::com::Variant.

Variable Documentation

◆ VT_ARRAY

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_ARRAY
constexpr

Flag for an array of values.

This value is ORed together with another type to indicate that the value is an array. The native type for arrays is always const SAFEARRAY &, regardless of the element type.

See also
VARENUM
IRecordInfo

◆ VT_BOOL

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_BOOL
constexpr

A Boolean value.

The native type for this variant type is bool.

See also
VARENUM

◆ VT_BSTR

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_BSTR
constexpr

A UTF-16 string.

The native type for this variant type is std::wstring_view.

See also
VARENUM

◆ VT_CY

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_CY
constexpr

A currency value.

The native type for this variant type is the currency union type CY.

See also
VARENUM

◆ VT_DATE

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_DATE
constexpr

A date and time value.

The native type for this variant type is the Windows type DATE, which is just a double.

See also
VARENUM
See section 2.2.25: DATE in the Windows Open Specifications at docs.microsoft.com

◆ VT_DECIMAL

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_DECIMAL
constexpr

A fixed point decimal.

The native type for this variant type is .

See also
VARENUM

◆ VT_DISPATCH

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_DISPATCH
constexpr

A COM dispatch interface pointer.

The native type for this variant type is IDispatch *.

See also
VARENUM

◆ VT_EMPTY

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_EMPTY
constexpr

The type for a default constructed variant.

The native type for this variant type is void.

See also
VARENUM

◆ VT_ERROR

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_ERROR
constexpr

An error code.

The native type for this variant type is the Windows type HRESULT

See also
VARENUM
winerror.h header in the Programming reference for the Win32 API at docs.microsoft.com.

◆ VT_I1

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_I1
constexpr

An 8-bit integer.

The native type for this variant type is std::int8_t.

See also
VARENUM

◆ VT_I2

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_I2
constexpr

A 16-bit integer.

The native type for this variant type is std::int16_t.

See also
VARENUM

◆ VT_I4

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_I4
constexpr

A 32-bit integer.

The native type for this variant type is std::int32_t.

See also
VARENUM

◆ VT_I8

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_I8
constexpr

A 64-bit integer.

The native type for this variant type is std::int64_t.

See also
VARENUM

◆ VT_INT

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_INT
constexpr

An integer.

The native type for this variant type is int.

See also
VARENUM

◆ VT_NULL

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_NULL
constexpr

A database-style NULL value.

The native type for this variant type is void.

See also
VARENUM

◆ VT_R4

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_R4
constexpr

A 32-bit IEEE floating point value.

The native type for this variant type is float.

See also
VARENUM

◆ VT_R8

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_R8
constexpr

A 64-bit IEEE floating point value.

The native type for this variant type is double.

See also
VARENUM

◆ VT_RECORD

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_RECORD
constexpr

A user defined record.

The native type for this variant type is std::pair<void *, IRecordInfo *>.

See also
VARENUM
IRecordInfo

◆ VT_TYPEMASK

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_TYPEMASK
constexpr

Bit mask to extract the base type from a type.

This value can be used as a bit mask to remove the VT_ARRAY flag from a type.

◆ VT_UI1

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_UI1
constexpr

An unsigned 8-bit integer.

The native type for this variant type is std::uint8_t.

See also
VARENUM

◆ VT_UI2

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_UI2
constexpr

An unsigned 16-bit integer.

The native type for this variant type is std::uint16_t.

See also
VARENUM

◆ VT_UI4

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_UI4
constexpr

A 32-nit unsigned integer.

The native type for this variant type is std::uint_32_t.

See also
VARENUM

◆ VT_UI8

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_UI8
constexpr

An unsigned 64-bit integer.

The native type for this variant type is std::uint64_t.

See also
VARENUM

◆ VT_UINT

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_UINT
constexpr

An unsigned integer.

The native type for this variant type is unsigned int.

See also
VARENUM

◆ VT_UNKNOWN

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_UNKNOWN
constexpr

A pointer to a generic COM object.

The native type for this variant type is IUnknown.

See also
VARENUM

◆ VT_VARIANT

constexpr VARTYPE xentara::utils::windows::com::variantTypes::VT_VARIANT
constexpr

A pointer to another variant.

The native type for this variant type is const VARIANT &.

See also
VARENUM