Apple AppleShare 3.0 File Server Controls User Manual
Page 52

scSEQEntryPtr Longword input pointer: Points to the tSEQEntry
server event object to be installed in the server
event handler queue.
scCode Word input value: The server control code; always
SCInstallServerEventProc ($000B).
Result Codes noErr 0 No error.
paramErr -50 The server is not running.
afpMiscErr -5014 There are already 15 server event
handlers (the maximum) in the server
event handler queue.
SCPollServer
SCPollServer provides information about the current status of the file
server.
Parameter (uses pollServerPB variant of SCParamBlockRec)
Block 16 ioResult word
26 scCode word
28 scServerState word
30 scDisconnectState word
32 scServerError word
34 scSecondsLeft long
Fields ioResult Word result value: Result code.
scCode Word input value: The server control code; always
SCPollServer ($0005).
scServerState Word result value: The state of the server, as
follows:
$0000 0-29 seconds before shutdown; Network Setup message
says "Less than a minute."
$0001 30-89 seconds before shutdown; Network Setup
message says "About a minute."
$0002-$0FFE (scServerState*60) - 30 to (scServerState*60) + 29
seconds before shutdown; Network Setup message
says "About scServerState minutes."
SCPSRunning Server running normally.
SCPSStartingUp Server is in the process of starting up.