- 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:
Eric Kohl 2012-12-31 22:04:05 +00:00
parent f039f501b4
commit 319425e1d9

View file

@ -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);