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

 Syntax:
 bResult = QueUserTest( lpszUserName, lpszQueueName )

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

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 QueUserTest() 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 ( QueUserTest( "SARA", "LASER" ) )
    ? "User SARA is an authorised user of print queue LASER"
 endif

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

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