beautypg.com

Apple AppleShare 3.0 Users and Groups Programming Interface User Manual

Page 24

background image

Data File, the state of the reserved bits should be preserved.

The following figure shows the ugSrvrFlags bits.

All of the ugSrvrFlags flags are effective as soon as the file server is

started, except for IACGlobalEnabled, which is effective only after the

computer is restarted.

Parameter blocks needed to call the Users and Groups library functions

In Pascal:

{ Use UGFilePB for UGOpenFile, UGCloseFile and UGCreateFile }

UGFilePB = RECORD

qLink: QElemPtr;

qType: INTEGER;

ugTrap: INTEGER;

ugCmdAddr: Ptr;

ugCompletion: ProcPtr;

ugResult: OSErr;

ugNamePtr: StringPtr;

ugVRefNum: INTEGER;

ugRefNum: INTEGER;

ugDirID: LONGINT;

ugAccessID: LONGINT;

ugUserID: LONGINT;

ugGroupID: LONGINT;

ugAdminKey: StringPtr;

END;

{ Use UGUserPB for UGNewUser, UGDeleteUser, UGRenameUser, }

{ UGGetUserInfo, UGSetUserInfo, and UGAuthenticateUser }

UGUserPB = RECORD

qLink: QElemPtr;

qType: INTEGER;

ugTrap: INTEGER;