Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> psoperatoradd()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PSOperatorAdd()
------------------------------------------------------------------------------
 Purpose:
 Add a print server operator.

 Syntax:
 bResult = PSOperatorAdd( lpszUser, lpszPrintServer )

 Parameters:
 lpszUser        The name of a user.
 lpszPrintServer The name of the print server.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 PSOprAdd()

 Description:
 PSOperatorAdd() adds the specified user lpszUser to the print server
 operator list on the specified print server lpszPrintServer.
 PSOperatorAdd() returns TRUE if successful.

 Returns FALSE and NWErrorGet() returns the appropriate error value if an
 error occurs.

 Example:
 // To make user DAVID an operator on the print server PRINTERS:
 if ( PSOperatorAdd( "DAVID", "PRINTERS" ) )
    ? "User DAVID is an operator of print server PRINTERS"
 endif

 Notes:
 PSOperatorAdd() adds the object ID number of the specified user
 lpszUser to the PS_OPERATORS set property value of the print server object
 on the associated file server.

 This function requires Supervisor equivalence.

See Also: PSOperatorDelete() PSOperatorList() PSUserAdd() PSUserDelete() PSUserList()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson