- 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,
(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);