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

 Syntax:
 bResult = DirGrpDel( dwGroupID, lpszPath )

 Parameters:
 dwGroupID The ID number of the group.
 lpszPath  The full NetWare path of the directory.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 DirGrpDel() returns TRUE if the group specified by ID number dwGroupID
 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 group was not deleted. Under
 NetWare 386 DirGrpDel() can also delete a group from a file's trustee
 assignment list.

 Example:
 // To delete the group EVERYONE from the list of trustees of
 // the network directory SYS:ACC\WORK:
 if ( DirGrpDel( GrpIDGet( "EVERYONE"),"SYS:ACC\WORK" ))
    ? "Group EVERYONE no longer has access to SYS:ACC\WORK"
 endif
 // To delete group ADMIN from file SYS:DATA\WP.DOC's trustee assignment
 // list, under NetWare 386.
 if ( DirGrpDel( GrpIDGet("ADMIN"),"SYS:DATA\WP.DOC" ) )
    ? "Group ADMIN no longer has access to SYS:DATA\WP.DOC"
 endif

 Notes:
 To use this function in a CA-Clipper Summer `87 program it is
 necessary to compile and link in NOVLIB87.PRG.

 Appropriate trustee access rights are required.

See Also: DirGrpAdd() DirEffRtGet()

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