Apple AppleShare 3.0 File Server Controls User Manual Page 18

  • Download
  • Add to my manuals
  • Print
  • Page
    / 79
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 17
UNRecID := scPB.userInfoPB.scUNRecID;
UserID := scPB.userInfoPB.scUserID;
LoginTime := scPB.userInfoPB.scLoginTime;
LastUseTime := scPB.userInfoPB.scLastUseTime;
SocketNum := scPB.userInfoPB.scSocketNum;
END;
The following procedure creates a list of the users logged on to a file
server.
PROCEDURE GetAllUserNameRecs;
VAR
err: OSErr;
UserName: Str31;
Position: LongInt;
UNRecID: LongInt;
UserID: LongInt;
LoginTime: LongInt;
LastUseTime: LongInt;
SocketNum: AddrBlock;
BEGIN
Position := 0;
REPEAT
err := MySCGetUserNameRec(@UserName, Position, UNRecID,
UserID, LoginTime, LastUseTime, SocketNum);
IF err = noErr THEN
BEGIN
{ do something with the user information returned }
END
ELSE IF err <> fnfErr THEN
{ fnfErr only means there are no more users }
BEGIN
Page view 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 78 79

Comments to this Manuals

No comments