Author: ekohl Date: Sun Jun 16 21:26:04 2013 New Revision: 59239
URL: http://svn.reactos.org/svn/reactos?rev=59239&view=rev Log: [USRMGR] Enable the calls to NetUserSetInfo. We are now able to change user properties.
Modified: trunk/reactos/dll/cpl/usrmgr/userprops.c
Modified: trunk/reactos/dll/cpl/usrmgr/userprops.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/usrmgr/userprops.c?... ============================================================================== --- trunk/reactos/dll/cpl/usrmgr/userprops.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/usrmgr/userprops.c [iso-8859-1] Sun Jun 16 21:26:04 2013 @@ -92,9 +92,7 @@ LPTSTR pszHomeDir = NULL; LPTSTR pszHomeDrive = NULL; NET_API_STATUS status; -#if 0 DWORD dwIndex; -#endif INT nLength; INT nIndex;
@@ -166,15 +164,11 @@ } }
-#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 @@ 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 @@ 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);