beautypg.com

Apple AppleShare 3.0 File Server Controls User Manual

Page 51

background image

Fields ioResult Word result value: Result code.

scNamePtr Longword result pointer: Points to a Str31

where the user name will be copied, or must

contain NIL.

scCode Word input value: The server control code;

always SCGetUserNameRec ($0013).

scPosition Longword input/result value: Specifies the

position in the list of users. Set scPosition

to zero to retrieve the first user. Use the

value returned in scPosition to retrieve the

next user.

scUNRecID Longword result value: Returns the user name

record ID (UNRecID).

scUserID Longword result value: Returns the user ID

(UserID).

scLoginTime Longword result value: Returns the time at

which the user logged in.

scLastUseTime Longword result value: Returns the time at

which the user last accessed the server.

scSocketNum Longword result value: Returns the AppleTalk

network address this user is connected from.

The value is returned in an AddrBlock record.

Result Codes noErr 0 No error.

fnfErr -43 There are no more users to

enumerate.

paramErr -50 The server is not running, a

UNRecID is invalid, or scPosition

is out of range.

SERVER CONTROL CALL REFERENCE

SCInstallServerEventProc

SCInstallServerEventProc installs a server event object in the server event

handler queue.

Note This call is not supported by Macintosh File Sharing.

Parameter (uses serverEventPB variant of SCParamBlockRec)

Block 16 ioResult word

18 scSEQEntryPtr long

26 scCode word

Fields ioResult Word result value: Result code.