コード例 #1
0
        public static UserActivitySession CreateSessionForWindow(IntPtr hWnd)
        {
            IUserActivityInterop userActivityInterop = (IUserActivityInterop)InteropHelper.GetActivationFactory <IUserActivitySourceHostInterop>(typeof(UserActivitySession));
            Guid guid = typeof(UserActivitySession).GUID;

            return(userActivityInterop.CreateSessionForWindow(hWnd, ref guid));
        }
コード例 #2
0
        public static CoreDragDropManager GetForWindow(IntPtr hWnd)
        {
            IDragDropManagerInterop dragDropManagerInterop = InteropHelper.GetActivationFactory <IDragDropManagerInterop>(typeof(CoreDragDropManager));
            Guid guid = typeof(CoreDragDropManager).GUID;

            return(dragDropManagerInterop.GetForWindow(hWnd, ref guid));
        }
        public static AccountsSettingsPane GetForWindow(IntPtr hWnd)
        {
            Guid iid = InteropHelper.GetIID <AccountsSettingsPane>();
            IAccountsSettingsPaneInterop factory = InteropHelper.GetActivationFactory <IAccountsSettingsPaneInterop>(typeof(AccountsSettingsPane));

            return(factory.GetForWindow(hWnd, ref iid));
        }
コード例 #4
0
        public static Print3DManager GetForWindow(IntPtr hWnd)
        {
            Guid iid = typeof(Print3DManager).GUID;
            IPrinting3DManagerInterop factory = InteropHelper.GetActivationFactory <IPrinting3DManagerInterop>(typeof(Print3DManager));

            return(factory.GetForWindow(hWnd, ref iid));
        }
コード例 #5
0
        public static InputPane GetForWindow(IntPtr hWnd)
        {
            IInputPaneInterop inputPaneInterop = (IInputPaneInterop)InteropHelper.GetActivationFactory <IInputPaneInterop>(typeof(InputPane));
            Guid guid = typeof(InputPane).GUID;

            return(inputPaneInterop.GetForWindow(hWnd, ref guid));
        }
        public static SpatialInteractionManager GetForWindow(IntPtr hWnd)
        {
            Guid iid = typeof(SpatialInteractionManager).GUID;
            ISpatialInteractionManagerInterop factory = InteropHelper.GetActivationFactory <ISpatialInteractionManagerInterop>(typeof(SpatialInteractionManager));

            return(factory.GetForWindow(hWnd, ref iid));
        }
コード例 #7
0
        public static IAsyncOperation <bool> ShowPrintUIForWindowAsync(IntPtr hWnd)
        {
            Guid iid = typeof(IAsyncOperation <bool>).GUID;
            IPrinting3DManagerInterop factory = InteropHelper.GetActivationFactory <IPrinting3DManagerInterop>(typeof(Print3DManager));

            return(factory.ShowPrintUIForWindowAsync(hWnd, ref iid));
        }
コード例 #8
0
        public static IAsyncOperation <UserConsentVerificationResult> RequestVerificationForWindowAsync(IntPtr hWnd, string Message)
        {
            Guid iid = typeof(IAsyncOperation <UserConsentVerificationResult>).GUID;
            IUserConsentVerifierInterop factory = InteropHelper.GetActivationFactory <IUserConsentVerifierInterop>(typeof(UserConsentVerifier));

            return(factory.RequestVerificationForWindowAsync(hWnd, Message, ref iid));
        }
        public static IAsyncOperation <WebTokenRequestResult> RequestTokenWithWebAccountForWindowAsync(IntPtr hWnd, WebTokenRequest request, WebAccount webAccount)
        {
            Guid iid = InteropHelper.GetIID <IAsyncOperation <WebTokenRequestResult> >();
            IWebAuthenticationCoreManagerInterop factory = InteropHelper.GetActivationFactory <IWebAuthenticationCoreManagerInterop>(typeof(WebAuthenticationCoreManager));

            return(factory.RequestTokenWithWebAccountForWindowAsync(hWnd, request, webAccount, ref iid));
        }
コード例 #10
0
        public static UIViewSettings GetForWindow(IntPtr hWnd)
        {
            IUIViewSettingsInterop uIViewSettingsInterop = (IUIViewSettingsInterop)InteropHelper.GetActivationFactory <IUIViewSettingsInterop>(typeof(UIViewSettings));
            Guid guid = typeof(UIViewSettings).GUID;

            return(uIViewSettingsInterop.GetForWindow(hWnd, ref guid));
        }
        public static IAsyncAction ShowAddAccountForWindowAsync(IntPtr hWnd)
        {
            Guid iid = typeof(IAsyncAction).GUID;
            IAccountsSettingsPaneInterop factory = InteropHelper.GetActivationFactory <IAccountsSettingsPaneInterop>(typeof(AccountsSettingsPane));

            return(factory.ShowAddAccountForWindowAsync(hWnd, ref iid));
        }
        public static SystemMediaTransportControls GetForWindow(IntPtr hWnd)
        {
            Guid iid = InteropHelper.GetIID <SystemMediaTransportControls>();
            ISystemMediaTransportControlsInterop factory = InteropHelper.GetActivationFactory <ISystemMediaTransportControlsInterop>(typeof(SystemMediaTransportControls));

            return(factory.GetForWindow(hWnd, ref iid));
        }
