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> dirarcidget() / dirarcidset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirArcIDGet() / DirArcIDSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set ID of the object that archived a directory.

 Syntax:
 dwObjID = DirArcIDGet( lpszPath )
 dwObjID = DirArcIDSet( lpszPath, dwNewID )

 Parameters:
 lpszPath The full NetWare path of the directory.
 dwNewID  The new bindery ID of the archiver.

 Returns:
 A numeric value (unsigned long int).

 Description:
 DirArcIDGet() returns the bindery object ID number of the last user
 that archived the directory specified by lpszPath. lpszPath must be the
 full path of the directory, including the volume name, e.g. SYS:DATA\WP,
 where WP is the directory in question.

 DirArcIDSet() sets the archive ID to the bindery object ID number
 dwNewID and returns the previous archive ID.

 Returns NOVERRLONG if an error occurs.

 Example:
 // To return the name of the last user to archive the
 // directory SYS:DATA\WP:
 lpszCurrName = UsrNameGet( DirArcIDGet( "SYS:DATA\WP" ) )
 if ( !empty( lpszCurrName ) )
    ? "The last user to archive directory SYS:DATA\WP was "
    ?? lpszCurrName
 endif
 // To change the last archiver ID of SYS:DATA\WP to KATIE's ID:
 dwOldID = DirArcIDSet( "SYS:DATA\WP", UsrIDGet("KATIE") )
 dwNewID = DirArcIDGet( "SYS:DATA\WP" )
 lpszNewName = UsrNameGet( dwNewID )
 if ( !empty( lpszNewName ) )
    ? "The last archiver of directory SYS:DATA\WP is now ",lpszNewName
 endif

 Notes:
 These functions only work with NetWare 386 and appropriate trustee
 access rights are required.

 When changing the last archiver ID make sure the new ID is a valid bindery
 ID number.

See Also: DirOwnIDGet() / DirOwnIDSet()

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