RouterGetPrintClassObject function

The RouterGetPrintClassObject function enumerates the list of print providers, searching for the print provider with the specified name and interface ID.

Syntax

HRESULT RouterGetPrintClassObject(
  PCWSTR pPrinter,
  REFIID riid,
  VOID   **ppv
);

Parameters

pPrinter

A pointer to a null-terminated string that contains the name of the printer or print server.

riid

The identifier of the requested COM interface.

ppv

A pointer to a variable that supplies the address of the COM interface requested in the iid parameter.

Return Value

This function returns S_OK on success, and a standard COM error code otherwise.

Requirements

   
Target Platform Desktop
Header prnasntp.h (include Prnasntp.h)
Library Spoolss.lib
DLL Spoolss.dll