Apple AppleShare 3.0 File Server Controls User Manual
Page 59

range, or an unknown bit is
set in scFlags.
SCSleepServer
SCSleepServer shuts down the file server temporarily. This call has the same
parameters as SCShutDown except that once the server has shut down, the
AppleShare File Server application does not quit, and the server can be
restarted by means of the SCWakeServer call (assuming that no SCShutdown call
is made while the server is asleep). SCSleepServer fails if the server is
starting up.
Note This call is not supported by Macintosh File Sharing.
Parameter (uses disconnectPB variant of SCParamBlockRec)
Block 16 ioResult word
26 scCode word
28 scNumMinutes word
30 scFlags word
32 scMessagePtr long
Fields ioResult Word result value: Result code.
scCode Word input value: The server control
code; always SCSleepServer ($0016).
scNumMinutes Word input value: The number of minutes
until server shutdown, in the range 0-
4094.
scFlags Word input value: Shutdown flag, as
follows:
bUNRFSendMsg The message pointed to by scMessagePtr
should accompany the disconnect.
scMessagePtr Longword input value: A pointer to a
Str199 containing the message sent to the
workstations.
Result Codes noErr 0 No error.
AlreadyShuttingDown -1 The server is already
shutting down.
AlreadyDisconnecting -2 The server is already
disconnecting.
paramErr -50 The server is not
running,scNumMinutes is
out of range, or an
unknown bit is set in
scFlags.