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)); }
public static DeviceServicingDetails FromAbi(IntPtr thisPtr) { if (thisPtr == IntPtr.Zero) { return(null); } return(MarshalInspectable <DeviceServicingDetails> .FromAbi(thisPtr)); }
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)); }
public static CompositionDebugHeatMaps FromAbi(IntPtr thisPtr) { if (thisPtr == IntPtr.Zero) { return(null); } return(MarshalInspectable <CompositionDebugHeatMaps> .FromAbi(thisPtr)); }
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)); }
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)); }
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)); }
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)); }
public static NamedPolicyData FromAbi(IntPtr thisPtr) { if (thisPtr == IntPtr.Zero) { return(null); } return(MarshalInspectable <NamedPolicyData> .FromAbi(thisPtr)); }
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)); }
public static ContactPickerUI FromAbi(IntPtr thisPtr) { if (thisPtr == IntPtr.Zero) { return(null); } return(MarshalInspectable <ContactPickerUI> .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)); }
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); } }
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); } }
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); }
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); } }
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); } }