131 references to tagVT
System.Windows.Forms (131)
winforms\Managed\System\WinForms\AxHost.cs (2)
7449
var.vt = (short)NativeMethods.
tagVT
.VT_EMPTY;
7451
if (hr == NativeMethods.S_OK && var.vt != (short)NativeMethods.
tagVT
.VT_EMPTY) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (2)
289
var.vt = (short)NativeMethods.
tagVT
.VT_EMPTY;
291
if (hr == NativeMethods.S_OK && var.vt != (short)NativeMethods.
tagVT
.VT_EMPTY) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (57)
328
switch ((NativeMethods.
tagVT
)typeDesc.vt) {
330
return VTToType((NativeMethods.
tagVT
)typeDesc.vt);
332
case NativeMethods.
tagVT
.VT_UNKNOWN:
333
case NativeMethods.
tagVT
.VT_DISPATCH:
338
return VTToType((NativeMethods.
tagVT
)typeDesc.vt);
340
case NativeMethods.
tagVT
.VT_USERDEFINED:
346
case NativeMethods.
tagVT
.VT_PTR:
364
if (refTypeDesc.vt == (int)NativeMethods.
tagVT
.VT_VARIANT) {
365
return VTToType((NativeMethods.
tagVT
)refTypeDesc.vt);
416
return VTToType(NativeMethods.
tagVT
.VT_DISPATCH);
419
return VTToType(NativeMethods.
tagVT
.VT_UNKNOWN);
939
private static Type VTToType(NativeMethods.
tagVT
vt) {
941
case NativeMethods.
tagVT
.VT_EMPTY:
942
case NativeMethods.
tagVT
.VT_NULL:
944
case NativeMethods.
tagVT
.VT_I1:
946
case NativeMethods.
tagVT
.VT_UI1:
949
case NativeMethods.
tagVT
.VT_I2:
951
case NativeMethods.
tagVT
.VT_UI2:
955
case NativeMethods.
tagVT
.VT_I4:
956
case NativeMethods.
tagVT
.VT_INT:
959
case NativeMethods.
tagVT
.VT_UI4:
960
case NativeMethods.
tagVT
.VT_UINT:
963
case NativeMethods.
tagVT
.VT_I8:
965
case NativeMethods.
tagVT
.VT_UI8:
968
case NativeMethods.
tagVT
.VT_R4:
971
case NativeMethods.
tagVT
.VT_R8:
974
case NativeMethods.
tagVT
.VT_CY:
976
case NativeMethods.
tagVT
.VT_DATE:
978
case NativeMethods.
tagVT
.VT_BSTR:
979
case NativeMethods.
tagVT
.VT_LPSTR:
980
case NativeMethods.
tagVT
.VT_LPWSTR:
983
case NativeMethods.
tagVT
.VT_DISPATCH:
985
case NativeMethods.
tagVT
.VT_UNKNOWN:
988
case NativeMethods.
tagVT
.VT_ERROR:
989
case NativeMethods.
tagVT
.VT_HRESULT:
992
case NativeMethods.
tagVT
.VT_BOOL:
995
case NativeMethods.
tagVT
.VT_VARIANT:
997
case NativeMethods.
tagVT
.VT_CLSID:
1000
case NativeMethods.
tagVT
.VT_FILETIME:
1003
case NativeMethods.
tagVT
.VT_USERDEFINED:
1011
case NativeMethods.
tagVT
.VT_VOID:
1012
case NativeMethods.
tagVT
.VT_PTR:
1013
case NativeMethods.
tagVT
.VT_SAFEARRAY:
1014
case NativeMethods.
tagVT
.VT_CARRAY:
1016
case NativeMethods.
tagVT
.VT_RECORD:
1017
case NativeMethods.
tagVT
.VT_BLOB:
1018
case NativeMethods.
tagVT
.VT_STREAM:
1019
case NativeMethods.
tagVT
.VT_STORAGE:
1020
case NativeMethods.
tagVT
.VT_STREAMED_OBJECT:
1021
case NativeMethods.
tagVT
.VT_STORED_OBJECT:
1022
case NativeMethods.
tagVT
.VT_BLOB_OBJECT:
1023
case NativeMethods.
tagVT
.VT_CF:
1024
case NativeMethods.
tagVT
.VT_BSTR_BLOB:
1025
case NativeMethods.
tagVT
.VT_VECTOR:
1026
case NativeMethods.
tagVT
.VT_ARRAY:
1027
case NativeMethods.
tagVT
.VT_BYREF:
1028
case NativeMethods.
tagVT
.VT_RESERVED:
winforms\Managed\System\WinForms\NativeMethods.cs (70)
4271
return 0 != (vt & (int)
tagVT
.VT_BYREF);
4276
if ((this.vt == (int)
tagVT
.VT_UNKNOWN || this.vt == (int)
tagVT
.VT_DISPATCH) && this.data1 != IntPtr.Zero) {
4280
if (this.vt == (int)
tagVT
.VT_BSTR && this.data1 != IntPtr.Zero) {
4285
this.vt = (int)
tagVT
.VT_EMPTY;
4296
v.vt = (int)
tagVT
.VT_EMPTY;
4304
v.vt = (int)
tagVT
.VT_BOOL;
4307
v.vt = (int)
tagVT
.VT_UI1;
4311
v.vt = (int)
tagVT
.VT_UI2;
4315
v.vt = (int)
tagVT
.VT_BSTR;
4319
v.vt = (int)
tagVT
.VT_I2;
4323
v.vt = (int)
tagVT
.VT_I4;
4327
v.vt = (int)
tagVT
.VT_I8;
4331
v.vt = (int)
tagVT
.VT_CY;
4337
v.vt = (int)
tagVT
.VT_DECIMAL;
4342
v.vt = (int)
tagVT
.VT_R8;
4346
v.vt = (int)
tagVT
.VT_R4;
4350
v.vt = (int)
tagVT
.VT_DATE;
4354
v.vt = (int)
tagVT
.VT_I1;
4358
v.vt = (int)
tagVT
.VT_UI2;
4362
v.vt = (int)
tagVT
.VT_UI4;
4366
v.vt = (int)
tagVT
.VT_UI8;
4370
v.vt = (t == typeof(UnsafeNativeMethods.IDispatch) ? (short)
tagVT
.VT_DISPATCH : (short)
tagVT
.VT_UNKNOWN);
4408
int vtType = (int)(this.vt & (short)
tagVT
.VT_TYPEMASK);
4411
case (int)
tagVT
.VT_EMPTY:
4413
case (int)
tagVT
.VT_NULL:
4416
case (int)
tagVT
.VT_I1:
4422
case (int)
tagVT
.VT_UI1:
4429
case (int)
tagVT
.VT_I2:
4435
case (int)
tagVT
.VT_UI2:
4441
case (int)
tagVT
.VT_I4:
4442
case (int)
tagVT
.VT_INT:
4448
case (int)
tagVT
.VT_UI4:
4449
case (int)
tagVT
.VT_UINT:
4455
case (int)
tagVT
.VT_I8:
4456
case (int)
tagVT
.VT_UI8:
4464
if (vt == (int)
tagVT
.VT_I8) {
4477
case (int)
tagVT
.VT_R4:
4478
case (int)
tagVT
.VT_R8:
4483
case (int)
tagVT
.VT_CY:
4487
case (int)
tagVT
.VT_DATE:
4490
case (int)
tagVT
.VT_BSTR:
4491
case (int)
tagVT
.VT_LPWSTR:
4494
case (int)
tagVT
.VT_LPSTR:
4497
case (int)
tagVT
.VT_DISPATCH:
4498
case (int)
tagVT
.VT_UNKNOWN:
4503
case (int)
tagVT
.VT_HRESULT:
4506
case (int)
tagVT
.VT_DECIMAL:
4510
case (int)
tagVT
.VT_BOOL:
4513
case (int)
tagVT
.VT_VARIANT:
4516
case (int)
tagVT
.VT_CLSID:
4521
case (int)
tagVT
.VT_FILETIME:
4525
case (int)
tagVT
.VT_USERDEFINED:
4528
case (int)
tagVT
.VT_ARRAY:
4532
case (int)
tagVT
.VT_VOID:
4533
case (int)
tagVT
.VT_PTR:
4534
case (int)
tagVT
.VT_SAFEARRAY:
4535
case (int)
tagVT
.VT_CARRAY:
4537
case (int)
tagVT
.VT_RECORD:
4538
case (int)
tagVT
.VT_BLOB:
4539
case (int)
tagVT
.VT_STREAM:
4540
case (int)
tagVT
.VT_STORAGE:
4541
case (int)
tagVT
.VT_STREAMED_OBJECT:
4542
case (int)
tagVT
.VT_STORED_OBJECT:
4543
case (int)
tagVT
.VT_BLOB_OBJECT:
4544
case (int)
tagVT
.VT_CF:
4545
case (int)
tagVT
.VT_BSTR_BLOB:
4546
case (int)
tagVT
.VT_VECTOR:
4547
case (int)
tagVT
.VT_BYREF: