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

 Syntax:
 bResult = UsrGrpMgrTst( lpszUserName )

 Parameters:
 lpszUserName  The user name.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 UsrGrpMgrTst() tests to see if the user specified by lpszUserName is
 a workgroup manager on the default file server.

 Returns TRUE if the user is a manager on the default file server and FALSE
 if not, or if an error occurs.

 Example:
 // To test whether user SHARON is a workgroup manager on the
 // default file server:
 if ( UsrGrpMgrTst( "SHARON" ) )
    ? "User SHARON is a workgroup manager on server", FSNmeGet()
 endif

 Notes:
 UsrGrpMgrTst() uses SetPrpIDTst() to test whether the
 bindery object ID of the specified user is in the MANAGERS set property
 value of the Supervisor.

 If FALSE is returned, check NWErrorGet().

See Also: UsrGrpMgrSet() UsrGrpMgrDel() SetPrpIDTst()

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