public static InputPane GetForWindow(IntPtr hWnd)
        {
            IInputPaneInterop inputPaneInterop = (IInputPaneInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(InputPane));
            Guid guid = typeof(InputPane).GUID;

            return(inputPaneInterop.GetForWindow(hWnd, ref guid));
        }
        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));
        }
Пример #3
0
        public static InputPane GetForWindow(IntPtr appWindow)
        {
            Guid iid = GuidGenerator.CreateIID(typeof(IInputPane));

            return((InputPane)inputPaneInterop.GetForWindow(appWindow, iid));
        }