共用方式為


IPrintPipelineManagerControl::RequestShutdown 方法 (filterpipeline.h)

RequestShutdown 方法會要求關閉管線。

語法

HRESULT RequestShutdown(
  [in] HRESULT       hrReason,
  [in] IImgErrorInfo *pReason
);

參數

[in] hrReason

HRESULT 值,指出記憶體不足的原因。

[in] pReason

未使用。 設定為 NULL

傳回值

RequestShutdown 傳回 HRESULT 值。

言論

使用 IXpsDocumentConsumer 介面的篩選,必須先呼叫 IPrintPipelineManagerControl::RequestShutdown,才能呼叫 IXpsDocumentConsumer::CloseSender 來關閉管線。 呼叫 IXpsDocumentConsumer::CloseSender 會先產生無效的 XPS 檔並造成錯誤。

要求

要求 價值
目標平臺 桌面
標頭 filterpipeline.h