GetPrintOutputInfo 函式 (winspool.h)

語法

HRESULT GetPrintOutputInfo(
  [in]  HWND   hWnd,
  [in]  PCWSTR pszPrinter,
  [out] HANDLE *phFile,
  [out] PWSTR  *ppszOutputFile
);

參數

[in] hWnd

[in] pszPrinter

[out] phFile

[out] ppszOutputFile

傳回值

如果此函式成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

需求
目標平台 Windows
標頭 winspool.h