Ejemplo n.º 1
0
        static Propvariant Marshall(this MMDeviceAPI.tag_inner_PROPVARIANT propvariant)
        {
            // Note: it seems unlikely this will work with complicated/exotic PROPVARIANT types.
            var marshalledPropvariant = new Propvariant();

            marshalledPropvariant.vt = propvariant.vt;
            // TODO: it's not clear if this autogenerated field name is stable.
            marshalledPropvariant.p = propvariant.__MIDL____MIDL_itf_mmdeviceapi_0003_00930001.pcVal;
            return(marshalledPropvariant);
        }
Ejemplo n.º 2
0
 static extern void PropVariantClear(ref Propvariant pvar);
Ejemplo n.º 3
0
 static extern void PropVariantToVariant(ref Propvariant pPropVar, [System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Struct)] out object pVar);