Apple AppleShare 3.0 File Server Controls Uživatelský manuál Strana 27

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 79
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 26
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.
Zobrazit stránku 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 78 79

Komentáře k této Příručce

Žádné komentáře