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

 Syntax:
 bResult = QueOprAdd(lpszUserName, lpszQueueName)

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

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 QueOprAdd() adds the specified user to the operator list of a print
 queue. QueOprAdd() 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 ( QueOprAdd( "JOHN", "PRINTQ_0" ) )
    ? "User JOHN is now an operator of print queue PRINTQ_0"
 endif

 Notes:
 QueOprAdd() 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: QueOprDel() QueOprTst() QueOprLst() SetPrpIDAdd() SetPrpIDDel() SetPrpValGet() / SetPrpValSet()

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