beautypg.com

Apple AppleShare 3.0 File Server Controls User Manual

Page 47

background image

Fields ioResult Word result value: Result code.

scSEQEntryPtr Longword result pointer: Returns a

pointer to an operating system queue

header (QHdr) of the server event handler

queue. The first server event handler in

the handler queue, if any, is at

QHdrPtr(scSEQEntryPtr)^.qhead.

scCode Word input value: The server control

code;always SCGetServerEventProc ($000D).

Result Codes noErr 0 No error.

paramErr -50 The server is not running.

SCGetServerStatus

SCGetServerStatus returns server status information.

Note This call is not supported by Macintosh File Sharing.

Parameter (uses statusPB variant of SCParamBlockRec)

Block 16 ioResult word

18 scNamePtr long

26 scCode word

28 scServerFlags word

30 scNumSessions word

32 scUserListModDate long

36 scActivity word

38 scVolListModDate long

!! WARNING Do not assume that scUserListModDate or scVolListModDate will be

in any particular time base. The formats of these parameters are subject to

change. Use them only as an indication that the user list or volume list has

changed. !!

Fields ioResult Word result value: Result code.

scNamePtr Longword input pointer: Points to a Str31

where the current server name (the name

workstations will see) will be returned,

or must contain NIL.

scCode Word input value: The server control

code; always SCGetServerStatus ($000A).

scServerFlags Word result value: Server flag, as

follows: