public static DisplayRequest FromAbi(IntPtr thisPtr) { if (thisPtr == IntPtr.Zero) { return(null); } return(MarshalInspectable <DisplayRequest> .FromAbi(thisPtr)); }
public static CharacterGrouping FromAbi(IntPtr thisPtr) { if (thisPtr == IntPtr.Zero) { return(null); } return(MarshalInspectable <CharacterGrouping> .FromAbi(thisPtr)); }
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)); }
public static EasClientDeviceInformation FromAbi(IntPtr thisPtr) { if (thisPtr == IntPtr.Zero) { return(null); } return(MarshalInspectable <EasClientDeviceInformation> .FromAbi(thisPtr)); }
public static SceneLightingEffect FromAbi(IntPtr thisPtr) { if (thisPtr == IntPtr.Zero) { return(null); } return(MarshalInspectable <SceneLightingEffect> .FromAbi(thisPtr)); }
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)); }
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)); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }