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

 Syntax:
 bResult = QueUsrAdd( lpszUserName, lpszQueueName )

 Parameters:
 lpszUserName  The name of the user.
 lpszQueueName The name of the print queue.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 QueUsrAdd() adds the specified user lpszUserName to the authorised user
 list of print queue lpszQueueName.

 QueUsrAdd() returns TRUE if successful.

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

 Example:
 // To make user JOHN an authorised user of PRINTQ_0:
 if ( QueUsrAdd( "JOHN", "PRINTQ_0" ) )
    ? "User JOHN is now a user of print queue PRINTQ_0"
 endif

 Notes:
 QueUsrAdd() adds the object ID of the specified user to the
 Q_OPERATORS set property value of the specified print queue.

 This function requires Supervisor equivalence.

See Also: QueUsrDel() QueUsrTst() QueUsrLst() SetPrpIDAdd() SetPrpIDDel() SetPrpValGet() / SetPrpValSet()

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