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

 Syntax:
 bResult = QueGrpAdd( lpszGroupName, lpszQueueName )

 Parameters:
 lpszGroupName The group name.
 lpszQueueName The name of the print queue.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 QueGrpAdd() adds the user group lpszGroupName to the authorised user
 list of a print queue lpszQueueName. QueGrpAdd() returns TRUE if
 successful.

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

 Example:
 // To make group EVERYONE an authorised user of print queue PRINTQ_0:
 if ( QueGrpAdd( "EVERYONE", "PRINTQ_0" ) )
    ? "Group EVERYONE is now a user of print queue PRINTQ_0"
 endif

 Notes:
 QueGrpAdd() adds the object ID of the specified group to the
 Q_USERS set property value of the specified print queue.

 This function requires Supervisor equivalence.

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

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