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

 Syntax:
 bResult = QueOperatorTest(lpszUserName, lpszQueueName)

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

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 QueOperatorTest() tests whether the user lpszUserName is an authorised
 operator of the print queue lpszQueueName.

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

 Example:
 // To test whether user JANE is an authorised operator of PRINTQ_0:
 if ( QueOperatorTest( "JANE", "PRINTQ_0" ) )
    ? "User JANE is an authorised operator of PRINTQ_0"
 endif

 Notes:
 QueOperatorTest() uses SetPropertyIDTest() to test whether the
 user's object ID is in the Q_OPERATORS set property value of the print
 queue.If FALSE is returned, check NWErrorGet().

See Also: QueOperatorAdd() QueOperatorDelete() QueOperatorList() SetPropertyIDAdd() SetPropertyIDDelete() SetPropertyValueGet() / SetPropertyValueSet() SetPropertyIDTest()

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