NWPSComAttachPServerToNServer(3nw)
NWPSComAttachPServerToNServer --
attaches print server to NetWare server
Synopsis
#include <nwps_com.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSComAttachPServerToNServer
(WORD spxID,
char NWFAR *nServerName,
char NWFAR *password);
Description
The parameters are as follows:
- spxID
-
(IN) Specifies the SPX connection to print server.
- nServerName
-
(IN) Points to the name of the NetWare server to attach to.
- password
-
(IN) Points to the print server's login password.
Return values
- 0x0000
-
NWPSE_SUCCESSFUL
- 0x00ED
-
NWPSC_CONNECTION_TERMINATED
- 0x0101
-
NWPSE_TOO_MANY_NW_SERVERS
- 0x0102
-
NWPSE_UNKNOWN_NW_SERVER
- 0x0103
-
NWPSE_BINDERY_LOCKED
- 0x0104
-
NWPSE_NW_SERVER_MAXED_OUT
- 0x0105
-
NWPSE_NO_RESPONSE
- 0x0106
-
NWPSE_ALREADY_ATTACHED
- 0x0107
-
NWPSE_CANT_ATTACH
- 0x0108
-
NWPSE_NO_ACCOUNT_BALANCE
- 0x0109
-
NWPSE_NO_CREDIT_LEFT
- 0x010A
-
NWPSE_INTRUDER_DETECTION_LOCK
- 0x010B
-
NWPSE_TOO_MANY_CONNECTIONS
- 0x010C
-
NWPSE_ACCOUNT_DISABLED
- 0x010D
-
NWPSE_UNAUTHORIZED_TIME
- 0x010E
-
NWPSE_UNAUTHORIZED_STATION
- 0x010F
-
NWPSE_NO_MORE_GRACE
- 0x0110
-
NWPSE_LOGIN_DISABLED
- 0x0111
-
NWPSE_ILLEGAL_ACCT_NAME
- 0x0112
-
NWPSE_PASSWORD_HAS_EXPIRED
- 0x0113
-
NWPSE_ACCESS_DENIED
- 0x0114
-
NWPSE_CANT_LOGIN
- 0x0301
-
NWPSE_NOT_ENOUGH_MEMORY
- 0x030C
-
NWPSE_DOWN
- 0x030E
-
NWPSE_NO_RIGHTS
- 0x030F
-
NWPSE_CMD_NOT_SUPPORTED
Notices
Before calling NWPSComAttachPServerToNServer, a print server
object with the same name must exist on the NetWare server.
If the print server attaches without an error, it also logs in to the
NetWare server. If the login fails, the print server detaches from the
NetWare server. If the attach and the login are successful,
NWPSComAttachPServerToNServer reads the NetWare server's
configuration files, which include the queues the print server will be
servicing and the objects to notify.
NWPSComAttachPServerToNServer is for operators only.
Services
Print Server
NCP calls
None
References
NWPSComAttachToPrintServer(3nw),
NWPSComDetachPServerFromNServer(3nw),
NWPSComLoginToPrintServer(3nw),
NWScanObject(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.