public void Clear()
        {
            // Can't pass "this" by ref, so make a copy to call PropVariantClear with
            PROPVARIANT var = this;

            PropVariantClear(ref var);

            // Since we couldn't pass "this" by ref, we need to clear the member fields manually
            // NOTE: PropVariantClear already freed heap data for us, so we are just setting
            //       our references to null.
            vt  = VarEnum.VT_EMPTY;
            ptr = IntPtr.Zero;
        }
示例#2
0
 public virtual extern void GetValue([In] ref PropertyKey key, out PROPVARIANT pValue);
 private static extern Int32 PropVariantClear(ref PROPVARIANT pvar);
示例#4
0
 public virtual extern void GetAt([In] uint index, [In, Out] ref PropertyKey pKey, out PROPVARIANT pValue);