ReactOS  0.4.13-dev-242-g611e6d7
precomp.h
Go to the documentation of this file.
1 #ifndef _ACLUI_PCH_
2 #define _ACLUI_PCH_
3 
4 #define _ACLUI_
5 
6 #include <stdarg.h>
7 
8 #define WIN32_NO_STATUS
9 #define _INC_WINDOWS
10 #define COM_NO_WINDOWS_H
11 
12 #include <windef.h>
13 #include <winbase.h>
14 #include <wingdi.h>
15 #include <ole2.h>
16 #include <objsel.h>
17 #include <aclui.h>
18 #define NTOS_MODE_USER
19 #include <ndk/rtlfuncs.h>
20 
21 #define EnableRedrawWindow(hwnd) \
22  SendMessage((hwnd), WM_SETREDRAW, TRUE, 0)
23 
24 #define DisableRedrawWindow(hwnd) \
25  SendMessage((hwnd), WM_SETREDRAW, FALSE, 0)
26 
27 extern HINSTANCE hDllInstance;
28 
29 typedef struct _ACE_ENTRY
30 {
31  struct _ACE_ENTRY *Next;
33 
34 typedef struct _PRINCIPAL_LISTITEM
35 {
41 
42 typedef struct _SECURITY_PAGE
43 {
50 
51  /* Main Principals List */
54 
57 
59 
61 
63 
66  IDsObjectPicker *pDsObjectPicker;
67 
69 
73 
76 
77 /* MISC ***********************************************************************/
78 
79 DWORD
81  IN UINT uID,
82  OUT LPWSTR *lpTarget,
83  ...);
84 
85 LPARAM
87 
88 BOOL
90  IN INT Index);
91 
92 HRESULT
94  IN PSI_OBJECT_INFO ObjectInfo,
95  OUT IDsObjectPicker **pDsObjectPicker);
96 
97 VOID
98 FreeObjectPicker(IN IDsObjectPicker *pDsObjectPicker);
99 
100 typedef BOOL (*POBJPICK_SELECTED_SID)(IN IDsObjectPicker *pDsObjectPicker,
102  IN PSID pSid,
104 
105 HRESULT
106 InvokeObjectPickerDialog(IN IDsObjectPicker *pDsObjectPicker,
108  IN POBJPICK_SELECTED_SID SelectedSidCallback,
110 
111 /* CHECKLIST CONTROL **********************************************************/
112 
113 #define CIS_DENYDISABLED (0x8)
114 #define CIS_DENYENABLED (0x0)
115 #define CIS_ALLOWDISABLED (0x4)
116 #define CIS_ALLOWENABLED (0x0)
117 #define CIS_ALLOW (0x2)
118 #define CIS_DENY (0x1)
119 #define CIS_NONE (0x0)
120 #define CIS_DISABLED (CIS_ALLOWDISABLED | CIS_DENYDISABLED)
121 
122 #define CLB_ALLOW (0x1)
123 #define CLB_DENY (0x0)
124 
125 #define CIS_MASK (CIS_DISABLED | CIS_ALLOW | CIS_DENY)
126 
127 #define CLM_ADDITEM (WM_USER + 1)
128 #define CLM_DELITEM (WM_USER + 2)
129 #define CLM_GETITEMCOUNT (WM_USER + 3)
130 #define CLM_CLEAR (WM_USER + 4)
131 #define CLM_SETCHECKBOXCOLUMN (WM_USER + 5)
132 #define CLM_GETCHECKBOXCOLUMN (WM_USER + 6)
133 #define CLM_CLEARCHECKBOXES (WM_USER + 7)
134 #define CLM_SETITEMSTATE (WM_USER + 8)
135 #define CLM_ENABLEQUICKSEARCH (WM_USER + 9)
136 #define CLM_SETQUICKSEARCH_TIMEOUT_RESET (WM_USER + 10)
137 #define CLM_SETQUICKSEARCH_TIMEOUT_SETFOCUS (WM_USER + 11)
138 #define CLM_FINDITEMBYACCESSMASK (WM_USER + 12)
139 
140 #define CLN_CHANGINGITEMCHECKBOX (101)
141 
142 typedef struct _NMCHANGEITEMCHECKBOX
143 {
150 
151 BOOL
153 
154 VOID
156 
157 /* DLLMAIN ********************************************************************/
158 
159 BOOL
160 WINAPI
161 DllMain(IN HINSTANCE hinstDLL,
162  IN DWORD dwReason,
164 
165 /* SIDCACHE *******************************************************************/
166 
167 typedef struct _SIDREQRESULT
168 {
174 
175 typedef VOID (*PSIDREQCOMPLETIONPROC)(IN HANDLE SidCacheMgr,
176  IN PSID Sid,
177  IN PSIDREQRESULT SidRequestResult,
178  IN PVOID Context);
179 
180 HANDLE
182  IN LPCWSTR SystemName);
183 
184 VOID
185 DestroySidCacheMgr(IN HANDLE SidCacheMgr);
186 
187 VOID
188 DequeueSidLookup(IN HANDLE SidCacheMgr,
189  IN PSID pSid);
190 
191 BOOL
192 LookupSidCache(IN HANDLE SidCacheMgr,
193  IN PSID pSid,
194  IN PSIDREQCOMPLETIONPROC CompletionProc,
195  IN PVOID Context);
196 
197 VOID
198 ReferenceSidReqResult(IN HANDLE SidCacheMgr,
199  IN PSIDREQRESULT ReqResult);
200 
201 VOID
202 DereferenceSidReqResult(IN HANDLE SidCacheMgr,
203  IN PSIDREQRESULT ReqResult);
204 
205 #endif /* _ACLUI_PCH_ */
BOOL ListViewSelectItem(IN HWND hwnd, IN INT Index)
Definition: misc.c:160
HINSTANCE hInstance
Definition: charmap.c:20
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
struct _SECURITY_PAGE * PSECURITY_PAGE
const uint16_t * PCWSTR
Definition: typedefs.h:55
#define IN
Definition: typedefs.h:38
struct _ACE_ENTRY ACE_ENTRY
VOID(* PSIDREQCOMPLETIONPROC)(IN HANDLE SidCacheMgr, IN PSID Sid, IN PSIDREQRESULT SidRequestResult, IN PVOID Context)
Definition: precomp.h:175
Definition: precomp.h:29
enum _SID_NAME_USE SID_NAME_USE
IDsObjectPicker * pDsObjectPicker
Definition: precomp.h:66
LONG RefCount
Definition: precomp.h:169
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
struct _PRINCIPAL_LISTITEM * Next
Definition: precomp.h:36
UINT Initializing
Definition: precomp.h:72
struct _NMCHANGEITEMCHECKBOX * PNMCHANGEITEMCHECKBOX
LPWSTR DisplayString
Definition: precomp.h:39
HINSTANCE hDllInstance
Definition: acledit.c:34
LPARAM ListViewGetSelectedItemData(IN HWND hwnd)
Definition: misc.c:134
LPCWSTR ServerName
Definition: precomp.h:74
HWND hAceCheckList
Definition: precomp.h:48
#define BOOL
Definition: nt_native.h:43
int32_t INT
Definition: typedefs.h:56
HWND hBtnRemove
Definition: precomp.h:46
static IN DWORD IN LPVOID lpvReserved
HWND hPermissionsForLabel
Definition: precomp.h:49
DWORD dwReason
Definition: misc.cpp:154
HRESULT InvokeObjectPickerDialog(IN IDsObjectPicker *pDsObjectPicker, IN HWND hwndParent OPTIONAL, IN POBJPICK_SELECTED_SID SelectedSidCallback, IN PVOID Context OPTIONAL)
Definition: misc.c:249
VOID ReferenceSidReqResult(IN HANDLE SidCacheMgr, IN PSIDREQRESULT ReqResult)
Definition: sidcache.c:835
PPRINCIPAL_LISTITEM PrincipalsListHead
Definition: precomp.h:53
struct _ACE_ENTRY * PACE_ENTRY
unsigned int BOOL
Definition: ntddk_ex.h:94
struct _PRINCIPAL_LISTITEM PRINCIPAL_LISTITEM
long LONG
Definition: pedump.c:60
LPWSTR DomainName
Definition: precomp.h:172
struct _SIDREQRESULT SIDREQRESULT
BOOL WINAPI DllMain(IN HINSTANCE hinstDLL, IN DWORD dwReason, IN LPVOID lpvReserved)
Definition: kbsdll.c:83
BOOL OwnerDefaulted
Definition: precomp.h:56
static HWND hwndParent
Definition: cryptui.c:300
_In_ ULONG _In_ ACCESS_MASK _In_ PSID Sid
Definition: rtlfuncs.h:1104
LONG_PTR LPARAM
Definition: windef.h:208
SID_NAME_USE SidNameUse
Definition: precomp.h:170
INT SpecialPermCheckIndex
Definition: precomp.h:60
VOID UnregisterCheckListControl(HINSTANCE hInstance)
Definition: checklist.c:2614
interface ISecurityInformation * LPSECURITYINFO
Definition: aclui.h:34
VOID FreeObjectPicker(IN IDsObjectPicker *pDsObjectPicker)
Definition: misc.c:335
LPSECURITYINFO psi
Definition: precomp.h:64
LONG HRESULT
Definition: typedefs.h:77
struct _NMCHANGEITEMCHECKBOX NMCHANGEITEMCHECKBOX
#define WINAPI
Definition: msvc.h:8
struct _SIDREQRESULT * PSIDREQRESULT
static const UCHAR Index[8]
Definition: usbohci.c:18
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _PRINCIPAL_LISTITEM * PPRINCIPAL_LISTITEM
LONG SidLookupsPending
Definition: precomp.h:71
HANDLE SidCacheMgr
Definition: precomp.h:70
PACE_ENTRY ACEs
Definition: precomp.h:38
SI_OBJECT_INFO ObjectInfo
Definition: precomp.h:65
DWORD LoadAndFormatString(IN HINSTANCE hInstance, IN UINT uID, OUT LPTSTR *lpTarget,...)
Definition: misc.c:86
HWND hBtnAdvanced
Definition: precomp.h:47
BOOL(* POBJPICK_SELECTED_SID)(IN IDsObjectPicker *pDsObjectPicker, IN HWND hwndParent OPTIONAL, IN PSID pSid, IN PVOID Context OPTIONAL)
Definition: precomp.h:100
#define VOID
Definition: acefi.h:82
SI_ACCESS DefaultAccess
Definition: precomp.h:68
struct _ACE_ENTRY * Next
Definition: precomp.h:31
PSID OwnerSid
Definition: precomp.h:55
HWND hBtnAdd
Definition: precomp.h:45
INT ControlsMargin
Definition: precomp.h:58
#define OPTIONAL
Definition: typedefs.h:40
VOID DequeueSidLookup(IN HANDLE SidCacheMgr, IN PSID pSid)
Definition: sidcache.c:786
unsigned int UINT
Definition: ndis.h:50
static PSID pSid
Definition: security.c:74
BOOL LookupSidCache(IN HANDLE SidCacheMgr, IN PSID pSid, IN PSIDREQCOMPLETIONPROC CompletionProc, IN PVOID Context)
Definition: sidcache.c:872
HWND hWndPrincipalsList
Definition: precomp.h:52
LPWSTR AccountName
Definition: precomp.h:171
HANDLE CreateSidCacheMgr(IN HANDLE Heap, IN LPCWSTR SystemName)
Definition: sidcache.c:590
#define OUT
Definition: typedefs.h:39
HRESULT InitializeObjectPicker(IN PCWSTR ServerName, IN PSI_OBJECT_INFO ObjectInfo, OUT IDsObjectPicker **pDsObjectPicker)
Definition: misc.c:176
struct tagContext Context
Definition: acpixf.h:1012
VOID DestroySidCacheMgr(IN HANDLE SidCacheMgr)
Definition: sidcache.c:670
HIMAGELIST hiPrincipals
Definition: precomp.h:62
struct _SECURITY_PAGE SECURITY_PAGE
WCHAR * LPWSTR
Definition: xmlstorage.h:184
VOID DereferenceSidReqResult(IN HANDLE SidCacheMgr, IN PSIDREQRESULT ReqResult)
Definition: sidcache.c:851
struct _SIDREQRESULT * SidReqResult
Definition: precomp.h:37
BOOL RegisterCheckListControl(HINSTANCE hInstance)
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68