Author: ekohl
Date: Fri Jun 14 23:19:24 2013
New Revision: 59216
URL:
http://svn.reactos.org/svn/reactos?rev=59216&view=rev
Log:
[USRMGR]
Enable call to NetUserSetInfo. Now we can rename user accounts.
Modified:
trunk/reactos/dll/cpl/usrmgr/users.c
Modified: trunk/reactos/dll/cpl/usrmgr/users.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/usrmgr/users.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/usrmgr/users.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/usrmgr/users.c [iso-8859-1] Fri Jun 14 23:19:24 2013
@@ -492,7 +492,7 @@
{
TCHAR szOldUserName[UNLEN];
TCHAR szNewUserName[UNLEN];
- //USER_INFO_0 useri0;
+ USER_INFO_0 useri0;
NET_API_STATUS status;
/* Leave, if there is no valid listview item */
@@ -521,13 +521,9 @@
return FALSE;
/* Change the user name */
- //useri0.usri0_name = szNewUserName;
-
-#if 0
+ useri0.usri0_name = szNewUserName;
+
status = NetUserSetInfo(NULL, szOldUserName, 0, (LPBYTE)&useri0, NULL);
-#else
- status = NERR_Success;
-#endif
if (status != NERR_Success)
{
TCHAR szText[256];