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> dirobjdel()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirObjDel()
------------------------------------------------------------------------------
 Purpose:
 Delete an object from a directory's trustee list.

 Syntax:
 bResult = DirObjDel( 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).

 Description:
 DirObjDel() 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 DirObjDel() 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 ( DirObjDel( 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 ( DirObjDel( 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: DirObjAdd() DirEffRtGet()

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