Apple Mac Server OS X Manual de usuario Pagina 42

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 44
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 41
1 2 ... 37 38 39 40 41 42 43 44

Comentarios a estos manuales

Sin comentarios