184.108.40.206.6 Adding a Printer to a Print Server
The client can use methods defined by this protocol to query the print server for information used to initialize other data structures.<396>
The client MUST allocate a DEVMODE_CONTAINER and populate it with the default DEVMODE for the new printer.
The client MUST call the print server's RpcAddPrinter with the print server's name, and the CONTAINER parameters from steps 4, 5, and 6. Alternatively, the client can use the RpcAddPrinterEx and specify an additional SPLCLIENT_CONTAINER that describes the client in more detail. RpcAddPrinterEx returns a PRINTER_HANDLE to the newly added printer in the variable pointed to by pHandle. The client SHOULD close that handle using RpcClosePrinter when it no longer requires it.