ReactOS 0.4.16-dev-306-g647d351
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
28
29typedef struct _ACE_ENTRY
30{
33
34typedef struct _PRINCIPAL_LISTITEM
35{
41
42typedef struct _SECURITY_PAGE
43{
50
51 /* Main Principals List */
54
57
59
61
63
66 IDsObjectPicker *pDsObjectPicker;
67
69
73
76
77/* MISC ***********************************************************************/
78
81 IN UINT uID,
82 OUT LPWSTR *lpTarget,
83 ...);
84
87
88BOOL
90 IN INT Index);
91
94 IN PSI_OBJECT_INFO ObjectInfo,
95 OUT IDsObjectPicker **pDsObjectPicker);
96
97VOID
98FreeObjectPicker(IN IDsObjectPicker *pDsObjectPicker);
99
100typedef BOOL (*POBJPICK_SELECTED_SID)(IN IDsObjectPicker *pDsObjectPicker,
102 IN PSID pSid,
104
106InvokeObjectPickerDialog(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
143{
150
151BOOL
153
154VOID
156
157/* DLLMAIN ********************************************************************/
158
159BOOL
160WINAPI
161DllMain(IN HINSTANCE hinstDLL,
164
165/* SIDCACHE *******************************************************************/
166
167typedef struct _SIDREQRESULT
168{
174
175typedef VOID (*PSIDREQCOMPLETIONPROC)(IN HANDLE SidCacheMgr,
176 IN PSID Sid,
177 IN PSIDREQRESULT SidRequestResult,
179
180HANDLE
182 IN LPCWSTR SystemName);
183
184VOID
185DestroySidCacheMgr(IN HANDLE SidCacheMgr);
186
187VOID
188DequeueSidLookup(IN HANDLE SidCacheMgr,
189 IN PSID pSid);
190
191BOOL
192LookupSidCache(IN HANDLE SidCacheMgr,
193 IN PSID pSid,
194 IN PSIDREQCOMPLETIONPROC CompletionProc,
196
197VOID
199 IN PSIDREQRESULT ReqResult);
200
201VOID
203 IN PSIDREQRESULT ReqResult);
204
205#endif /* _ACLUI_PCH_ */
#define VOID
Definition: acefi.h:82
interface ISecurityInformation * LPSECURITYINFO
Definition: aclui.h:34
HINSTANCE hInstance
Definition: charmap.c:19
DWORD LoadAndFormatString(IN HINSTANCE hInstance, IN UINT uID, OUT LPTSTR *lpTarget,...)
Definition: misc.c:85
HINSTANCE hDllInstance
Definition: browser.c:17
DWORD dwReason
Definition: misc.cpp:141
static HWND hwndParent
Definition: cryptui.c:300
VOID DequeueSidLookup(IN HANDLE SidCacheMgr, IN PSID pSid)
Definition: sidcache.c:791
VOID DestroySidCacheMgr(IN HANDLE SidCacheMgr)
Definition: sidcache.c:676
HRESULT InitializeObjectPicker(IN PCWSTR ServerName, IN PSI_OBJECT_INFO ObjectInfo, OUT IDsObjectPicker **pDsObjectPicker)
Definition: misc.c:176
struct _NMCHANGEITEMCHECKBOX * PNMCHANGEITEMCHECKBOX
BOOL ListViewSelectItem(IN HWND hwnd, IN INT Index)
Definition: misc.c:160
struct _SIDREQRESULT SIDREQRESULT
struct _PRINCIPAL_LISTITEM * PPRINCIPAL_LISTITEM
struct _ACE_ENTRY * PACE_ENTRY
VOID ReferenceSidReqResult(IN HANDLE SidCacheMgr, IN PSIDREQRESULT ReqResult)
Definition: sidcache.c:839
HRESULT InvokeObjectPickerDialog(IN IDsObjectPicker *pDsObjectPicker, IN HWND hwndParent OPTIONAL, IN POBJPICK_SELECTED_SID SelectedSidCallback, IN PVOID Context OPTIONAL)
Definition: misc.c:249
VOID UnregisterCheckListControl(HINSTANCE hInstance)
Definition: checklist.c:2614
BOOL WINAPI DllMain(IN HINSTANCE hinstDLL, IN DWORD dwReason, IN LPVOID lpvReserved)
Definition: kbsdll.c:95
struct _SIDREQRESULT * PSIDREQRESULT
struct _SECURITY_PAGE * PSECURITY_PAGE
VOID FreeObjectPicker(IN IDsObjectPicker *pDsObjectPicker)
Definition: misc.c:335
struct _NMCHANGEITEMCHECKBOX NMCHANGEITEMCHECKBOX
BOOL(* POBJPICK_SELECTED_SID)(IN IDsObjectPicker *pDsObjectPicker, IN HWND hwndParent OPTIONAL, IN PSID pSid, IN PVOID Context OPTIONAL)
Definition: precomp.h:100
VOID(* PSIDREQCOMPLETIONPROC)(IN HANDLE SidCacheMgr, IN PSID Sid, IN PSIDREQRESULT SidRequestResult, IN PVOID Context)
Definition: precomp.h:175
struct _PRINCIPAL_LISTITEM PRINCIPAL_LISTITEM
struct _SECURITY_PAGE SECURITY_PAGE
BOOL RegisterCheckListControl(HINSTANCE hInstance)
LPARAM ListViewGetSelectedItemData(IN HWND hwnd)
Definition: misc.c:134
struct _ACE_ENTRY ACE_ENTRY
HANDLE CreateSidCacheMgr(IN HANDLE Heap, IN LPCWSTR SystemName)
Definition: sidcache.c:596
VOID DereferenceSidReqResult(IN HANDLE SidCacheMgr, IN PSIDREQRESULT ReqResult)
Definition: sidcache.c:855
BOOL LookupSidCache(IN HANDLE SidCacheMgr, IN PSID pSid, IN PSIDREQCOMPLETIONPROC CompletionProc, IN PVOID Context)
Definition: sidcache.c:876
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
static IN DWORD IN LPVOID lpvReserved
enum _SID_NAME_USE SID_NAME_USE
static PSID pSid
Definition: security.c:74
unsigned int UINT
Definition: ndis.h:50
_In_ ULONG _In_ ACCESS_MASK _In_ PSID Sid
Definition: rtlfuncs.h:1145
#define BOOL
Definition: nt_native.h:43
long LONG
Definition: pedump.c:60
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
Definition: precomp.h:30
struct _ACE_ENTRY * Next
Definition: precomp.h:31
struct _SIDREQRESULT * SidReqResult
Definition: precomp.h:37
struct _PRINCIPAL_LISTITEM * Next
Definition: precomp.h:36
LPWSTR DisplayString
Definition: precomp.h:39
PACE_ENTRY ACEs
Definition: precomp.h:38
HWND hWndPrincipalsList
Definition: precomp.h:52
HIMAGELIST hiPrincipals
Definition: precomp.h:62
HWND hBtnAdvanced
Definition: precomp.h:47
SI_OBJECT_INFO ObjectInfo
Definition: precomp.h:65
INT SpecialPermCheckIndex
Definition: precomp.h:60
BOOL OwnerDefaulted
Definition: precomp.h:56
INT ControlsMargin
Definition: precomp.h:58
LONG SidLookupsPending
Definition: precomp.h:71
UINT Initializing
Definition: precomp.h:72
SI_ACCESS DefaultAccess
Definition: precomp.h:68
IDsObjectPicker * pDsObjectPicker
Definition: precomp.h:66
PSID OwnerSid
Definition: precomp.h:55
HANDLE SidCacheMgr
Definition: precomp.h:70
PPRINCIPAL_LISTITEM PrincipalsListHead
Definition: precomp.h:53
HWND hBtnAdd
Definition: precomp.h:45
LPCWSTR ServerName
Definition: precomp.h:74
HWND hPermissionsForLabel
Definition: precomp.h:49
LPSECURITYINFO psi
Definition: precomp.h:64
HWND hAceCheckList
Definition: precomp.h:48
HWND hBtnRemove
Definition: precomp.h:46
LONG RefCount
Definition: precomp.h:169
LPWSTR AccountName
Definition: precomp.h:171
SID_NAME_USE SidNameUse
Definition: precomp.h:170
LPWSTR DomainName
Definition: precomp.h:172
#define OPTIONAL
Definition: typedefs.h:41
const uint16_t * PCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185