Apple AppleShare 3.0 Users and Groups Programming Interface User Manual
Page 19

group. (The primary group is used by AppleShare File Servers 2.0.1 and 3.0
when Apple II mode is on. Refer to "Data Structures," later in this document,
for details.)
Result Codes
noErr 0 No error.
ugUserNotFound 5 The user is not in the users and groups
file.
ugGroupNotFound 6 The group is not in the users and
groups file.
ugNotAUser 7 ugUserID is not the ID of a user.
ugNotAGroup 8 ugGroupID is not the ID of a group.
ugTooManyGroups 9 User has already been assigned to the
maximum number of groups.
ugBadParamErr 13 async is TRUE.
ugUserAlreadyAMember 14 User is already a member of the group.
ugAPrmryGroupExists 15 User already has a primary group.
UGServerRunning 16 Server is running.
ugAdminRunning 17 Admin is running.
ugNotBtree 18 Users and groups file is not a B-Tree
file.
ugBadUID 21 The ID in ugAccessID is wrong. The
users and groups file may not be open.
ugFatalError 99 There is a problem with the users and
groups file. Delete and re-create it.
UGDeleteUserFromGroup
FUNCTION UGDeleteUserFromGroup (thePB: UserGroupPBPtr; async: BOOLEAN):
OSErr;
pascal OSErr UGDeleteUserFromGroup (UserGroupPBPtr thePB, Boolean async)
Parameter Block 24 ugRefNum word file reference
number
30 ugAccessID long program access ID
34 ugUserID long user ID
38 ugGroupID long group ID
UGDeleteUserFromGroup allows your program to remove the user specified
in ugUserID from the group specified in ugGroupID.