IPrintClassObjectFactory::GetPrintClassObject method

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(
  const wchar_t *pszPrinterName,
  REFIID        riid,
  void          **ppNewObject
);

Parameters

pszPrinterName

The printer name.

riid

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

ppNewObject

The new object that this method creates.

Return Value

GetPrintClassObject returns an HRESULT value.

Requirements

   
Target Platform Desktop
Header filterpipeline.h