beautypg.com

Apple AppleShare 3.0 File Server Controls User Manual

Page 58

background image

scSetupPtr is NIL, or SetupInfoRec

contains a value that is out

of range.

SCShutDown

SCShutDown shuts down the file server and sends a shutdown attention message

to all connected users.

Note Macintosh File Sharing does not support the shutdown attention message.

!! IMPORTANT The AppleShare File Server application automatically quits if

the AppleShare File Server 3.0 is shut down by the SCShutDown call. !!

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 be SCShutDown ($0002).

scNumMinutes Word input value: The number of minutes

4094.

scFlags Word input value: Shutdown flag, as

follows:

bUNRFSendMsg The message pointed to by scMessagePtr

should accompany the disconnect.

Note This feature is not supported by Macintosh File Sharing.

scMessagePtr Longword input value: A pointer to a

Str199 containing the message sent to the

workstations.

Note This feature is not supported by Macintosh File Sharing.

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