29 references to VT_ERROR
System.Private.Windows.Core (6)
Windows\Win32\System\Variant\VARIANT.cs (6)
137
case
VT_ERROR
:
306
case
VT_ERROR
: // Not explicitly mentioned in the docs but trivial to implement.
543
case
VT_ERROR
: // Not explicitly mentioned in the docs but trivial to implement.
660
VT_UI4 or VT_UINT or
VT_ERROR
=> typeof(uint),
713
case
VT_ERROR
:
774
case
VT_ERROR
:
System.Windows.Forms (1)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
893
VT_ERROR
or VT_HRESULT => typeof(int),
System.Windows.Forms.Primitives.Tests (22)
Interop\Oleaut32\VARIANTTests.cs (22)
299
yield return new object[] {
VT_ERROR
, unchecked((nint)long.MinValue), 0 };
302
yield return new object[] {
VT_ERROR
, (nint)int.MinValue, int.MinValue };
303
yield return new object[] {
VT_ERROR
, (nint)short.MinValue, (int)short.MinValue };
304
yield return new object[] {
VT_ERROR
, (nint)sbyte.MinValue, (int)sbyte.MinValue };
305
yield return new object[] {
VT_ERROR
, (nint)(-10), -10 };
306
yield return new object[] {
VT_ERROR
, (nint)0, 0 };
307
yield return new object[] {
VT_ERROR
, (nint)10, 10 };
308
yield return new object[] {
VT_ERROR
, (nint)sbyte.MaxValue, (int)sbyte.MaxValue };
309
yield return new object[] {
VT_ERROR
, (nint)short.MaxValue, (int)short.MaxValue };
310
yield return new object[] {
VT_ERROR
, (nint)int.MaxValue, int.MaxValue };
313
yield return new object[] {
VT_ERROR
, unchecked((nint)long.MaxValue), -1 };
343
yield return new object[] {
VT_ERROR
};
1619
variant.Anonymous.Anonymous.vt = VT_VECTOR |
VT_ERROR
;
1631
using VARIANT variant = Create(VT_VECTOR |
VT_ERROR
);
3747
SAFEARRAY* psa = CreateSafeArray(
VT_ERROR
, result);
3750
vt = VT_ARRAY |
VT_ERROR
,
3772
SAFEARRAY* psa = CreateSafeArray(
VT_ERROR
, result, 1);
3775
vt = VT_ARRAY |
VT_ERROR
,
3809
SAFEARRAY* psa = CreateSafeArray(
VT_ERROR
, result);
3812
vt = VT_ARRAY |
VT_ERROR
,
3836
SAFEARRAY* psa = CreateSafeArray(
VT_ERROR
, result, 1, 2);
3839
vt = VT_ARRAY |
VT_ERROR
,