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> usrnamechange()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 UsrNameChange()
------------------------------------------------------------------------------
 Purpose:
 Change the name of a user.

 Syntax:
 bResult = UsrNameChange( lpszName, lpszNewName )

 Parameters:
 lpszName    The existing user name.
 lpszNewName The new user name.

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 UsrNameChange() returns TRUE if the login name of the user specified
 by lpszCurrentName is successfully changed to lpszNewName.

 Returns FALSE if not or if an error occurs.

 Example:
 // To change the login name of user WILLIAM to BILL:
 if ( UsrNameChange( "WILLIAM", "BILL" ) )
    ? "Login name WILLIAM renamed to BILL"
 endif

 Notes:
 This function requires Supervisor equivalence. If FALSE is
 returned, check NWErrorGet().

See Also: UsrNameGet() UsrIDGet() UsrFullNameGet() / UsrFullNameSet() FSUserAdd() FSUserDelete() FSObjectList()

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