Interop with PROPVARIANTs in .NET

Introduction When it comes interop, .NET has solved most of the hard problems. However, if you’ve worked with COM interfaces that return or take PROPVARIANTs as parameters, you may have noticed that there isn’t much support for this union’d struct type. I came across one such interface, and needed a good way to interop with…

1

Interop with PROPVARIANTs in .NET

When it comes interop, .NET has solved most of the hard problems. However, if you’ve worked with COM interfaces that return or take PROPVARIANTs as parameters, you may have noticed that there isn’t much support for this union’d struct type. I came across one such interface, and needed a good way to interop with its…

0

PropVariant.cs

Back to Interop with PROPVARIANTs in .NET namespace System.Runtime.InteropServices.ComTypes{    using System;    using System.Runtime.InteropServices;    /// <summary>    /// Represents the OLE struct PROPVARIANT.    /// </summary>    /// <remarks>    /// Must call Clear when finished to avoid memory leaks. If you get the value of    /// a VT_UNKNOWN prop, an implicit AddRef is called, thus your reference will    ///…

0