Apple AppleShare 3.0 File Server Controls User Manual
Page 27

VAR
scPB: SCParamBlockRec;
BEGIN
scPB.standardPB.scNamePtr := NamePtr;
scPB.standardPB.scVRefNum := VRefNum;
scPB.standardPB.scCode := SCSetCopyProtect;
scPB.standardPB.scDirID := DirID;
MySCSetCopyProtect := SyncServerDispatch(@scPB);
END;
SCClrCopyProtect
The following function calls SCClrCoyProtect to clear the copy-protect status
of a file.
Note This call is not supported by Macintosh File Sharing.
FUNCTION MySCClrCopyProtect (NamePtr: StringPtr;
VRefNum: Integer;
DirID: LongInt): OSErr;
VAR
scPB: SCParamBlockRec;
BEGIN
scPB.standardPB.scNamePtr := NamePtr;
scPB.standardPB.scVRefNum := VRefNum;
scPB.standardPB.scCode := SCClrCopyProtect;
scPB.standardPB.scDirID := DirID;
MySCClrCopyProtect := SyncServerDispatch(@scPB);
END;
Using server event handlers
This section describes the server control calls that you use with server
event handlers. Server event handlers are discussed in Chapter 2.
SCInstallServerEventProc
The following function calls SCInstallServerEventProc to install a server
event handler.