beautypg.com

Apple AppleShare 3.0 File Server Controls User Manual

Page 56

background image

!! WARNING Macintosh File Sharing does not return a valid value for

scServerVersion if the server is not running. !!

Parameter (uses versionPB variant of SCParamBlockRec)

Block 16 ioResult word

18 scExtNamePtr long

26 scCode word

28 scServerType word

30 scServerVersion word

Fields ioResult Word result value: Result code.

scExtNamePtr Longword result pointer: Points to a Str31 where the

server application name (the name of the activeINIT)

will be returned, or must contain NIL.

scCode Word input value: The server control code; always

SCServerVersion ($000E).

scServerType Word result value: Returns the server type, as

follows:

$0000 Macintosh File Sharing

$0001 AppleShare File Server

scServerVersion Word result value: Returns the server version, as

follows:

$0030 File Sharing Extension, version 7.0.2

Result Codes noErr 0 No error.

SCSetCopyProtect

SCSetCopyProtect is called by the AppleShare Admin application or some other

program executing locally on the server computer when the program wants to

set the copy-protect status of a file.

Note This call is not supported by Macintosh File Sharing.

Parameter (uses standardPB variant of SCParamBlockRec)

Block 16 ioResult word

18 scNamePtr long

22 scVRefNum word

26 scCode word

30 scDirID long