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)); }
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 PrintManager GetForWindow(IntPtr hWnd) { Guid iid = InteropHelper.GetIID <PrintManager>(); IPrintManagerInterop factory = InteropHelper.GetActivationFactory <IPrintManagerInterop>(typeof(PrintManager)); return(factory.GetForWindow(hWnd, ref iid)); }
public static PrintManager GetForWindow(IntPtr hWnd) { IPrintManagerInterop printManagerInterop = (IPrintManagerInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(PrintManager)); Guid guid = typeof(PrintManager).GetInterface("IPrintManager").GUID; return(printManagerInterop.GetForWindow(hWnd, ref guid)); }