public static DisplayRequest FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <DisplayRequest> .FromAbi(thisPtr));
 }
Exemplo n.º 2
0
 public static CharacterGrouping FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <CharacterGrouping> .FromAbi(thisPtr));
 }
Exemplo n.º 3
0
 public static DeviceServicingDetails FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <DeviceServicingDetails> .FromAbi(thisPtr));
 }
 public static PlatformTelemetryRegistrationSettings FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <PlatformTelemetryRegistrationSettings> .FromAbi(thisPtr));
 }
Exemplo n.º 5
0
 public static EasClientDeviceInformation FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <EasClientDeviceInformation> .FromAbi(thisPtr));
 }
Exemplo n.º 6
0
 public static SceneLightingEffect FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero)
     {
         return(null);
     }
     return(MarshalInspectable <SceneLightingEffect> .FromAbi(thisPtr));
 }
Exemplo n.º 7
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));
            }
Exemplo n.º 8
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));
        }
Exemplo n.º 9
0
 private static unsafe int Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)
 {
     try
     {
         global::WinRT.ComWrappersSupport.MarshalDelegateInvoke(thisPtr, (global::System.ComponentModel.PropertyChangedEventHandler invoke) =>
         {
             invoke(MarshalInspectable.FromAbi(sender), global::ABI.System.ComponentModel.PropertyChangedEventArgs.FromAbi(e));
         });
     }
     catch (global::System.Exception __exception__)
     {
         global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
         return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
     }
     return(0);
 }
Exemplo n.º 10
0
 private static unsafe int Do_Abi_Invoke <TAbi>(void *thisPtr, IntPtr sender, TAbi args)
 {
     try
     {
         global::WinRT.ComWrappersSupport.MarshalDelegateInvoke(new IntPtr(thisPtr), (global::System.Delegate invoke) =>
         {
             invoke.DynamicInvoke(MarshalInspectable.FromAbi(sender), Marshaler <T> .FromAbi(args));
         });
     }
     catch (global::System.Exception __exception__)
     {
         global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
         return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
     }
     return(0);
 }
Exemplo n.º 11
0
 private static unsafe int Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr args)
 {
     try
     {
         global::WinRT.ComWrappersSupport.MarshalDelegateInvoke(thisPtr, (global::System.Delegate invoke) =>
         {
             invoke.DynamicInvoke(
                 MarshalInspectable.FromAbi(sender),
                 MarshalInspectable.FromAbi(args) as EventArgs ?? EventArgs.Empty);
         });
     }
     catch (global::System.Exception __exception__)
     {
         global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
         return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
     }
     return(0);
 }
Exemplo n.º 12
0
 private static unsafe int Do_Abi_SetValue_3(IntPtr thisPtr, IntPtr target, IntPtr value)
 {
     try
     {
         global::WinRT.ComWrappersSupport.FindObject <global::Microsoft.UI.Xaml.Data.ICustomProperty>(thisPtr).SetValue(MarshalInspectable <object> .FromAbi(target), MarshalInspectable <object> .FromAbi(value));
     }
     catch (Exception __exception__)
     {
         global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
         return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
     }
     return(0);
 }
Exemplo n.º 13
0
            private static unsafe int Do_Abi_GetValue_2(IntPtr thisPtr, IntPtr target, IntPtr *result)
            {
                object __result = default;

                *result = default;

                try
                {
                    __result = global::WinRT.ComWrappersSupport.FindObject <global::Microsoft.UI.Xaml.Data.ICustomProperty>(thisPtr).GetValue(MarshalInspectable <object> .FromAbi(target));
                    *result = MarshalInspectable <object> .FromManaged(__result);
                }
                catch (Exception __exception__)
                {
                    global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
                    return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
                }
                return(0);
            }
Exemplo n.º 14
0
 private static unsafe int Do_Abi_Execute_3(IntPtr thisPtr, IntPtr parameter)
 {
     try
     {
         global::WinRT.ComWrappersSupport.FindObject <global::System.Windows.Input.ICommand>(thisPtr).Execute(MarshalInspectable.FromAbi(parameter));
     }
     catch (global::System.Exception __exception__)
     {
         global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
         return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
     }
     return(0);
 }
Exemplo n.º 15
0
            private static unsafe int Do_Abi_CanExecute_2(IntPtr thisPtr, IntPtr parameter, out byte result)
            {
                bool __result = default;

                result = default;

                try
                {
                    __result = global::WinRT.ComWrappersSupport.FindObject <global::System.Windows.Input.ICommand>(thisPtr).CanExecute(MarshalInspectable.FromAbi(parameter)); result = (byte)(__result ? 1 : 0);
                }
                catch (global::System.Exception __exception__)
                {
                    global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
                    return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
                }
                return(0);
            }
 public static ExtendedExecutionForegroundRevokedEventArgs FromAbi(IntPtr thisPtr)
 {
     if (thisPtr == IntPtr.Zero) return null;
     return MarshalInspectable<ExtendedExecutionForegroundRevokedEventArgs>.FromAbi(thisPtr);
 }