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> grpusrlst()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GrpUsrLst()
------------------------------------------------------------------------------
 Purpose:
 List the users in a group.

 Syntax:
 lpszUserName = GrpUsrLst( lpszGroupName, iIndex )

 Parameters:
 lpszGroupName The group name.
 iIndex        The offset number.

 Returns:
 A character string of length 47.

 Description:
 GrpUsrLst() is used to obtain a list of members of the group
 lpszGroupName. iOffset is the index into the list and should start at
 1. GrpUsrLst() should be called repeatedly, incrementing iIndex each
 time until an empty string is returned.

 Returns an empty string on the first call if there are no group members or
 if an error occurs. Otherwise returns a name of a group member until an
 empty string is returned signifying the end of the list.

 Example:
 // To return the list of group members of user group EVERYONE
 // on the current file server:
 iIndex = 1
 lpszMembers = GrpUsrLst( "EVERYONE", iIndex )
 do while !empty ( lpszMembers )
    ? lpszMembers
    iIndex++
    lpszMembers = GrpUsrLst( "EVERYONE", iIndex )
 enddo

 Notes:
 GrpUsrLst() is used to obtain a list of members from the
 GROUP_MEMBERS property value of the group.

 After an empty string is returned, check NWErrorGet().

See Also: SetPrpIDTst() GrpUsrAdd() GrpUsrDel() UsrGrpLst()

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