RouterGetPrintClassObject function (prnasntp.h)
The RouterGetPrintClassObject
function enumerates the list of print providers, searching for the print provider with the specified name and interface ID.
Syntax
HRESULT RouterGetPrintClassObject(
[in] PCWSTR pPrinter,
[in] REFIID riid,
[out] VOID **ppv
);
Parameters
[in] pPrinter
A pointer to a null-terminated string that contains the name of the printer or print server.
[in] riid
The identifier of the requested COM interface.
[out] 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
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | prnasntp.h (include Prnasntp.h) |
Library | Spoolss.lib |
DLL | Spoolss.dll |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for