Go to the source code of this file.
◆ GROUP_DATA
◆ PGROUP_DATA
◆ GroupDelete()
Definition at line 255 of file groups.c.
256{
262
265 if (nItem == -1)
267
268
270 nItem, 0,
271 szGroupName,
273
274
275 wsprintf(szText,
TEXT(
"Dou you really want to delete the user group \"%s\"?"), szGroupName);
278
279
282 {
287 }
288
289
291
293}
NET_API_STATUS WINAPI NetLocalGroupDel(LPCWSTR servername, LPCWSTR groupname)
#define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_)
#define ListView_GetNextItem(hwnd, i, flags)
#define ListView_DeleteItem(hwnd, i)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
Referenced by GroupsPageProc().
◆ GroupNew()
Definition at line 190 of file groups.c.
191{
197
199
202 hwndDlg,
205 {
207 1,
211 {
215 return;
216 }
217
219
222 lvi.pszText =
group.lgrpi1_name;
223 lvi.state = 0;
224 lvi.iImage = 0;
226
228 group.lgrpi1_comment);
229 }
230
231 if (
group.lgrpi1_name)
233
234 if (
group.lgrpi1_comment)
236}
#define HeapFree(x, y, z)
INT_PTR CALLBACK NewGroupDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
NET_API_STATUS WINAPI NetLocalGroupAdd(LPCWSTR servername, DWORD level, LPBYTE buf, LPDWORD parm_err)
#define ListView_InsertItem(hwnd, pitem)
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
Referenced by GroupsPageProc().
◆ GroupRename()
Definition at line 240 of file groups.c.
241{
244
247 if (nItem != -1)
248 {
250 }
251}
#define ListView_EditLabel(hwndLV, i)
Referenced by GroupsPageProc().
◆ GroupsPageProc()
Definition at line 436 of file groups.c.
440{
442
446
447
449
450 switch (uMsg)
451 {
455
457
462 break;
463
466 {
470 break;
471
474 break;
475
479 break;
480
485 break;
486 }
487 break;
488
491
495 break;
496 }
497
499}
#define IDC_GROUPS_PROPERTIES
#define IDC_GROUPS_REMOVE
#define IDM_GROUP_PROPERTIES
BOOL GroupProperties(HWND hwndDlg)
static BOOL GroupDelete(HWND hwndDlg)
struct _GROUP_DATA * PGROUP_DATA
static BOOL OnGroupsPageNotify(HWND hwndDlg, PGROUP_DATA pGroupData, NMHDR *phdr)
static VOID GroupNew(HWND hwndDlg)
static VOID UpdateGroupProperties(HWND hwndDlg)
static VOID OnGroupsPageInitDialog(HWND hwndDlg)
static VOID GroupRename(HWND hwndDlg)
#define UNREFERENCED_PARAMETER(P)
BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI DestroyMenu(_In_ HMENU)
Referenced by UsrmgrApplet().
◆ NewGroupDlgProc()
Definition at line 119 of file groups.c.
123{
126
128
130
131 switch (uMsg)
132 {
137 break;
138
141 {
144 {
147 }
148 break;
149
152 {
155 break;
156 }
157
160 {
163 }
164
167 {
170 }
171
173 break;
174
177 break;
178 }
179 break;
180
181 default:
183 }
184
186}
BOOL CheckAccountName(HWND hwndDlg, INT nIdDlgItem, LPTSTR lpAccountName)
#define IDC_GROUP_NEW_NAME
#define IDC_GROUP_NEW_DESCRIPTION
struct _LOCALGROUP_INFO_1 * PLOCALGROUP_INFO_1
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
#define SendDlgItemMessage
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
Referenced by GroupNew().
◆ OnGroupsPageBeginLabelEdit()
◆ OnGroupsPageEndLabelEdit()
Definition at line 337 of file groups.c.
338{
343
344
345 if (pnmv->item.iItem == -1)
347
348
350 pnmv->item.iItem, 0,
351 szOldGroupName,
353
354
355 if (pnmv->item.pszText ==
NULL)
357
358
359 lstrcpy(szNewGroupName, pnmv->item.pszText);
360
361
362 if (
lstrcmp(szOldGroupName, szNewGroupName) == 0)
364
365
368
369
371
374 {
379 }
380
381
383 pnmv->item.iItem, 0,
384 szNewGroupName);
385
387}
NET_API_STATUS WINAPI NetLocalGroupSetInfo(LPCWSTR servername, LPCWSTR groupname, DWORD level, LPBYTE buf, LPDWORD parm_err)
Referenced by OnGroupsPageNotify().
◆ OnGroupsPageInitDialog()
static VOID OnGroupsPageInitDialog |
( |
HWND |
hwndDlg | ) |
|
|
static |
Definition at line 297 of file groups.c.
298{
302
303
308
310
312
314
316
318}
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
static VOID UpdateGroupsList(HWND hwndListView)
static VOID SetGroupsListColumns(HWND hwndListView)
#define ListView_SetImageList(hwnd, himl, iImageList)
#define LVS_EX_FULLROWSELECT
#define ListView_SetExtendedListViewStyle(hwndLV, dw)
#define ImageList_AddIcon(himl, hicon)
BOOL WINAPI DestroyIcon(_In_ HICON)
Referenced by GroupsPageProc().
◆ OnGroupsPageNotify()
Definition at line 391 of file groups.c.
392{
394
396 {
399 {
402 break;
403
405 if (lpnmlv->
iItem != -1)
406 {
408
411 if (uItem != (
UINT)-1)
413 }
414 break;
415
420 break;
421
424
427 }
428 break;
429 }
430
432}
static BOOL OnGroupsPageBeginLabelEdit(LPNMLVDISPINFO pnmv)
static BOOL OnGroupsPageEndLabelEdit(LPNMLVDISPINFO pnmv)
#define LVN_BEGINLABELEDIT
struct tagNMLISTVIEW * LPNMLISTVIEW
UINT WINAPI GetMenuDefaultItem(_In_ HMENU hMenu, _In_ UINT fByPos, _In_ UINT gmdiFlags)
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
Referenced by GroupsPageProc().
◆ SetGroupsListColumns()
static VOID SetGroupsListColumns |
( |
HWND |
hwndListView | ) |
|
|
static |
Definition at line 22 of file groups.c.
23{
27
29
38
44}
#define ListView_InsertColumn(hwnd, iCol, pcol)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
Referenced by OnGroupsPageInitDialog().
◆ UpdateGroupProperties()
static VOID UpdateGroupProperties |
( |
HWND |
hwndDlg | ) |
|
|
static |
Definition at line 91 of file groups.c.
92{
97
100 if (iItem == -1)
101 return;
102
103
105 iItem, 0,
106 szGroupName,
108
110
113
115}
NET_API_STATUS WINAPI NetApiBufferFree(LPVOID Buffer)
NET_API_STATUS WINAPI NetLocalGroupGetInfo(LPCWSTR servername, LPCWSTR groupname, DWORD level, LPBYTE *bufptr)
Referenced by GroupsPageProc().
◆ UpdateGroupsList()
static VOID UpdateGroupsList |
( |
HWND |
hwndListView | ) |
|
|
static |
Definition at line 48 of file groups.c.
49{
58
59 for (;;)
60 {
62 1024, &entriesread,
63 &totalentries, &resume_handle);
65 break;
66
67 for (
i = 0;
i < entriesread;
i++)
68 {
69 memset(&lvi, 0x00,
sizeof(lvi));
71 lvi.pszText =
pBuffer[
i].lgrpi1_name;
72 lvi.state = 0;
73 lvi.iImage = 0;
75
78 }
79
81
82
84 break;
85 }
86
87}
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
NET_API_STATUS WINAPI NetLocalGroupEnum(LPCWSTR servername, DWORD level, LPBYTE *bufptr, DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, PDWORD_PTR resumehandle)
Referenced by OnGroupsPageInitDialog().