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

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

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

 Description:
 DirUserDelete() 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 DirUserDelete() 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 ( DirUserDelete( 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 ( DirUserDelete( 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() DirEffectiveRightsGet()

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