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

 Syntax:
 bResult = QueOperatorAdd(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:
 QueOprAdd()

 Description:
 QueOperatorAdd() adds the specified user to the operator list of a print
 queue. QueOperatorAdd() returns TRUE if successful.

 Returns FALSE, and NWErrorGet() is set to the appropriate error value, if
 an error occurs.

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

 Notes:
 QueOperatorAdd() 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: QueOperatorDelete() QueOperatorTest() QueOperatorList() SetPropertyIDAdd() SetPropertyIDDelete() SetPropertyValueGet() / SetPropertyValueSet()

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