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

 Syntax:
 bResult = UsrNmeChg( lpszName, lpszNewName )

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

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 UsrNmeChg() 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 ( UsrNmeChg( "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() UsrFulNmeGet() / UsrFulNmeSet() FSUsrAdd() FSUsrDel() FSObjLst()

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