Пример #1
0
 public void FromNativeVariantTest()
 {
     using (var pVar = new SafeHGlobalHandle(100))
     {
         Marshal.GetNativeVariantForObject(0xFFFFFFFF, (IntPtr)pVar);
         var pv = PROPVARIANT.FromNativeVariant((IntPtr)pVar);
         Assert.That(pv.vt, Is.EqualTo(VARTYPE.VT_UI4));
         VariantClear((IntPtr)pVar);
     }
 }