Go to the source code of this file.
◆ GROUP_DATA
◆ PGROUP_DATA
◆ GroupDelete()
Definition at line 244 of file groups.c.
245{
251
254 if (nItem == -1)
256
257
259 nItem, 0,
260 szGroupName,
262
263
264 wsprintf(szText,
TEXT(
"Dou you really want to delete the user group \"%s\"?"), szGroupName);
267
268
271 {
276 }
277
278
280
282}
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 182 of file groups.c.
183{
189
191
194 hwndDlg,
197 {
199 1,
203 {
207 return;
208 }
209
211
214 lvi.pszText =
group.lgrpi1_name;
215 lvi.state = 0;
216 lvi.iImage = 0;
218
220 group.lgrpi1_comment);
221 }
222
225}
#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 229 of file groups.c.
230{
233
236 if (nItem != -1)
237 {
239 }
240}
#define ListView_EditLabel(hwndLV, i)
Referenced by GroupsPageProc().
◆ GroupsPageProc()
Definition at line 425 of file groups.c.
429{
431
435
436
438
439 switch (uMsg)
440 {
444
446
451 break;
452
455 {
459 break;
460
463 break;
464
468 break;
469
474 break;
475 }
476 break;
477
480
484 break;
485 }
486
488}
#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
158
160
161
163
165 break;
166
169 break;
170 }
171 break;
172
173 default:
175 }
176
178}
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
LPTSTR GetDlgItemTextAlloc(HWND hwndDlg, INT nDlgItem)
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 326 of file groups.c.
327{
332
333
334 if (pnmv->item.iItem == -1)
336
337
339 pnmv->item.iItem, 0,
340 szOldGroupName,
342
343
344 if (pnmv->item.pszText ==
NULL)
346
347
348 lstrcpy(szNewGroupName, pnmv->item.pszText);
349
350
351 if (
lstrcmp(szOldGroupName, szNewGroupName) == 0)
353
354
357
358
360
363 {
368 }
369
370
372 pnmv->item.iItem, 0,
373 szNewGroupName);
374
376}
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 286 of file groups.c.
287{
291
292
297
299
301
303
305
307}
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 380 of file groups.c.
381{
383
385 {
388 {
391 break;
392
394 if (lpnmlv->
iItem != -1)
395 {
397
400 if (uItem != (
UINT)-1)
402 }
403 break;
404
409 break;
410
413
416 }
417 break;
418 }
419
421}
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().