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

 Syntax:
 bResult = UsrConsoleOperatorTest( lpszUserName )

 Parameters:
 lpszUserName The user name.

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 UsrConsoleOperatorTest() tests to see if the user specified by
 lpszUserName is a member of the current file server's console operator
 list.

 Returns TRUE if successful and the specified user is a console operator and
 FALSE if not, or if an error occurs.

 Example:
 // To verify that user MATTHEW is a console operator on the
 // default file server:
 if ( UsrConsoleOperatorTest( "MATTHEW" ) )
    ? "User MATTHEW is a console operator of server", FSNameGet()
 endif

 Notes:
 UsrConsoleOperatorTest() uses SetPropertyIDTest() to test whether
 the user's bindery ID number appears in the OPERATORS property value of the
 file server.

 If FALSE is returned, check NWErrorGet().

See Also: UsrConsoleOperatorSet() UsrConsoleOperatorDelete() UsrCurConsoleOperatorTest() FSConsoleOperatorList() SetPropertyIDAdd() SetPropertyIDDelete() SetPropertyValueGet() / SetPropertyValueSet()

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