beautypg.com

Apple AppleShare 3.0 File Server Controls User Manual

Page 57

background image

Fields ioResult Word result value: Result code.

scNamePtr Longword input pointer: Points to the filename.

scVRefNum Word input value: The volume specification.

scCode Word input value: The server control code; always

SCSetCopyProtect ($0010).

scDirID Longword input value: The parent directory ID.

Result Codes noErr 0 No error.

paramErr -50 The server is not running.

SCSetCopyProtect may also return errors returned by the PBGetCatInfo and

PBSetCatInfo routines.

SCSetSetupInfo

SCSetSetupInfo sets the server setup information. All changes take effect

immediately except those affecting the Volume Info window and the Connected

Users window. Specifically, changes to the following four fields of the setup

information record (SetupInfoRec) do not take effect until the next time the

AppleShare File Server application starts up:

- SIVolInfoLocation: Point; { location of Volume Info window }

- SIVolInfoVisible: Boolean; { is Volume Info window visible? }

- SIUserInfoLocation: Point; { location of Connected Users window }

- SIUserInfoVisible: Boolean; { is Connected Users window visible? }

The setup information record (SetupInfoRec) is defined in the server control

calls interface file. (Appendix B contains a listing of the interface file.

SetupInfoRec appears in the "Server Control Data Types" section.)

Parameter (uses setupPB variant of SCParamBlockRec)

Block 16 ioResult word

18 scSetupPtr long

26 scCode word

Fields ioResult Word result value: Result code.

scSetupPtr Longword input pointer: Points to a valid

pre-allocated server setup information

record (SetupInfoRec).

scCode Word input value: The server control

code; always SCSetSetupInfo ($0008).

Result Codes noErr 0 No error.

paramErr -50 The server is not running,