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

 Syntax:
 bResult = GrpUsrTst( lpszUserName,   lpszGroupName )

 Parameters:
 lpszUserName  The login name of the user.
 lpszGroupName The name of the group.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 GrpUsrTst() returns TRUE if the user specified by lpszUserName is a
 member of the user group specified by lpszGroupName.

 Returns FALSE if not, or if an error occurs.

 Example:
 // To verify that user SARA is a member of the group ACCOUNTS:
 if( GrpUsrTst( "SARA", "ACCOUNTS" ) )
    ? "User SARA is a member of group ACCOUNTS"
 endif

 Notes:
 GrpUsrTst() uses SetPrpIDTst() to test whether the user's
 bindery object ID is in the GROUP_MEMBERS property value of the group.

 If FALSE is returned, check NWErrorGet().

See Also: FSGrpAdd() FSGrpDel() GrpUsrAdd() GrpUsrDel() FSObjLst() GrpUsrLst()

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