次の方法で共有


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 エラー コードが返されます。

必要条件

要件 価値
ターゲット プラットフォーム ウィンドウズ
ヘッダー winspool.h