public static IAsyncOperation <bool> ShowPrintUIForWindowAsync(IntPtr hWnd)
        {
            IPrintManagerInterop printManagerInterop = (IPrintManagerInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(PrintManager));
            Guid guid = typeof(IAsyncOperation <bool>).GUID;

            return(printManagerInterop.ShowPrintUIForWindowAsync(hWnd, ref guid));
        }
        public static IAsyncOperation <bool> ShowPrintUIForWindowAsync(IntPtr hWnd)
        {
            Guid iid = InteropHelper.GetIID <IAsyncOperation <bool> >();
            IPrintManagerInterop factory = InteropHelper.GetActivationFactory <IPrintManagerInterop>(typeof(PrintManager));

            return(factory.ShowPrintUIForWindowAsync(hWnd, ref iid));
        }
예제 #3
0
        public static IAsyncOperation <bool> ShowPrintUIForWindowAsync(IntPtr appWindow)
        {
            Guid iid = GuidGenerator.CreateIID(typeof(IAsyncOperation <bool>));

            return((IAsyncOperation <bool>)printManagerInterop.ShowPrintUIForWindowAsync(appWindow, iid));
        }