IPrintPipelineManagerControl::RequestShutdown method

The RequestShutdown method requests that a pipeline be shut down.

Syntax

HRESULT RequestShutdown(
  HRESULT       hrReason,
  IImgErrorInfo *pReason
);

Parameters

hrReason

An HRESULT value that indicates the reason for the lack of memory.

pReason

Not used. Set to NULL.

Return Value

RequestShutdown returns an HRESULT value.

Remarks

A filter that uses the IXpsDocumentConsumer interface must call IPrintPipelineManagerControl::RequestShutdown before it calls IXpsDocumentConsumer::CloseSender to shut down the pipeline. Calling IXpsDocumentConsumer::CloseSender first can produce an invalid XPS document and cause an error.

Requirements

   
Target Platform Desktop
Header filterpipeline.h