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

 Syntax:
 bResult = PSUsrAdd( lpszUser, lpszPrintServer )

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

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 PSUsrAdd() adds the specified user lpszUser to the authorised user list
 of the specified print server lpszPrintServer.

 PSUsrAdd() returns TRUE if successful. Returns FALSE, and NWErrorGet()
 returns the appropriate error value, if an error occurs.

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

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

 This function requires Supervisor equivalence.

See Also: PSUsrDel() PSUsrLst() PSOprAdd() PSOprDel() PSOprLst()

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