Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> dirobjectdelete()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirObjectDelete()
------------------------------------------------------------------------------
 Purpose:
 Delete an object from a directory's trustee list.

 Syntax:
 bResult = DirObjectDelete( dwObjID, lpszPath )

 Parameters:
 dwObjID  The ID number of the object.
 lpszPath The full NetWare path of the directory.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 DirObjDel()

 Description:
 DirObjectDelete() returns TRUE if the object specified by ID number
 dwObjID was successfully deleted from the trustee list of the specified
 network directory. lpszPath must be the full NetWare path of the
 directory, including the volume name.

 Returns FALSE if an error occurs and the object was not deleted. Under
 NetWare 386 DirObjectDelete() can also delete an object from a file's
 trustee assigment list.

 Example:
 // To delete the object STEVE from the list of trustees of the
 // network directory SYS:ACC\WORK:

 if ( DirObjectDelete( ObjIDGet( "STEVE", 1 ), "SYS:ACC\WORK" ) )
    ? "Object STEVE now has no access to SYS:ACC\WORK"
 endif

 // To delete user object KATIE from file SYS:DATA\WP.DOC's trustee
 // assignment list, under NetWare 386:
 // This only works under NetWare 386

 if ( DirObjectDelete( ObjIDGet( "KATIE", 1 ), "SYS:DATA\WP.DOC" ) )
    ? "User KATIE now has no access to SYS:DATA\WP.DOC"
 endif

 Notes:
 Appropriate trustee access rights are required to use this
 function.

See Also: DirObjectAdd() DirEffectiveRightsGet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson