NWPSCfgAddPrintServer(3nw)
NWPSCfgAddPrintServer --
adds print server to Bindery-based NetWare server or Directory Services context
Synopsis
#include <nwps_cfg.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSCfgAddPrintServer
(WORD connType,
DWORD connID,
char NWFAR
pServerName);
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 to add.
Return values
- 0x0000
-
Successful
- -1
-
General Error
- other
-
Bindery or Directory Services Errors
Notices
NWPSCfgAddPrintServer also adds the following attributes to
the print server object:
NWPS_ATTR_OPER = SUPERVISOR (Bindery Services)
NWPS_ATTR_OPER = current user (Directory Services)
NWPS_ATTR_USER = EVERYONE (Bindery Services)
NWPS_ATTR_USER = current least significant organizational unit (Directory Services)
NWPS_ATTR_STAT = NWPS_DOWN (both Bindery and Directory Services)
Services
Print Server
References
NWPSCfgAddPrintServerAttr(3nw),
NWPSCfgDeletePrintServer(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.