Apple AppleShare 3.0 File Server Controls User Manual
Page 44

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, an unknown bit is
set in scFlags, or a
UNRecID is invalid.
SCDisconnectVolUsers
SCDisconnectVolUsers disconnects any users who have any of the specified
volumes mounted. In addition, this call prevents any new users from mounting
the volumes. Calling SCCancelShutDown cancels the shutdown in progress and
re-enables the mounting of volumes.
Note This call is not supported by Macintosh File Sharing.
Parameter (uses disconnectPB variant of SCParamBlockRec)
Block 16 ioResult word
18 scDiscArrayPtr long
22 scArrayCount word
26 scCode word
28 scNumMinutes word
30 scFlags word
32 scMessagePtr long
Fields ioResult Word result value: Result code.
scDiscArrayPtr Longword input pointer: Points to the array
of longs containing the volume reference numbers
specifying the volumes affected.
scArrayCount Word input value: The number of elements in
the array of volume reference numbers.
scCode Word input value: The server control code;
always SCDisconnectVolUsers ($0012).
scNumMinutes Word input value: The number of minutes until
the users are disconnected.
scFlags Word input value: Shutdown flag, as follows:
bUNRFSendMsg The message pointed to by scMessagePtr should
accompany the disconnect.