IPrintManagerInterop::ShowPrintUIForWindowAsync method (printmanagerinterop.h)

Displays the UI for printing content for the specified window.

Syntax

HRESULT ShowPrintUIForWindowAsync(
  [in]          HWND   appWindow,
  [in]          REFIID riid,
  [out, retval] void   **asyncOperation
);

Parameters

[in] appWindow

The window to show the print UI for.

[in] riid

The reference ID of the specified window.

[out, retval] asyncOperation

The asynchronous operation that reports completion.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

You can use the ShowPrintUIForWindowAsync method to show the print UI for the specified window. The ShowPrintUIForWindowAsync method is equivalent to the ShowPrintUIAsync method, except that you supply a reference to a window from a multi-window Windows Store app.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header printmanagerinterop.h

See also

IPrintManagerInterop

PrintManager

ShowPrintUIAsync