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> psopradd()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PSOprAdd()
------------------------------------------------------------------------------
 Purpose:
 Add a print server operator.

 Syntax:
 bResult = PSOprAdd( lpszUser, lpszPrintServer )

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

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 PSOprAdd() adds the specified user lpszUser to the print server
 operator list on the specified print server lpszPrintServer.
 PSOprAdd() 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 ( PSOprAdd( "DAVID", "PRINTERS" ) )
    ? "User DAVID is an operator of print server PRINTERS"
 endif

 Notes:
 PSOprAdd() 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: PSOprDel() PSOprLst() PSUsrAdd() PSUsrDel() PSUsrLst()

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