NWPSCfgAddNServer(3nw)
NWPSCfgAddNServer --
adds NetWare server to print server list
Synopsis
#include <nwps_cfg.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSCfgAddNServer
(WORD connType,
DWORD connID,
char NWFAR
pServerName,
char NWFAR
nServerName);
Description
The parameters are as follows:
- connType
-
(IN) Specifies either NWPS_BINDERY_SERVICE_PRE_40 or
NWPS_BINDERY_SERVICE.
- connID
-
(IN) Specifies the connection identifier.
- pServerName
-
(IN) Points to the name of the print server.
- nServerName
-
(IN) Points to the name of the NetWare server to add.
Return values
- 0x0000
-
Successful
- -1
-
General Error
- other
-
Bindery or Directory Services Errors
Notices
For the print server to service queues on another NetWare server, the
NetWare server must be specified and saved by calling
NWPSCfgAddNServer.
Because Directory Services does not need NetWare server names,
NWPSCfgAddNServer fails if connType equals
NWPS_DIRECTORY_SERVICE.
Services
Print Server
References
NWPSCfgDeleteNServer(3nw),
NWPSCfgGetFirstNServer(3nw),
NWPSCfgGetNextNServer(3nw),
NWPSCfgEndNextNServer(3nw),
NWPSCfgVerifyNServer(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.