beautypg.com

Apple AppleShare 3.0 File Server Controls User Manual

Page 46

background image

negative, then an empty Pascal string ('') is

returned.

scVRefNum Word result value: Returns the reference

number (vRefNum) of the shared folder.

scLogins Word result value: Returns the number of

people who have mounted this folder. (For real

volumes, this parameter returns the total

number of people who have mounted either the

whole volume or any of its shared folders.)

Note This value is not returned under Macintosh File Sharing.

scCode Word input value: The server control code;

always SCGetExpFldr ($0006).

scIndex Word input value: The index into the list of

shared folders. Use positive values to get

shared folders (what non-superusers see). Use

negative values to get shared volumes (what

superusers see). Use SCGetSetupInfo to find

the usable range for scIndex. scIndex must be

in the range -MaxVolumes to MaxExpFolder. An

scIndex of 0 is undefined.

scDirID Longword result value: Returns the directory

ID (dirID) of the shared folder.

Result Codes noErr 0 No error.

fnfErr -43 There is no shared

folder at that index

position.

paramErr -50 The server is not

running, or scIndex is

either 0 or out of

range.

afpObjectNotFound -5018 scIndex is either 0 or

out of range under

Macintosh File Sharing.

SCGetServerEventProc

SCGetServerEventProc returns the head of 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