mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[USRMGR]
Enable call to NetUserSetInfo. Now we can rename user accounts. svn path=/trunk/; revision=59216
This commit is contained in:
parent
939098c7f7
commit
d51f1d5cd8
1 changed files with 2 additions and 6 deletions
|
@ -492,7 +492,7 @@ OnEndLabelEdit(LPNMLVDISPINFO pnmv)
|
|||
{
|
||||
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 @@ OnEndLabelEdit(LPNMLVDISPINFO pnmv)
|
|||
return FALSE;
|
||||
|
||||
/* Change the user name */
|
||||
//useri0.usri0_name = szNewUserName;
|
||||
useri0.usri0_name = szNewUserName;
|
||||
|
||||
#if 0
|
||||
status = NetUserSetInfo(NULL, szOldUserName, 0, (LPBYTE)&useri0, NULL);
|
||||
#else
|
||||
status = NERR_Success;
|
||||
#endif
|
||||
if (status != NERR_Success)
|
||||
{
|
||||
TCHAR szText[256];
|
||||
|
|
Loading…
Reference in a new issue