mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
[USRMGR]
Enable the calls to NetUserSetInfo. We are now able to change user properties. svn path=/trunk/; revision=59239
This commit is contained in:
parent
bfe3f61696
commit
97cd0c3833
|
@ -92,9 +92,7 @@ SetUserProfileData(HWND hwndDlg,
|
||||||
LPTSTR pszHomeDir = NULL;
|
LPTSTR pszHomeDir = NULL;
|
||||||
LPTSTR pszHomeDrive = NULL;
|
LPTSTR pszHomeDrive = NULL;
|
||||||
NET_API_STATUS status;
|
NET_API_STATUS status;
|
||||||
#if 0
|
|
||||||
DWORD dwIndex;
|
DWORD dwIndex;
|
||||||
#endif
|
|
||||||
INT nLength;
|
INT nLength;
|
||||||
INT nIndex;
|
INT nIndex;
|
||||||
|
|
||||||
|
@ -166,15 +164,11 @@ SetUserProfileData(HWND hwndDlg,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex);
|
status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex);
|
||||||
if (status != NERR_Success)
|
if (status != NERR_Success)
|
||||||
{
|
{
|
||||||
DebugPrintf(_T("Status: %lu Index: %lu"), status, dwIndex);
|
DebugPrintf(_T("Status: %lu Index: %lu"), status, dwIndex);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
status = NERR_Success;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (pszProfilePath)
|
if (pszProfilePath)
|
||||||
HeapFree(GetProcessHeap(), 0, pszProfilePath);
|
HeapFree(GetProcessHeap(), 0, pszProfilePath);
|
||||||
|
@ -752,9 +746,7 @@ SetUserGeneralData(HWND hwndDlg,
|
||||||
LPTSTR pszFullName = NULL;
|
LPTSTR pszFullName = NULL;
|
||||||
LPTSTR pszComment = NULL;
|
LPTSTR pszComment = NULL;
|
||||||
NET_API_STATUS status;
|
NET_API_STATUS status;
|
||||||
#if 0
|
|
||||||
DWORD dwIndex;
|
DWORD dwIndex;
|
||||||
#endif
|
|
||||||
INT nLength;
|
INT nLength;
|
||||||
|
|
||||||
NetUserGetInfo(NULL, pUserData->szUserName, 3, (LPBYTE*)&pUserInfo);
|
NetUserGetInfo(NULL, pUserData->szUserName, 3, (LPBYTE*)&pUserInfo);
|
||||||
|
@ -789,15 +781,11 @@ SetUserGeneralData(HWND hwndDlg,
|
||||||
pUserInfo->usri3_comment = pszComment;
|
pUserInfo->usri3_comment = pszComment;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex);
|
status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex);
|
||||||
if (status != NERR_Success)
|
if (status != NERR_Success)
|
||||||
{
|
{
|
||||||
DebugPrintf(_T("Status: %lu Index: %lu"), status, dwIndex);
|
DebugPrintf(_T("Status: %lu Index: %lu"), status, dwIndex);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
status = NERR_Success;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (pszFullName)
|
if (pszFullName)
|
||||||
HeapFree(GetProcessHeap(), 0, pszFullName);
|
HeapFree(GetProcessHeap(), 0, pszFullName);
|
||||||
|
|
Loading…
Reference in a new issue