Exemple #1
0
        public unsafe IObjectReference CreateInstanceWithAllParameters(global::System.Collections.Specialized.NotifyCollectionChangedAction action, global::System.Collections.IList newItems, global::System.Collections.IList oldItems, int newIndex, int oldIndex, object baseInterface, out IObjectReference innerInterface)
        {
            IObjectReference __newItems       = default;
            IObjectReference __oldItems       = default;
            IObjectReference __baseInterface  = default;
            IntPtr           __innerInterface = default;
            IntPtr           __retval         = default;

            try
            {
                __newItems = MarshalInterface <global::System.Collections.IList> .CreateMarshaler(newItems);

                __oldItems = MarshalInterface <global::System.Collections.IList> .CreateMarshaler(oldItems);

                __baseInterface = MarshalInspectable <object> .CreateMarshaler(baseInterface);

                global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateInstanceWithAllParameters_0(ThisPtr, action, MarshalInterface <global::System.Collections.IList> .GetAbi(__newItems), MarshalInterface <global::System.Collections.IList> .GetAbi(__oldItems), newIndex, oldIndex, MarshalInspectable <object> .GetAbi(__baseInterface), out __innerInterface, out __retval));
                innerInterface = ObjectReference <IUnknownVftbl> .FromAbi(__innerInterface);

                return(ObjectReference <IUnknownVftbl> .FromAbi(__retval));
            }
            finally
            {
                MarshalInterface <global::System.Collections.IList> .DisposeMarshaler(__newItems);

                MarshalInterface <global::System.Collections.IList> .DisposeMarshaler(__oldItems);

                MarshalInspectable <object> .DisposeMarshaler(__baseInterface);

                MarshalInspectable <object> .DisposeAbi(__innerInterface);

                MarshalInspectable <object> .DisposeAbi(__retval);
            }
        }
        public unsafe IObjectReference CreateInstance(string name, object baseInterface, out IObjectReference innerInterface)
        {
            MarshalString    __name           = default;
            IObjectReference __baseInterface  = default;
            IntPtr           __innerInterface = default;
            IntPtr           __retval         = default;

            try
            {
                __name          = MarshalString.CreateMarshaler(name);
                __baseInterface = MarshalInspectable <object> .CreateMarshaler(baseInterface);

                global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateInstance_0(ThisPtr, MarshalString.GetAbi(__name), MarshalInspectable <object> .GetAbi(__baseInterface), &__innerInterface, &__retval));
                innerInterface = ObjectReference <IUnknownVftbl> .FromAbi(__innerInterface);

                return(ObjectReference <IUnknownVftbl> .Attach(ref __retval));
            }
            finally
            {
                MarshalString.DisposeMarshaler(__name);
                MarshalInspectable <object> .DisposeMarshaler(__baseInterface);

                MarshalInspectable <object> .DisposeAbi(__innerInterface);

                MarshalInspectable <object> .DisposeAbi(__retval);
            }
        }
 public static DisplayRequest FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <DisplayRequest> .FromAbi(thisPtr));
 }
Exemple #4
0
 public static DeviceServicingDetails FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <DeviceServicingDetails> .FromAbi(thisPtr));
 }
Exemple #5
0
 public static CharacterGrouping FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <CharacterGrouping> .FromAbi(thisPtr));
 }
 public static PlatformTelemetryRegistrationSettings FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <PlatformTelemetryRegistrationSettings> .FromAbi(thisPtr));
 }
Exemple #7
0
 public static CompositionDebugHeatMaps FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <CompositionDebugHeatMaps> .FromAbi(thisPtr));
 }
Exemple #8
0
 public static SceneLightingEffect FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <SceneLightingEffect> .FromAbi(thisPtr));
 }
 public static PreviewBuildsState FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <PreviewBuildsState> .FromAbi(thisPtr));
 }
 public static new DesktopWindowTarget FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <DesktopWindowTarget> .FromAbi(thisPtr));
 }
 public static CompositorController FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <CompositorController> .FromAbi(thisPtr));
 }
 public static WalletItemSystemStore FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <WalletItemSystemStore> .FromAbi(thisPtr));
 }
Exemple #13
0
 public static EnterpriseKeyCredentialRegistrationInfo FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <EnterpriseKeyCredentialRegistrationInfo> .FromAbi(thisPtr));
 }
 public static VariablePhotoCapturedEventArgs FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <VariablePhotoCapturedEventArgs> .FromAbi(thisPtr));
 }
