
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetpsacc()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NNETPSACC()
Determines the access rights to a print server
------------------------------------------------------------------------------
Syntax
NNETPSACC(<cPServer>,[<cServer>|<nConId>]) --> nAccess
Netware: 2.2 and 3.11
Arguments
<cPServer> Designates the name of the print server that is
accessed.
<cServer> Designates the name of the file server used to access
<cPServer>. The print server checks login information on <cServer>.
Therefore, the access rights can depend on the specified file server.
Your workstation must be attached to <cServer>.
<nConId> Designates the connection ID of your workstation on
<cServer>.
Returns
NNETPSACC() returns the access rights to <cPServer>.
Table 27.1: Access Rights
------------------------------------------------------------------------
Value Definition
------------------------------------------------------------------------
-1 Error
0 Restricted access
1 Print server user
2 Print server operator
------------------------------------------------------------------------
Description
NOVELL NET PRINT SERVER ACCESS
NNETPSACC() allows you to determine the operations that the current user
can execute on <cPServer>. While simple operations (like status query)
can be done by any user, critical operations (like print server
controlling and configuration) require operator rights.
Example
Determine the access rights to print server PSERVER1:
? NNETPSACC('PSERVER1')
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson