IPrintManagerInterop::GetForWindow method (printmanagerinterop.h)
Gets the PrintManager instance for the specified window.
Syntax
HRESULT GetForWindow(
[in] HWND appWindow,
[in] REFIID riid,
[out, retval] void **printManager
);
Parameters
[in] appWindow
The window to get the PrintManager instance for.
[in] riid
The reference ID of the specified window.
[out, retval] printManager
The PrintManager instance for the specified window.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
You can use the GetForWindow method to get the PrintManager for the specified window. The GetForWindow method is equivalent to the GetForCurrentView 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 |