NWPSCfgDeletePrinter(3nw)


NWPSCfgDeletePrinter -- deletes previously defined printer from print server's printer list

Synopsis

   #include <nwps_cfg.h> 
   or 
   #include <nwpsrv.h> 
   

NWCCODE NWAPI NWPSCfgDeletePrinter (WORD connType, DWORD connID, char NWFAR *pServerName, char NWFAR *printerName);

Description

The parameters are as follows:

connType
(IN) Specifies either NWPS_BINDERY_SERVICE, NWPS_BINDERY_SERVICE_PRE_40, or NWPS_DIRECTORY_SERVICE.

connID
(IN) Specifies the connection or context identifier.

pServerName
(IN) Points to the name of the print server.

printerName
(IN) Points to the name of the printer to delete.

Return values

0x0000
Successful

-1
General Error

other
Bindery or Directory Services Errors

Notices

In NWPS_DIRECTORY_SERVICE mode, the printer is also removed from the printer attribute of the print server and from the Directory itself.

Both pServerName and printerName are NULL-terminated ASCII strings.

Services

Print Server

References

NWPSCfgDeletePrinterAttr(3nw), NWPSCfgGetFirstPrinter(3nw), NWPSCfgGetNextPrinter(3nw), NWPSCfgEndNextPrinter(3nw), NWPSCfgVerifyPrinter(3nw), NWPSCfgGetFirstPrintServer(3nw), NWPSCfgGetNextPrintServer(3nw), NWPSCfgEndNextPrintServer(3nw), NWPSCfgVerifyPrintServer(3nw), NWCCOpenConnByName(3nw), NWDSCreateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.