Apple AppleShare 3.0 File Server Controls Instrukcja Użytkownika Strona 27

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 79
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 78 79

Komentarze do niniejszej Instrukcji

Brak uwag