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

FUNCTION UGDeleteGroup (thePB: UserGroupPBPtr; async: BOOLEAN): OSErr;
pascal OSErr UGDeleteGroup (UserGroupPBPtr thePB, Boolean async);
Parameter Block 24 ugRefNum word file reference
number
30 ugAccessID long program access ID
38 ugGroupID long group ID
UGDeleteGroup deletes the group specified by ugGroupID.
Result Codes
noErr 0 No error.
ugGroupNotFound 6 The group is not in the users and
groups file.
ugNotAGroup 8 ugGroupID is not the ID of a group.
ugBadParamErr 13 async is TRUE.
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 it and re-create it
UGRenameGroup
FUNCTION UGRenameGroup (thePB: UserGroupPBPtr; async: BOOLEAN): OSErr;
pascal OSErr UGRenameGroup (UserGroupPBPtr thePB, Boolean async);
Parameter Block 18 ugNamePtr long pointer to current
group name
24 ugRefNum word file reference
number
30 ugAccessID long program access ID
38 ugGroupID long group ID
44 ugMisc long pointer to new
group name
UGRenameGroup renames the group specified either by ugGroupID or
by ugNamePtr (a pointer to a Str31). If ugGroupID is used, then ugNamePtr