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{
64
66
68
69 switch (uMsg)
70 {
74 break;
75
78 {
81 {
82
83
86 {
89 }
90
92 }
93 break;
94
97 break;
98 }
99 break;
100
101 default:
103 }
104
106}
#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)
#define SendDlgItemMessage
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 186 of file users.c.
190{
193
195
197
198 switch (uMsg)
199 {
205 break;
206
209 {
212 {
215 }
216 break;
217
221 break;
222
226 break;
227
231 break;
232
235 break;
236
239 {
242 break;
243 }
244
246 {
249 break;
250 }
251
252
255 {
258 }
259
260
263 {
266 }
267
268
271 {
274 }
275
276
279 {
282 }
283
285 break;
286
289 break;
290 }
291 break;
292
293 default:
295 }
296
298}
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)
Referenced by UserNew().
◆ OnBeginLabelEdit()
Definition at line 536 of file users.c.
537{
539
543
545
547}
#define ListView_GetEditControl(hwndLV)
Referenced by OnNotify().
◆ OnEndLabelEdit()
Definition at line 551 of file users.c.
552{
557
558
559 if (pnmv->item.iItem == -1)
561
562
564 pnmv->item.iItem, 0,
565 szOldUserName,
567
568
569 if (pnmv->item.pszText ==
NULL)
571
572
573 lstrcpy(szNewUserName, pnmv->item.pszText);
574
575
576 if (
lstrcmp(szOldUserName, szNewUserName) == 0)
578
579
582
583
585
588 {
593 }
594
595
597 pnmv->item.iItem, 0,
598 szNewUserName);
599
601}
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 509 of file users.c.
510{
514
515
522
524
526
528
530
532}
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 605 of file users.c.
606{
608
610 {
613 {
616 break;
617
619 if (lpnmlv->
iItem != -1)
620 {
622
625 if (uItem != (
UINT)-1)
627 }
628 break;
629
634 break;
635
638
641 }
642 break;
643 }
644
646}
#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 429 of file users.c.
430{
434
436
445
451
457}
#define ListView_InsertColumn(hwnd, iCol, pcol)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
Referenced by OnInitDialog().
◆ UpdateNewUserOptions()
Definition at line 156 of file users.c.
159{
164
167
168 if (bInit)
169 {
172
175
178
181 }
182}
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
Referenced by NewUserDlgProc().
◆ UpdateUserProperties()
static VOID UpdateUserProperties |
( |
HWND |
hwndDlg | ) |
|
|
static |
Definition at line 650 of file users.c.
651{
657
660 if (iItem == -1)
661 return;
662
663
665 iItem, 0,
666 szUserName,
668
670
671 memset(&lvi, 0x00,
sizeof(lvi));
672 lvi.iItem = iItem;
673 lvi.iSubItem = 0;
677
680
683
685}
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 461 of file users.c.
462{
467 DWORD resume_handle = 0;
471
472 for (;;)
473 {
476 1024, &entriesread,
477 &totalentries, &resume_handle);
479 break;
480
481 for (
i = 0;
i < entriesread;
i++)
482 {
483 memset(&lvi, 0x00,
sizeof(lvi));
485 lvi.pszText =
pBuffer[
i].usri20_name;
486 lvi.state = 0;
489
493
497 }
498
500
501
503 break;
504 }
505}
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 110 of file users.c.
111{
117
119
122 if (nItem == -1)
123 return;
124
125
127 nItem, 0,
128 szUserName,
130
133 hwndDlg,
136 {
138 szUserName,
139 1003,
143 {
147 }
148 }
149
150 if (
user.usri1003_password)
152}
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 387 of file users.c.
388{
394
397 if (nItem == -1)
399
400
402 nItem, 0,
403 szUserName,
405
406
407 wsprintf(szText,
TEXT(
"Do you really want to delete the user \"%s\"?"), szUserName);
410
411
414 {
419 }
420
421
423
425}
NET_API_STATUS WINAPI NetUserDel(LPCWSTR servername, LPCWSTR username)
#define ListView_DeleteItem(hwnd, i)
Referenced by UsersPageProc().
◆ UserNew()
Definition at line 302 of file users.c.
303{
309
311
317
319
322 hwndDlg,
325 {
327 3,
331 {
335 return;
336 }
337
339
342 lvi.pszText =
user.usri3_name;
343 lvi.state = 0;
346
348 user.usri3_full_name);
349
352 }
353
356
357 if (
user.usri3_full_name)
359
360 if (
user.usri3_comment)
362
363 if (
user.usri3_password)
365}
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 369 of file users.c.
370{
373
376 return;
377
379 if (nItem != -1)
380 {
382 }
383}
#define ListView_EditLabel(hwndLV, i)
Referenced by UsersPageProc().
◆ UsersPageProc()
Definition at line 689 of file users.c.
693{
695
697
699
700 switch (uMsg)
701 {
705
707
712 break;
713
716 {
719 break;
720
723 break;
724
728 break;
729
733 break;
734
738 {
740 }
741 break;
742 }
743 break;
744
747
751 break;
752 }
753
755}
#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().