コード例 #13
0
        public static PlayToManager GetForWindow(IntPtr hWnd)
        {
            IPlayToManagerInterop playToManagerInterop = (IPlayToManagerInterop)InteropHelper.GetActivationFactory <IPlayToManagerInterop>(typeof(PlayToManager));
            Guid guid = typeof(PlayToManager).GUID;

            return(playToManagerInterop.GetForWindow(hWnd, ref guid));
        }
コード例 #14
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));
        }
コード例 #15
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));
        }
コード例 #16
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));
        }
コード例 #17
0
        public static void SetActivitySourceHost(string activitySourceHost)
        {
            IUserActivitySourceHostInterop userActivitySourceHostInterop = (IUserActivitySourceHostInterop)InteropHelper.GetActivationFactory <IUserActivitySourceHostInterop>(typeof(UserActivityChannel));

            userActivitySourceHostInterop.SetActivitySourceHost(activitySourceHost);
        }
        public static AllJoynBusAttachment CreateFromWin32Handle(IntPtr hWnd, bool enableAboutData)
        {
            IWindowsDevicesAllJoynBusAttachmentFactoryInterop allJoynBusAttachmentInterop = (IWindowsDevicesAllJoynBusAttachmentFactoryInterop)InteropHelper.GetActivationFactory <IWindowsDevicesAllJoynBusAttachmentInterop>(typeof(AllJoynBusAttachment));

            //Guid guid = typeof(AllJoynBusAttachmentFactory).GetInterface("IAllJoynBusAttachmentFactory").GUID;
            Guid guid = typeof(AllJoynBusAttachment).GUID;

            return(allJoynBusAttachmentInterop.CreateFromWin32Handle(hWnd, enableAboutData, ref guid));
        }
        public static AllJoynBusObject CreateFromWin32Handle(IntPtr hWnd)
        {
            IWindowsDevicesAllJoynBusObjectFactoryInterop allJoynBusObjectInterop = (IWindowsDevicesAllJoynBusObjectFactoryInterop)InteropHelper.GetActivationFactory <IWindowsDevicesAllJoynBusObjectFactoryInterop>(typeof(AllJoynBusObject));

            //Guid guid = typeof(AllJoynBusObject).GetInterface("IAllJoynBusObject").GUID;
            Guid guid = typeof(AllJoynBusObject).GUID;

            return(allJoynBusObjectInterop.CreateFromWin32Handle(hWnd, ref guid));
        }
        public static IntPtr GetWin32Handle()
        {
            IWindowsDevicesAllJoynBusAttachmentInterop allJoynBusAttachmentInterop = (IWindowsDevicesAllJoynBusAttachmentInterop)InteropHelper.GetActivationFactory <IWindowsDevicesAllJoynBusAttachmentInterop>(typeof(AllJoynBusAttachment));

            //Guid guid = typeof(AllJoynBusAttachment).GetInterface("IAllJoynBusAttachment").GUID;
            //Guid guid = typeof(AllJoynBusAttachment).GUID;

            return(allJoynBusAttachmentInterop.GetWin32Handle());
        }
コード例 #21
0
        public static void ShowShareUIForWindow(IntPtr hWnd)
        {
            IDataTransferManagerInterop dataTransferManagerInterop = InteropHelper.GetActivationFactory <IDataTransferManagerInterop>(typeof(DataTransferManager));

            dataTransferManagerInterop.ShowShareUIForWindow(hWnd);
        }
コード例 #22
0
        public static void ShowPlayToUIForWindow(IntPtr hWnd)
        {
            IPlayToManagerInterop playToManagerInterop = (IPlayToManagerInterop)InteropHelper.GetActivationFactory <IPlayToManagerInterop>(typeof(PlayToManager));

            playToManagerInterop.ShowPlayToUIForWindow(hWnd);
        }
コード例 #23
0
        public static UserActivityRequestManager GetForWindow(IntPtr hWnd)
        {
            IUserActivityRequestManagerInterop userActivityRequestManagerInterop = (IUserActivityRequestManagerInterop)InteropHelper.GetActivationFactory <IUserActivitySourceHostInterop>(typeof(UserActivityRequestManager));
            Guid guid = typeof(UserActivityRequestManager).GUID;

            return(userActivityRequestManagerInterop.GetForWindow(hWnd, ref guid));
        }
コード例 #24
0
        public static RadialControllerIndependentInputSource Initialize(IntPtr hwnd)
        {
            IRadialControllerIndependentInputSourceInterop radialControllerIndependentInputSourceInterop = (IRadialControllerIndependentInputSourceInterop)InteropHelper.GetActivationFactory <IRadialControllerInterop>(typeof(RadialControllerIndependentInputSource));
            Guid guid = typeof(RadialControllerIndependentInputSource).GUID;

            return(radialControllerIndependentInputSourceInterop.CreateForWindow(hwnd, ref guid));
        }
コード例 #25
0
        public static RadialControllerConfiguration Initialize(IntPtr hWnd)
        {
            IRadialControllerConfigurationInterop radialControllerConfigInterop = (IRadialControllerConfigurationInterop)InteropHelper.GetActivationFactory <IRadialControllerInterop>(typeof(RadialControllerConfiguration));
            Guid guid = typeof(RadialControllerConfiguration).GUID;

            return(radialControllerConfigInterop.GetForWindow(hWnd, ref guid));
        }