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

 Syntax:
 bResult = QueUserAdd( lpszUserName, lpszQueueName )

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

 Returns:
 A boolean value (TRUE or FALSE).

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

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

 QueUserAdd() 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 ( QueUserAdd( "JOHN", "PRINTQ_0" ) )
    ? "User JOHN is now a user of print queue PRINTQ_0"
 endif

 Notes:
 QueUserAdd() 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: QueUserDelete() QueUserTest() QueUserList() SetPropertyIDAdd() SetPropertyIDDelete() SetPropertyValueGet() / SetPropertyValueSet()

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