Go to the source code of this file.
|
static BOOL | CheckPasswords (HWND hwndDlg, INT nIdDlgItem1, INT nIdDlgItem2) |
|
INT_PTR CALLBACK | ChangePasswordDlgProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
static VOID | UserChangePassword (HWND hwndDlg) |
|
static VOID | UpdateNewUserOptions (HWND hwndDlg, PUSER_INFO_3 userInfo, BOOL bInit) |
|
INT_PTR CALLBACK | NewUserDlgProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
static VOID | UserNew (HWND hwndDlg) |
|
static VOID | UserRename (HWND hwndDlg) |
|
static BOOL | UserDelete (HWND hwndDlg) |
|
static VOID | SetUsersListColumns (HWND hwndListView) |
|
static VOID | UpdateUsersList (HWND hwndListView) |
|
static VOID | OnInitDialog (HWND hwndDlg) |
|
static BOOL | OnBeginLabelEdit (LPNMLVDISPINFO pnmv) |
|
static BOOL | OnEndLabelEdit (LPNMLVDISPINFO pnmv) |
|
static BOOL | OnNotify (HWND hwndDlg, PUSER_DATA pUserData, NMHDR *phdr) |
|
static VOID | UpdateUserProperties (HWND hwndDlg) |
|
INT_PTR CALLBACK | UsersPageProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
◆ PUSER_DATA
◆ USER_DATA
◆ ChangePasswordDlgProc()
Definition at line 57 of file users.c.
61{
63
65
67
68 switch (uMsg)
69 {
73 break;
74
77 {
80 {
81
84
86 }
87 break;
88
91 break;
92 }
93 break;
94
95 default:
97 }
98
100}
#define IDC_EDIT_PASSWORD1
#define IDC_EDIT_PASSWORD2
struct _USER_INFO_1003 * PUSER_INFO_1003
#define UNREFERENCED_PARAMETER(P)
static BOOL CheckPasswords(HWND hwndDlg, INT nIdDlgItem1, INT nIdDlgItem2)
LPTSTR GetDlgItemTextAlloc(HWND hwndDlg, INT nDlgItem)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
Referenced by UserChangePassword().
◆ CheckPasswords()
static BOOL CheckPasswords |
( |
HWND |
hwndDlg, |
|
|
INT |
nIdDlgItem1, |
|
|
INT |
nIdDlgItem2 |
|
) |
| |
|
static |
◆ NewUserDlgProc()
Definition at line 179 of file users.c.
183{
186
188
190
191 switch (uMsg)
192 {
198 break;
199
202 {
205 {
208 }
209 break;
210
214 break;
215
219 break;
220
224 break;
225
228 break;
229
232 {
235 break;
236 }
237
239 {
242 break;
243 }
244
245
247
248
250
251
253
254
256
258 break;
259
262 break;
263 }
264 break;
265
266 default:
268 }
269
271}
BOOL CheckAccountName(HWND hwndDlg, INT nIdDlgItem, LPTSTR lpAccountName)
#define IDC_USER_NEW_FULL_NAME
#define IDC_USER_NEW_CANNOT_CHANGE
#define IDC_USER_NEW_DESCRIPTION
#define IDC_USER_NEW_NAME
#define IDC_USER_NEW_NEVER_EXPIRES
#define IDC_USER_NEW_PASSWORD2
#define IDC_USER_NEW_FORCE_CHANGE
#define IDC_USER_NEW_DISABLED
#define IDC_USER_NEW_PASSWORD1
#define UF_ACCOUNTDISABLE
#define UF_DONT_EXPIRE_PASSWD
#define UF_PASSWD_CANT_CHANGE
struct _USER_INFO_3 * PUSER_INFO_3
DWORD usri3_password_expired
static VOID UpdateNewUserOptions(HWND hwndDlg, PUSER_INFO_3 userInfo, BOOL bInit)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
#define SendDlgItemMessage
Referenced by UserNew().
◆ OnBeginLabelEdit()
Definition at line 502 of file users.c.
503{
505
509
511
513}
#define ListView_GetEditControl(hwndLV)
Referenced by OnNotify().
◆ OnEndLabelEdit()
Definition at line 517 of file users.c.
518{
523
524
525 if (pnmv->item.iItem == -1)
527
528
530 pnmv->item.iItem, 0,
531 szOldUserName,
533
534
535 if (pnmv->item.pszText ==
NULL)
537
538
539 lstrcpy(szNewUserName, pnmv->item.pszText);
540
541
542 if (
lstrcmp(szOldUserName, szNewUserName) == 0)
544
545
548
549
551
554 {
559 }
560
561
563 pnmv->item.iItem, 0,
564 szNewUserName);
565
567}
NET_API_STATUS WINAPI NetUserSetInfo(LPCWSTR servername, LPCWSTR username, DWORD level, LPBYTE buf, LPDWORD parm_err)
#define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_)
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
Referenced by OnNotify().
◆ OnInitDialog()
static VOID OnInitDialog |
( |
HWND |
hwndDlg | ) |
|
|
static |
Definition at line 475 of file users.c.
476{
480
481
488
490
492
494
496
498}
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
#define ListView_SetImageList(hwnd, himl, iImageList)
#define LVS_EX_FULLROWSELECT
#define ListView_SetExtendedListViewStyle(hwndLV, dw)
#define ImageList_AddIcon(himl, hicon)
static VOID SetUsersListColumns(HWND hwndListView)
static VOID UpdateUsersList(HWND hwndListView)
BOOL WINAPI DestroyIcon(_In_ HICON)
Referenced by UsersPageProc().
◆ OnNotify()
Definition at line 571 of file users.c.
572{
574
576 {
579 {
582 break;
583
585 if (lpnmlv->
iItem != -1)
586 {
588
591 if (uItem != (
UINT)-1)
593 }
594 break;
595
600 break;
601
604
607 }
608 break;
609 }
610
612}
#define LVN_BEGINLABELEDIT
struct tagNMLISTVIEW * LPNMLISTVIEW
static BOOL OnBeginLabelEdit(LPNMLVDISPINFO pnmv)
static BOOL OnEndLabelEdit(LPNMLVDISPINFO pnmv)
UINT WINAPI GetMenuDefaultItem(_In_ HMENU hMenu, _In_ UINT fByPos, _In_ UINT gmdiFlags)
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
Referenced by UsersPageProc().
◆ SetUsersListColumns()
static VOID SetUsersListColumns |
( |
HWND |
hwndListView | ) |
|
|
static |
Definition at line 395 of file users.c.
396{
400
402
411
417
423}
#define ListView_InsertColumn(hwnd, iCol, pcol)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
Referenced by OnInitDialog().
◆ UpdateNewUserOptions()
Definition at line 149 of file users.c.
152{
157
160
161 if (bInit)
162 {
165
168
171
174 }
175}
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
Referenced by NewUserDlgProc().
◆ UpdateUserProperties()
static VOID UpdateUserProperties |
( |
HWND |
hwndDlg | ) |
|
|
static |
Definition at line 616 of file users.c.
617{
623
626 if (iItem == -1)
627 return;
628
629
631 iItem, 0,
632 szUserName,
634
636
637 memset(&lvi, 0x00,
sizeof(lvi));
638 lvi.iItem = iItem;
639 lvi.iSubItem = 0;
643
646
649
651}
NET_API_STATUS WINAPI NetApiBufferFree(LPVOID Buffer)
NET_API_STATUS WINAPI NetUserGetInfo(LPCWSTR servername, LPCWSTR username, DWORD level, LPBYTE *bufptr)
#define ListView_GetNextItem(hwnd, i, flags)
#define ListView_SetItem(hwnd, pitem)
Referenced by UsersPageProc().
◆ UpdateUsersList()
static VOID UpdateUsersList |
( |
HWND |
hwndListView | ) |
|
|
static |
Definition at line 427 of file users.c.
428{
433 DWORD resume_handle = 0;
437
438 for (;;)
439 {
442 1024, &entriesread,
443 &totalentries, &resume_handle);
445 break;
446
447 for (
i = 0;
i < entriesread;
i++)
448 {
449 memset(&lvi, 0x00,
sizeof(lvi));
451 lvi.pszText =
pBuffer[
i].usri20_name;
452 lvi.state = 0;
455
459
463 }
464
466
467
469 break;
470 }
471}
NET_API_STATUS WINAPI NetUserEnum(LPCWSTR servername, DWORD level, DWORD filter, LPBYTE *bufptr, DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, LPDWORD resume_handle)
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
#define FILTER_NORMAL_ACCOUNT
#define ListView_InsertItem(hwnd, pitem)
Referenced by OnInitDialog().
◆ UserChangePassword()
static VOID UserChangePassword |
( |
HWND |
hwndDlg | ) |
|
|
static |
Definition at line 104 of file users.c.
105{
111
113
116 if (nItem == -1)
117 return;
118
119
121 nItem, 0,
122 szUserName,
124
127 hwndDlg,
130 {
132 szUserName,
133 1003,
137 {
141 }
142 }
143
145}
void user(int argc, const char *argv[])
#define IDD_CHANGE_PASSWORD
#define HeapFree(x, y, z)
INT_PTR CALLBACK ChangePasswordDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Referenced by UsersPageProc().
◆ UserDelete()
Definition at line 353 of file users.c.
354{
360
363 if (nItem == -1)
365
366
368 nItem, 0,
369 szUserName,
371
372
373 wsprintf(szText,
TEXT(
"Do you really want to delete the user \"%s\"?"), szUserName);
376
377
380 {
385 }
386
387
389
391}
NET_API_STATUS WINAPI NetUserDel(LPCWSTR servername, LPCWSTR username)
#define ListView_DeleteItem(hwnd, i)
Referenced by UsersPageProc().
◆ UserNew()
Definition at line 275 of file users.c.
276{
282
284
290
292
295 hwndDlg,
298 {
300 3,
304 {
308 return;
309 }
310
312
315 lvi.pszText =
user.usri3_name;
316 lvi.state = 0;
319
321 user.usri3_full_name);
322
325 }
326
331}
NET_API_STATUS WINAPI NetUserAdd(LPCWSTR servername, DWORD level, LPBYTE bufptr, LPDWORD parm_err)
#define USER_MAXSTORAGE_UNLIMITED
INT_PTR CALLBACK NewUserDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define DOMAIN_GROUP_RID_USERS
Referenced by UsersPageProc().
◆ UserRename()
Definition at line 335 of file users.c.
336{
339
342 return;
343
345 if (nItem != -1)
346 {
348 }
349}
#define ListView_EditLabel(hwndLV, i)
Referenced by UsersPageProc().
◆ UsersPageProc()
Definition at line 655 of file users.c.
659{
661
663
665
666 switch (uMsg)
667 {
671
673
678 break;
679
682 {
685 break;
686
689 break;
690
694 break;
695
699 break;
700
704 {
706 }
707 break;
708 }
709 break;
710
713
717 break;
718 }
719
721}
#define IDC_USERS_PROPERTIES
#define IDM_USER_CHANGE_PASSWORD
#define IDM_USER_PROPERTIES
BOOL UserProperties(HWND hwndDlg)
static BOOL UserDelete(HWND hwndDlg)
struct _USER_DATA * PUSER_DATA
static VOID OnInitDialog(HWND hwndDlg)
static VOID UserNew(HWND hwndDlg)
static BOOL OnNotify(HWND hwndDlg, PUSER_DATA pUserData, NMHDR *phdr)
static VOID UserChangePassword(HWND hwndDlg)
static VOID UpdateUserProperties(HWND hwndDlg)
static VOID UserRename(HWND hwndDlg)
BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI DestroyMenu(_In_ HMENU)
Referenced by UsrmgrApplet().