Exemple #15
0
 public static EasClientDeviceInformation FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <EasClientDeviceInformation> .FromAbi(thisPtr));
 }
 public static BatteryReport FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <BatteryReport> .FromAbi(thisPtr));
 }
Exemple #17
0
 public static SystemNavigationCloseRequestedPreviewEventArgs FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <SystemNavigationCloseRequestedPreviewEventArgs> .FromAbi(thisPtr));
 }
 public static PerceptionTimestamp FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <PerceptionTimestamp> .FromAbi(thisPtr));
 }
Exemple #19
0
 public static NamedPolicyData FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <NamedPolicyData> .FromAbi(thisPtr));
 }
Exemple #20
0
 public static AppCapabilityAccessChangedEventArgs FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <AppCapabilityAccessChangedEventArgs> .FromAbi(thisPtr));
 }
 public static SpatialGraphInteropFrameOfReferencePreview FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <SpatialGraphInteropFrameOfReferencePreview> .FromAbi(thisPtr));
 }
 public static ScreenReaderPositionChangedEventArgs FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <ScreenReaderPositionChangedEventArgs> .FromAbi(thisPtr));
 }
Exemple #23
0
 public static ContactPickerUI FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <ContactPickerUI> .FromAbi(thisPtr));
 }
Exemple #24
0
            public static Language FromAbi(IntPtr thisPtr)
            {
                if (thisPtr == IntPtr.Zero)
                {
                    return(null);
                }
                var obj = MarshalInspectable.FromAbi(thisPtr);

                return(obj is Language ? (Language)obj : new Language((global::MS.Internal.WindowsRuntime.ABI.Windows.Globalization.ILanguage)obj));
            }
Exemple #25
0
        public static SimpleMath FromAbi(IntPtr thisPtr)
        {
            if (thisPtr == IntPtr.Zero)
            {
                return(null);
            }
            var obj = MarshalInspectable.FromAbi(thisPtr);

            return(obj is SimpleMath ? (SimpleMath)obj : new SimpleMath((global::ABI.SimpleMathComponent.ISimpleMath)obj));
        }
 public unsafe ObjectReference <I> _ActivateInstance <I>()
 {
     Marshal.ThrowExceptionForHR(_IActivationFactory.Vftbl.ActivateInstance(_IActivationFactory.ThisPtr, out IntPtr instancePtr));
     try
     {
         return(ComWrappersSupport.GetObjectReferenceForInterface(instancePtr).As <I>());
     }
     finally
     {
         MarshalInspectable.DisposeAbi(instancePtr);
     }
 }
Exemple #27
0
 public IObjectReference Resolve(Guid riid)
 {
     ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.Resolve(ThisPtr, ref riid, out IntPtr ptr));
     try
     {
         return(ComWrappersSupport.GetObjectReferenceForInterface(ptr));
     }
     finally
     {
         MarshalInspectable.DisposeAbi(ptr);
     }
 }
Exemple #28
0
 public Language(string languageTag) : this(((Func <global::MS.Internal.WindowsRuntime.ABI.Windows.Globalization.ILanguage>)(() => {
     IntPtr ptr = (_ILanguageFactory.Instance.CreateLanguage(languageTag));
     try
     {
         return(new global::MS.Internal.WindowsRuntime.ABI.Windows.Globalization.ILanguage(ComWrappersSupport.GetObjectReferenceForInterface(ptr)));
     }
     finally
     {
         MarshalInspectable.DisposeAbi(ptr);
     }
 }))())
 {
     ComWrappersSupport.RegisterObjectForInterface(this, ThisPtr);
 }
Exemple #29
0
        public global::WinRT.Interop.IWeakReference GetWeakReference()
        {
            IntPtr objRef = IntPtr.Zero;

            try
            {
                ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetWeakReference(ThisPtr, out objRef));
                return(MarshalInterface <WinRT.Interop.IWeakReference> .FromAbi(objRef));
            }
            finally
            {
                MarshalInspectable.DisposeAbi(objRef);
            }
        }
Exemple #30
0
        public unsafe void Execute(object parameter)
        {
            IObjectReference __parameter = default;

            try
            {
                __parameter = MarshalInspectable.CreateMarshaler(parameter);
                global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.Execute_3(ThisPtr, MarshalInspectable.GetAbi(__parameter)));
            }
            finally
            {
                MarshalInspectable.DisposeMarshaler(__parameter);
            }
        }