Apple Mac Server OS X Instrukcja Użytkownika Strona 42

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 44
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 41
dirStatus = dsOpenRecord( nodeRef, recType, recName, &recRef );
if ( dirStatus == eDSNoErr )
{
dirStatus = dsDeleteRecord( recRef );
if (dirStatus != eDSNoErr)
{
// The record was not deleted, so close it.
dirStatus = dsCloseRecord( recRef );
}
recRef = NULL;
}
dsDataNodeDeAllocate( gDirRef, recType );
recType = NULL;
}
dsDataNodeDeAllocate( gDirRef, recName );
recName = NULL;
}
} // DeleteRecord
Note that for this example to work, it would have to be run by a root process on the local NetInfo domain,
or by a user process that has called dsDoDirNodeAuth with the inDirNodeAuthOnlyFlag parameter set
to FALSE to get permission to make this change.
42
Deleting a Record
2007-01-08 | © 2007 Apple Inc. All Rights Reserved.
CHAPTER 3
Working with Records
Przeglądanie stron 41
1 2 ... 37 38 39 40 41 42 43 44

Komentarze do niniejszej Instrukcji

Brak uwag