IPrintClassObjectFactory::GetPrintClassObject method (filterpipeline.h)

The GetPrintClassObject method creates a print filter-related object for a specified printer by using the IID of the interface object to create.

Syntax

HRESULT GetPrintClassObject(
  [in]  const wchar_t *pszPrinterName,
  [in]  REFIID        riid,
  [out] void          **ppNewObject
);

Parameters

[in] pszPrinterName

The printer name.

[in] riid

The IID of the interface to create. Filters should use IID_IPrintAsyncNotify to create notification channels.

[out] ppNewObject

The new object that this method creates.

Return value

GetPrintClassObject returns an HRESULT value.

Requirements

Requirement Value
Target Platform Desktop
Header filterpipeline.h