// winspool.h
HRESULT GetPrintOutputInfo(
[in] HWND hWnd,
[in] PCWSTR pszPrinter,
[out] HANDLE *phFile,
[out] PWSTR *ppszOutputFile
);
View the official Windows Driver Kit DDI referenceNo description available.
hWnd [in]pszPrinter [in]phFile [out]ppszOutputFile [out]If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.