Site icon EfmSoft

What does Windows error code 1801 (ERROR_INVALID_PRINTER_NAME) mean?

 
Previous Next
ERROR_INVALID_PRIORITY ERROR_PRINTER_ALREADY_EXISTS

ERROR_INVALID_PRINTER_NAME

Winspool APIs use printer names for several different targets: a local printer object, a remote printer connection, or a printer exposed by a print server. A string that looks plausible to a user interface is not automatically valid for the API and server context that receives it.

For queue creation, AddPrinter takes the printer name from PRINTER_INFO_2 and creates that object on the server specified separately by pName. Remote administration adds another layer because the request is carried to the print server through the print protocol.

Log the unmodified name

AddPrinter and PRINTER_INFO_2 requirements · Print Spooler API functions · MS-RPRN overview


Looking for a different code? Search another status or error code.

Exit mobile version