NWPSComLoginToPrintServer(3nw)
NWPSComLoginToPrintServer --
logs client into print server
Synopsis
#include <nwps_com.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSComLoginToPrintServer
(WORD connType,
DWORD connID,
WORD spxID,
BYTE NWFAR
accessLevel);
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.
- spxID
-
(IN) Specifies the SPX connection to the print server.
- accessLevel
-
(OUT) Points to the client privilege levels from the print server.
Return values
- 0x0000
-
NWPSE_SUCCESSFUL
- 0x00ED
-
NWPSE_CONNECTION_TERMINATED
- 0x0103
-
NWPSE_BINDERY_LOCKED
- 0x030C
-
NWPSE_DOWN
- 0x0400
-
NWPSE_UNABLE_TO_VERIFY_IDENTITY
Notices
NWPSComLoginToPrintServer gets the client's access rights from
the NetWare server Bindery or from the Directory to determine if the
client has user or operator rights to the print server. The SPX
connection must already be established by calling
NWPSComAttachToPrintServer.
If connType is NWPS_BINDERY_SERVICE, the client must
be attached to one of the NetWare servers to which the print server is
attached. If connType is NWPS_DIRECTORY_SERVICE, the
client must be authenticated on the Directory tree.
accessLevel has the following values:
0 = NWPS_LIMITED
1 = NWPS_USER
2 = NWPS OPERATOR
Services
Print Server
References
NWPSComAttachToPrintServer(3nw),
NWPSComLoginToPrintServer(3nw),
NWCCOpenConnByName(3nw),
NWDSCreateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.