NWPSCfgDeletePrintServerAttr(3nw)


NWPSCfgDeletePrintServerAttr -- deletes print server attribute from print server object

Synopsis

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

NWCCODE NWAPI NWPSCfgDeletePrintServerAttr (WORD connType, DWORD connID, char NWFAR *pServerName, WORD attrID, void NWFAR *attrValue);

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.

attrID
(IN) Specifies the print server attribute identifier.

attrValue
(IN) Points to the attribute value.

Return values

0x0000
Successful

-1
General Error

other
Bindery or Directory Services Errors

Notices

If an attempt to delete a required attribute is made, an error is returned.

The type of the buffer pointed to by attrValue depends on the value of attrID. If attrID is not recognized, an error is returned.

If the attribute is not required and is single-valued, the attribute is removed. If the attribute is not required and is multi-valued, the value specified is deleted, and the other values are left in place.

See NWPSCfgAddPrintServerAttr(3nw) for a list of legal attributes and corresponding types.

Services

Print Server

References

NWPSCfgAddPrintServerAttr(3nw), NWPSCfgDeletePrintServer(3nw), NWPSCfgGetFirstPrintServerAttr(3nw), NWPSCfgGetNextPrintServerAttr(3nw), NWPSCfgEndNextPrintServerAttr(3nw), NWCCOpenConnByName(3nw), NWDSCreateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.