From 97cd0c3833c02b6e937ad63ea7f51e82a0bffbbd Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 16 Jun 2013 21:26:04 +0000 Subject: [PATCH] [USRMGR] Enable the calls to NetUserSetInfo. We are now able to change user properties. svn path=/trunk/; revision=59239 --- reactos/dll/cpl/usrmgr/userprops.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/reactos/dll/cpl/usrmgr/userprops.c b/reactos/dll/cpl/usrmgr/userprops.c index a9cd031f02a..cf21df21ec2 100644 --- a/reactos/dll/cpl/usrmgr/userprops.c +++ b/reactos/dll/cpl/usrmgr/userprops.c @@ -92,9 +92,7 @@ SetUserProfileData(HWND hwndDlg, LPTSTR pszHomeDir = NULL; LPTSTR pszHomeDrive = NULL; NET_API_STATUS status; -#if 0 DWORD dwIndex; -#endif INT nLength; INT nIndex; @@ -166,15 +164,11 @@ SetUserProfileData(HWND hwndDlg, } } -#if 0 status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex); if (status != NERR_Success) { DebugPrintf(_T("Status: %lu Index: %lu"), status, dwIndex); } -#else - status = NERR_Success; -#endif if (pszProfilePath) HeapFree(GetProcessHeap(), 0, pszProfilePath); @@ -752,9 +746,7 @@ SetUserGeneralData(HWND hwndDlg, LPTSTR pszFullName = NULL; LPTSTR pszComment = NULL; NET_API_STATUS status; -#if 0 DWORD dwIndex; -#endif INT nLength; NetUserGetInfo(NULL, pUserData->szUserName, 3, (LPBYTE*)&pUserInfo); @@ -789,15 +781,11 @@ SetUserGeneralData(HWND hwndDlg, pUserInfo->usri3_comment = pszComment; } -#if 0 status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex); if (status != NERR_Success) { DebugPrintf(_T("Status: %lu Index: %lu"), status, dwIndex); } -#else - status = NERR_Success; -#endif if (pszFullName) HeapFree(GetProcessHeap(), 0, pszFullName);