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

 Syntax:
 bResult = QueUsrTst( lpszUserName, lpszQueueName )

 Parameters:
 lpszUserName  The user name.
 lpszQueueName The queue name.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 QueUsrTst() tests to see if the user specified by lpszUserName is an
 authorised user of the print queue specified by lpszQueueName.

 Returns TRUE if the user is an authorised user of the print queue and FALSE
 if not, or if an error occurs.

 Example:
 // To test whether user SARA is an authorised user of print queue LASER:
 if ( QueUsrTst( "SARA", "LASER" ) )
    ? "User SARA is an authorised user of print queue LASER"
 endif

 Notes:
 QueUsrTst() calls SetPrpIDTst() to test whether the user's
 object ID is in the Q_USERS set property value of the print queue.

 If FALSE is returned, check NWErrorGet().

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

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