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

 Syntax:
 bResult = DirUsrDel( dwUserID, lpszPath )

 Parameters:
 dwUserID The ID number of the user.
 lpszPath The full NetWare path of the directory.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 DirUsrDel() returns TRUE if user dwUserID 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 user was not deleted.

 Under NetWare 386 DirUsrDel() can also delete a user from a file's
 trustee assigment list.

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

 if ( DirUsrDel( UsrIDGet( "STEVE"), "SYS:ACC\WORK" )
    ? "User STEVE now has no access to SYS:ACC\WORK"
 endif

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

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

 Notes:
 Appropriate trustee access rights are required.

See Also: DirUserAdd() DirEffRtGet()

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