Beispiel #1
0
        public static HolographicSpace CreateForWindow(IntPtr hWnd)
        {
            Guid iid = typeof(HolographicSpace).GUID;
            IHolographicSpaceInterop factory = InteropHelper.GetActivationFactory <IHolographicSpaceInterop>(typeof(HolographicSpace));

            factory.CreateForWindow(hWnd, ref iid, out var result);
            return(InteropHelper.CastWinRTObject <HolographicSpace>(result));
        }
Beispiel #2
0
        public static DataTransferManager GetForWindow(IntPtr hWnd)
        {
            Guid iid = InteropHelper.GetIID <DataTransferManager>();
            IDataTransferManagerInterop factory = InteropHelper.GetActivationFactory <IDataTransferManagerInterop>(typeof(DataTransferManager));

            factory.GetForWindow(hWnd, ref iid, out var result);
            return(InteropHelper.CastWinRTObject <DataTransferManager>(result));
        }
Beispiel #3
0
        public static IAsyncOperation <AppServiceConnectionStatus> OpenForExtendedExecutionAsync()
        {
            Guid iid = InteropHelper.GetIID <IAsyncOperation <AppServiceConnectionStatus> >();
            IAppServiceConnectionExtendedExecution appServiceConnectionStatus = InteropHelper.GetActivationFactory <IAppServiceConnectionExtendedExecution>(typeof(AppServiceConnection));

            appServiceConnectionStatus.OpenForExtendedExecutionAsync(ref iid, out var result);
            return(InteropHelper.CastWinRTObject <IAsyncOperation <AppServiceConnectionStatus> >(result));
        }