Apple AppleShare 3.0 File Server Controls User Manual
Page 13

MySCCancelShutDown := SyncServerDispatch(@scPB);
END;
SCSleepServer
The following function calls SCSleepServer to temporarily shut down the file
server ("put it to sleep"). You might want to put a file server to sleep
before switching networks or temporarily turning off AppleTalk.
- Note This call is not supported by Macintosh File Sharing.
FUNCTION MySCSleepServer (NumMinutes: Integer;
Flags: Integer;
MessagePtr: StringPtr): OSErr;
VAR
scPB: SCParamBlockRec;
BEGIN
scPB.disconnectPB.scCode := SCSleepServer;
scPB.disconnectPB.scNumMinutes := NumMinutes;
scPB.disconnectPB.scFlags := Flags;
scPB.disconnectPB.scMessagePtr := MessagePtr;
MySCSleepServer := SyncServerDispatch(@scPB);
END;
SCWakeServer
The following function calls SCWakeServer to reactivate an AppleShare File
Server 3.0 that has been temporarily shut down (that is, a file server that
is "sleeping").
Note This call is not supported by Macintosh File Sharing.
FUNCTION MySCWakeServer: OSErr;
VAR
scPB: SCParamBlockRec;
BEGIN
scPB.startPB.scCode := SCWakeServer;
MySCWakeServer := SyncServerDispatch(@scPB);
END;