Apple AppleShare 3.0 File Server Controls User Manual
Page 50

scCode Word input value: The server control code;
always SCGetUserMountInfo ($0014).
scFilesOpen Word result value: Returns the total number of
files the user has open on the volume or shared
folder.
scWriteableFiles Word result value: Returns the total number of
files the user has open for write access on the
volume or shared folder.
scUNRecID Longword input value: Specifies the user name
record ID (UNRecID).
scMounted Byte result value: Returns TRUE if the user has
this volume mounted.
scMountedAsOwner Byte result value: For real volumes only,
returns TRUE if the user has the whole volume
mounted by virtue of being a superuser.
Result Codes noErr 0 No error.
nsvErr -35 No such volume with this
reference number (scVRefNum).
paramErr -50 The server is not running, the
user name record ID (scUNRecID)
is invalid, or the volume
reference number (scVRefNum) is
out of range.
SCGetUserNameRec
SCGetUserNameRec retrieves statistics on a connected user, and can be used to
enumerate all connected users.
Note This call is not supported by Macintosh File Sharing.
Parameter (uses userInfoPB variant of SCParamBlockRec)
Block 16 ioResult word
18 scNamePtr long
26 scCode word
28 scPosition long
32 scUNRecID long
36 scUserID long
40 scLoginTime long
44 scLastUseTime long
48 scSocketNum long