mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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,
|
||||
(LPARAM)&user) == IDOK)
|
||||
{
|
||||
#if 0
|
||||
status = NetUserAdd(NULL,
|
||||
3,
|
||||
(LPBYTE)&user,
|
||||
NULL);
|
||||
#else
|
||||
status = NERR_Success;
|
||||
#endif
|
||||
if (status != NERR_Success)
|
||||
{
|
||||
TCHAR szText[256];
|
||||
|
@ -434,11 +430,13 @@ UpdateUsersList(HWND hwndListView)
|
|||
lvi.iImage = (pBuffer[i].usri20_flags & UF_ACCOUNTDISABLE) ? 1 : 0;
|
||||
iItem = ListView_InsertItem(hwndListView, &lvi);
|
||||
|
||||
ListView_SetItemText(hwndListView, iItem, 1,
|
||||
pBuffer[i].usri20_full_name);
|
||||
if (pBuffer[i].usri20_full_name != NULL)
|
||||
ListView_SetItemText(hwndListView, iItem, 1,
|
||||
pBuffer[i].usri20_full_name);
|
||||
|
||||
ListView_SetItemText(hwndListView, iItem, 2,
|
||||
pBuffer[i].usri20_comment);
|
||||
if (pBuffer[i].usri20_comment != NULL)
|
||||
ListView_SetItemText(hwndListView, iItem, 2,
|
||||
pBuffer[i].usri20_comment);
|
||||
}
|
||||
|
||||
NetApiBufferFree(pBuffer);
|
||||
|
|
Loading…
Reference in a new issue