43 if (uLen1 != uLen2 ||
_tcscmp(szPassword1, szPassword2) != 0)
46 TEXT(
"The passwords you entered are not the same!"),
150 if (
user.usri1003_password)
342 lvi.pszText =
user.usri3_name;
348 user.usri3_full_name);
357 if (
user.usri3_full_name)
360 if (
user.usri3_comment)
363 if (
user.usri3_password)
407 wsprintf(szText,
TEXT(
"Do you really want to delete the user \"%s\"?"), szUserName);
467 DWORD resume_handle = 0;
477 &totalentries, &resume_handle);
481 for (
i = 0;
i < entriesread;
i++)
483 memset(&lvi, 0x00,
sizeof(lvi));
485 lvi.pszText =
pBuffer[
i].usri20_name;
559 if (pnmv->item.iItem == -1)
569 if (pnmv->item.pszText ==
NULL)
573 lstrcpy(szNewUserName, pnmv->item.pszText);
576 if (
lstrcmp(szOldUserName, szNewUserName) == 0)
619 if (lpnmlv->
iItem != -1)
625 if (uItem != (
UINT)-1)
671 memset(&lvi, 0x00,
sizeof(lvi));
679 pUserInfo->usri2_full_name);
682 pUserInfo->usri2_comment);
#define IDC_USER_NEW_DISABLED
#define ListView_GetNextItem(hwnd, i, flags)
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
#define IDD_CHANGE_PASSWORD
#define LVN_BEGINLABELEDIT
BOOL UserProperties(HWND hwndDlg)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
struct _USER_DATA USER_DATA
#define ListView_SetItem(hwnd, pitem)
BOOL WINAPI DestroyIcon(_In_ HICON)
#define IDC_USERS_PROPERTIES
int _tcscmp(const _TCHAR *s1, const _TCHAR *s2)
#define UNREFERENCED_PARAMETER(P)
#define IDC_USER_NEW_DESCRIPTION
#define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_)
static BOOL OnEndLabelEdit(LPNMLVDISPINFO pnmv)
#define LVS_EX_FULLROWSELECT
HWND WINAPI SetFocus(_In_opt_ HWND)
#define IDC_USER_NEW_FORCE_CHANGE
static BOOL UserDelete(HWND hwndDlg)
#define SendDlgItemMessage
#define ListView_InsertItem(hwnd, pitem)
INT_PTR CALLBACK UsersPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
static VOID SetUsersListColumns(HWND hwndListView)
static BOOL OnNotify(HWND hwndDlg, PUSER_DATA pUserData, NMHDR *phdr)
static VOID UserRename(HWND hwndDlg)
#define USER_MAXSTORAGE_UNLIMITED
#define UF_PASSWD_CANT_CHANGE
#define ListView_InsertColumn(hwnd, iCol, pcol)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
static VOID UpdateUsersList(HWND hwndListView)
#define ListView_GetEditControl(hwndLV)
NET_API_STATUS WINAPI NetUserAdd(LPCWSTR servername, DWORD level, LPBYTE bufptr, LPDWORD parm_err)
#define ListView_SetImageList(hwnd, himl, iImageList)
#define IDC_USER_NEW_FULL_NAME
#define ListView_DeleteItem(hwnd, i)
NET_API_STATUS WINAPI NetUserGetInfo(LPCWSTR servername, LPCWSTR username, DWORD level, LPBYTE *bufptr)
#define IDC_USER_NEW_PASSWORD1
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDC_USER_NEW_CANNOT_CHANGE
UINT WINAPI GetMenuDefaultItem(_In_ HMENU hMenu, _In_ UINT fByPos, _In_ UINT gmdiFlags)
#define ListView_SetExtendedListViewStyle(hwndLV, dw)
INT WINAPI ImageList_AddIcon(HIMAGELIST himl, HICON hIcon)
#define IDC_USER_NEW_NAME
#define IDC_USER_NEW_NEVER_EXPIRES
NET_API_STATUS WINAPI NetUserDel(LPCWSTR servername, LPCWSTR username)
static BOOL CheckPasswords(HWND hwndDlg, INT nIdDlgItem1, INT nIdDlgItem2)
static VOID UpdateNewUserOptions(HWND hwndDlg, PUSER_INFO_3 userInfo, BOOL bInit)
#define UF_DONT_EXPIRE_PASSWD
#define IDM_USER_CHANGE_PASSWORD
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
static VOID UpdateUserProperties(HWND hwndDlg)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
NET_API_STATUS WINAPI NetUserSetInfo(LPCWSTR servername, LPCWSTR username, DWORD level, LPBYTE buf, LPDWORD parm_err)
NET_API_STATUS WINAPI NetApiBufferFree(LPVOID Buffer)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct tagNMLISTVIEW * LPNMLISTVIEW
#define UF_ACCOUNTDISABLE
struct _USER_INFO_3 * PUSER_INFO_3
#define DOMAIN_GROUP_RID_USERS
#define FILTER_NORMAL_ACCOUNT
DWORD usri3_password_expired
static VOID UserChangePassword(HWND hwndDlg)
BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL CheckAccountName(HWND hwndDlg, INT nIdDlgItem, LPTSTR lpAccountName)
#define IDC_USER_NEW_PASSWORD2
static VOID OnInitDialog(HWND hwndDlg)
#define IDM_USER_PROPERTIES
static BOOL OnBeginLabelEdit(LPNMLVDISPINFO pnmv)
static VOID UserNew(HWND hwndDlg)
GLenum GLenum GLvoid GLvoid * column
INT_PTR CALLBACK ChangePasswordDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define IDC_EDIT_PASSWORD1
static SERVICE_STATUS status
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
struct _USER_DATA * PUSER_DATA
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
struct _USER_INFO_1003 * PUSER_INFO_1003
void user(int argc, const char *argv[])
#define HeapFree(x, y, z)
#define IDC_EDIT_PASSWORD2
#define ListView_EditLabel(hwndLV, i)
NET_API_STATUS WINAPI NetUserEnum(LPCWSTR servername, DWORD level, DWORD filter, LPBYTE *bufptr, DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, LPDWORD resume_handle)
INT_PTR CALLBACK NewUserDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)