mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[USRMGR]
- Enable the call to NetUserAdd. This enables us to create new user accounts. A lot of stuff is still missing, so don't be surprised if something unexpected happens. It will be fixed soon. Happy new Year! svn path=/trunk/; revision=58072
This commit is contained in:
parent
f039f501b4
commit
319425e1d9
1 changed files with 6 additions and 8 deletions
|
@ -261,14 +261,10 @@ UserNew(HWND hwndDlg)
|
||||||
NewUserDlgProc,
|
NewUserDlgProc,
|
||||||
(LPARAM)&user) == IDOK)
|
(LPARAM)&user) == IDOK)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
status = NetUserAdd(NULL,
|
status = NetUserAdd(NULL,
|
||||||
3,
|
3,
|
||||||
(LPBYTE)&user,
|
(LPBYTE)&user,
|
||||||
NULL);
|
NULL);
|
||||||
#else
|
|
||||||
status = NERR_Success;
|
|
||||||
#endif
|
|
||||||
if (status != NERR_Success)
|
if (status != NERR_Success)
|
||||||
{
|
{
|
||||||
TCHAR szText[256];
|
TCHAR szText[256];
|
||||||
|
@ -434,11 +430,13 @@ UpdateUsersList(HWND hwndListView)
|
||||||
lvi.iImage = (pBuffer[i].usri20_flags & UF_ACCOUNTDISABLE) ? 1 : 0;
|
lvi.iImage = (pBuffer[i].usri20_flags & UF_ACCOUNTDISABLE) ? 1 : 0;
|
||||||
iItem = ListView_InsertItem(hwndListView, &lvi);
|
iItem = ListView_InsertItem(hwndListView, &lvi);
|
||||||
|
|
||||||
ListView_SetItemText(hwndListView, iItem, 1,
|
if (pBuffer[i].usri20_full_name != NULL)
|
||||||
pBuffer[i].usri20_full_name);
|
ListView_SetItemText(hwndListView, iItem, 1,
|
||||||
|
pBuffer[i].usri20_full_name);
|
||||||
|
|
||||||
ListView_SetItemText(hwndListView, iItem, 2,
|
if (pBuffer[i].usri20_comment != NULL)
|
||||||
pBuffer[i].usri20_comment);
|
ListView_SetItemText(hwndListView, iItem, 2,
|
||||||
|
pBuffer[i].usri20_comment);
|
||||||
}
|
}
|
||||||
|
|
||||||
NetApiBufferFree(pBuffer);
|
NetApiBufferFree(pBuffer);
|
||||||
|
|
Loading…
Reference in a new issue