Commit 3406c9de authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

aclui: Added stub dll.

parent b2258d83
...@@ -24025,6 +24025,14 @@ dlls/acledit/Makefile: dlls/acledit/Makefile.in dlls/Makedll.rules" ...@@ -24025,6 +24025,14 @@ dlls/acledit/Makefile: dlls/acledit/Makefile.in dlls/Makedll.rules"
ac_config_files="$ac_config_files dlls/acledit/Makefile" ac_config_files="$ac_config_files dlls/acledit/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \\ ALL_MAKEFILES="$ALL_MAKEFILES \\
dlls/aclui/Makefile"
test "x$enable_aclui" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
aclui"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
dlls/aclui/Makefile: dlls/aclui/Makefile.in dlls/Makedll.rules"
ac_config_files="$ac_config_files dlls/aclui/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \\
dlls/activeds/Makefile" dlls/activeds/Makefile"
test "x$enable_activeds" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ test "x$enable_activeds" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
activeds" activeds"
...@@ -28205,6 +28213,7 @@ do ...@@ -28205,6 +28213,7 @@ do
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
"dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;; "dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;;
"dlls/aclui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/aclui/Makefile" ;;
"dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;; "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
"dlls/actxprxy/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/actxprxy/Makefile" ;; "dlls/actxprxy/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/actxprxy/Makefile" ;;
"dlls/adsiid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/adsiid/Makefile" ;; "dlls/adsiid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/adsiid/Makefile" ;;
......
...@@ -1780,6 +1780,7 @@ WINE_CONFIG_MAKERULES([programs/Makeprog.rules],[MAKE_PROG_RULES],[Make.rules]) ...@@ -1780,6 +1780,7 @@ WINE_CONFIG_MAKERULES([programs/Makeprog.rules],[MAKE_PROG_RULES],[Make.rules])
WINE_CONFIG_MAKEFILE([Makefile],[Make.rules]) WINE_CONFIG_MAKEFILE([Makefile],[Make.rules])
WINE_CONFIG_MAKEFILE([dlls/Makefile],[Make.rules],[],[ALL_TOP_DIRS]) WINE_CONFIG_MAKEFILE([dlls/Makefile],[Make.rules],[],[ALL_TOP_DIRS])
WINE_CONFIG_MAKEFILE([dlls/acledit/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/acledit/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/aclui/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/activeds/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/activeds/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/actxprxy/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/actxprxy/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/adsiid/Makefile],[dlls/Makeimplib.rules],[dlls],[ALL_IMPLIB_DIRS]) WINE_CONFIG_MAKEFILE([dlls/adsiid/Makefile],[dlls/Makeimplib.rules],[dlls],[ALL_IMPLIB_DIRS])
......
...@@ -177,6 +177,7 @@ IMPORT_LIBS = \ ...@@ -177,6 +177,7 @@ IMPORT_LIBS = \
strmiids/libstrmiids.a \ strmiids/libstrmiids.a \
uuid/libuuid.a \ uuid/libuuid.a \
winecrt0/libwinecrt0.a \ winecrt0/libwinecrt0.a \
aclui/libaclui.$(IMPLIBEXT) \
activeds/libactiveds.$(IMPLIBEXT) \ activeds/libactiveds.$(IMPLIBEXT) \
advapi32/libadvapi32.$(IMPLIBEXT) \ advapi32/libadvapi32.$(IMPLIBEXT) \
advpack/libadvpack.$(IMPLIBEXT) \ advpack/libadvpack.$(IMPLIBEXT) \
...@@ -320,6 +321,7 @@ CROSS_IMPLIBS = \ ...@@ -320,6 +321,7 @@ CROSS_IMPLIBS = \
libd3dx9.a \ libd3dx9.a \
libwinspool.a \ libwinspool.a \
libxinput.a \ libxinput.a \
aclui/libaclui.a \
activeds/libactiveds.a \ activeds/libactiveds.a \
advapi32/libadvapi32.a \ advapi32/libadvapi32.a \
advpack/libadvpack.a \ advpack/libadvpack.a \
...@@ -465,6 +467,9 @@ testsubdirs: $(TESTSUBDIRS) ...@@ -465,6 +467,9 @@ testsubdirs: $(TESTSUBDIRS)
.PHONY: implib testsubdirs .PHONY: implib testsubdirs
aclui/libaclui.def aclui/libaclui.a: aclui/aclui.spec $(WINEBUILD)
@cd aclui && $(MAKE) `basename $@`
activeds/libactiveds.def activeds/libactiveds.a: activeds/activeds.spec $(WINEBUILD) activeds/libactiveds.def activeds/libactiveds.a: activeds/activeds.spec $(WINEBUILD)
@cd activeds && $(MAKE) `basename $@` @cd activeds && $(MAKE) `basename $@`
......
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = aclui.dll
IMPORTLIB = aclui
IMPORTS = kernel32
C_SRCS = aclui_main.c
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend
@ stdcall CreateSecurityPage(ptr)
@ stdcall EditSecurity(long ptr)
@ extern IID_ISecurityInformation
/*
* Implementation of the AclUI
*
* Copyright (C) 2009 Nikolay Sivov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include "initguid.h"
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "winnt.h"
#include "aclui.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(aclui);
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
break;
}
return TRUE;
}
HPROPSHEETPAGE WINAPI CreateSecurityPage(LPSECURITYINFO psi)
{
FIXME("(%p): stub\n", psi);
return NULL;
}
BOOL WINAPI EditSecurity(HWND owner, LPSECURITYINFO psi)
{
FIXME("(%p, %p): stub\n", owner, psi);
return FALSE;
}
...@@ -89,6 +89,7 @@ SRCDIR_INCLUDES = \ ...@@ -89,6 +89,7 @@ SRCDIR_INCLUDES = \
$(PUBLIC_IDL_H_SRCS) \ $(PUBLIC_IDL_H_SRCS) \
accctrl.h \ accctrl.h \
aclapi.h \ aclapi.h \
aclui.h \
adshlp.h \ adshlp.h \
advpub.h \ advpub.h \
appmgmt.h \ appmgmt.h \
......
/*
* Copyright (C) 2009 Nikolay Sivov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_ACLUI_H
#define __WINE_ACLUI_H
#include <objbase.h>
#include <commctrl.h>
#include <accctrl.h>
typedef struct _SI_OBJECT_INFO
{
DWORD dwFlags;
HINSTANCE hInstance;
LPWSTR pszServerName;
LPWSTR pszObjectName;
LPWSTR pszPageTitle;
GUID guidObjectType;
} SI_OBJECT_INFO, *PSI_OBJECT_INFO;
#define SI_EDIT_PERMS 0x00000000
#define SI_EDIT_OWNER 0x00000001
#define SI_EDIT_AUDITS 0x00000002
#define SI_CONTAINER 0x00000004
#define SI_READONLY 0x00000008
#define SI_ADVANCED 0x00000010
#define SI_RESET 0x00000020
#define SI_OWNER_READONLY 0x00000040
#define SI_EDIT_PROPERTIES 0x00000080
#define SI_OWNER_RECURSE 0x00000100
#define SI_NO_ACL_PROTECT 0x00000200
#define SI_NO_TREE_APPLY 0x00000400
#define SI_PAGE_TITLE 0x00000800
#define SI_SERVER_IS_DC 0x00001000
#define SI_RESET_DACL_TREE 0x00004000
#define SI_RESET_SACL_TREE 0x00008000
#define SI_OBJECT_GUID 0x00010000
#define SI_EDIT_EFFECTIVE 0x00020000
#define SI_RESET_DACL 0x00040000
#define SI_RESET_SACL 0x00080000
#define SI_RESET_OWNER 0x00100000
#define SI_NO_ADDITIONAL_PERMISSION 0x00200000
#define SI_VIEW_ONLY 0x00400000
#define SI_PERMS_ELEVATION_REQUIRED 0x01000000
#define SI_AUDITS_ELEVATION_REQUIRED 0x02000000
#define SI_OWNER_ELEVATION_REQUIRED 0x04000000
#define SI_MAY_WRITE 0x10000000
#define SI_EDIT_ALL (SI_EDIT_PERMS | SI_EDIT_OWNER | SI_EDIT_AUDITS)
typedef struct _SI_ACCESS
{
const GUID *pguid;
ACCESS_MASK mask;
LPCWSTR pszName;
DWORD dwFlags;
} SI_ACCESS, *PSI_ACCESS;
#define SI_ACCESS_SPECIFIC 0x00010000
#define SI_ACCESS_GENERAL 0x00020000
#define SI_ACCESS_CONTAINER 0x00040000
#define SI_ACCESS_PROPERTY 0x00080000
typedef struct _SI_INHERIT_TYPE
{
const GUID *pguid;
ULONG dwFlags;
LPCWSTR pszName;
} SI_INHERIT_TYPE, *PSI_INHERIT_TYPE;
typedef enum _SI_PAGE_TYPE
{
SI_PAGE_PERM,
SI_PAGE_ADVPERM,
SI_PAGE_AUDIT,
SI_PAGE_OWNER,
SI_PAGE_EFFECTIVE,
SI_PAGE_TAKEOWNERSHIP
} SI_PAGE_TYPE;
#define PSPCB_SI_INITDIALOG (WM_USER + 1)
#undef INTERFACE
#define INTERFACE ISecurityInformation
DECLARE_INTERFACE_IID_(ISecurityInformation, IUnknown, "965fc360-16ff-11d0-91cb-00aa00bbb723")
{
/* IUnknown methods */
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/* ISecurityInformation methods */
STDMETHOD(GetObjectInformation) (THIS_ PSI_OBJECT_INFO pObjectInfo ) PURE;
STDMETHOD(GetSecurity) (THIS_ SECURITY_INFORMATION RequestedInformation,
PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
BOOL fDefault ) PURE;
STDMETHOD(SetSecurity) (THIS_ SECURITY_INFORMATION SecurityInformation,
PSECURITY_DESCRIPTOR pSecurityDescriptor ) PURE;
STDMETHOD(GetAccessRights) (THIS_ const GUID* pguidObjectType,
DWORD dwFlags,
PSI_ACCESS *ppAccess,
ULONG *pcAccesses,
ULONG *piDefaultAccess ) PURE;
STDMETHOD(MapGeneric) (THIS_ const GUID *pguidObjectType,
UCHAR *pAceFlags,
ACCESS_MASK *pMask) PURE;
STDMETHOD(GetInheritTypes) (THIS_ PSI_INHERIT_TYPE *ppInheritTypes,
ULONG *pcInheritTypes ) PURE;
STDMETHOD(PropertySheetPageCallback)(THIS_ HWND hwnd, UINT uMsg, SI_PAGE_TYPE uPage ) PURE;
};
typedef ISecurityInformation *LPSECURITYINFO;
#undef INTERFACE
#define INTERFACE ISecurityInformation2
DECLARE_INTERFACE_IID_(ISecurityInformation2, IUnknown, "c3ccfdb4-6f88-11d2-a3ce-00c04fb1782a")
{
/* IUnknown methods */
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/* ISecurityInformation2 methods */
STDMETHOD_(BOOL,IsDaclCanonical) (THIS_ PACL pDacl) PURE;
STDMETHOD(LookupSids) (THIS_ ULONG cSids, PSID *rgpSids, LPDATAOBJECT *ppdo) PURE;
};
typedef ISecurityInformation2 *LPSECURITYINFO2;
#define CFSTR_ACLUI_SID_INFO_LIST TEXT("CFSTR_ACLUI_SID_INFO_LIST")
typedef struct _SID_INFO
{
PSID pSid;
PWSTR pwzCommonName;
PWSTR pwzClass;
PWSTR pwzUPN;
} SID_INFO, *PSID_INFO;
typedef struct _SID_INFO_LIST
{
ULONG cItems;
SID_INFO aSidInfo[ANYSIZE_ARRAY];
} SID_INFO_LIST, *PSID_INFO_LIST;
#undef INTERFACE
#define INTERFACE IEffectivePermission
DECLARE_INTERFACE_IID_(IEffectivePermission, IUnknown, "3853dc76-9f35-407c-88a1-d19344365fbc")
{
/* IUnknown methods */
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/* ISecurityInformation methods */
STDMETHOD(GetEffectivePermission) (THIS_
const GUID* pguidObjectType,
PSID pUserSid,
LPCWSTR pszServerName,
PSECURITY_DESCRIPTOR pSD,
POBJECT_TYPE_LIST *ppObjectTypeList,
ULONG *pcObjectTypeListLength,
PACCESS_MASK *ppGrantedAccessList,
ULONG *pcGrantedAccessListLength) PURE;
};
typedef IEffectivePermission *LPEFFECTIVEPERMISSION;
#undef INTERFACE
#define INTERFACE ISecurityObjectTypeInfo
DECLARE_INTERFACE_IID_(ISecurityObjectTypeInfo, IUnknown, "fc3066eb-79ef-444b-9111-d18a75ebf2fa")
{
/* IUnknown methods */
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/* ISecurityInformation methods */
STDMETHOD(GetInheritSource)(THIS_ SECURITY_INFORMATION si,
PACL pACL,
#ifndef WINE_NO_UNICODE_MACROS
PINHERITED_FROM *ppInheritArray
#else
PINHERITED_FROMW *ppInheritArray
#endif
) PURE;
};
typedef ISecurityObjectTypeInfo *LPSecurityObjectTypeInfo;
#undef INTERFACE
#define INTERFACE ISecurityInformation3
DECLARE_INTERFACE_IID_(ISecurityInformation3, IUnknown, "e2cdc9cc-31bd-4f8f-8c8b-b641af516a1a")
{
/* IUnknown methods */
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/* ISecurityInformation3 methods */
STDMETHOD(GetFullResourceName) (THIS_ LPWSTR *ppszResourceName) PURE;
STDMETHOD(OpenElevatedEditor) (THIS_ HWND hWnd, SI_PAGE_TYPE uPage) PURE;
};
typedef ISecurityInformation3 *LPSECURITYINFO3;
DEFINE_GUID(IID_ISecurityInformation, 0x965fc360, 0x16ff, 0x11d0, 0x91, 0xcb, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x23);
DEFINE_GUID(IID_ISecurityInformation2, 0xc3ccfdb4, 0x6f88, 0x11d2, 0xa3, 0xce, 0x0, 0xc0, 0x4f, 0xb1, 0x78, 0x2a);
DEFINE_GUID(IID_IEffectivePermission, 0x3853dc76, 0x9f35, 0x407c, 0x88, 0xa1, 0xd1, 0x93, 0x44, 0x36, 0x5f, 0xbc);
DEFINE_GUID(IID_ISecurityObjectTypeInfo, 0xfc3066eb, 0x79ef, 0x444b, 0x91, 0x11, 0xd1, 0x8a, 0x75, 0xeb, 0xf2, 0xfa);
DEFINE_GUID(IID_ISecurityInformation3, 0xe2cdc9cc, 0x31bd, 0x4f8f, 0x8c, 0x8b, 0xb6, 0x41, 0xaf, 0x51, 0x6a, 0x1a);
HPROPSHEETPAGE WINAPI CreateSecurityPage(LPSECURITYINFO psi);
BOOL WINAPI EditSecurity(HWND owner, LPSECURITYINFO psi);
HRESULT WINAPI EditSecurityAdvanced(HWND owner, LPSECURITYINFO psi, SI_PAGE_TYPE uSIPage);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __WINE_ACLUI_H */
...@@ -225,8 +225,9 @@ ...@@ -225,8 +225,9 @@
#define THIS void #define THIS void
#define interface struct #define interface struct
#define DECLARE_INTERFACE(iface) interface iface #define DECLARE_INTERFACE(iface) interface DECLSPEC_NOVTABLE iface
#define DECLARE_INTERFACE_(iface,ibase) interface iface : public ibase #define DECLARE_INTERFACE_(iface,ibase) interface DECLSPEC_NOVTABLE iface : public ibase
#define DECLARE_INTERFACE_IID_(iface, ibase, iid) interface DECLSPEC_UUID(iid) DECLSPEC_NOVTABLE iface : public ibase
#define BEGIN_INTERFACE #define BEGIN_INTERFACE
#define END_INTERFACE #define END_INTERFACE
...@@ -266,6 +267,7 @@ ...@@ -266,6 +267,7 @@
struct iface##Vtbl struct iface##Vtbl
#endif #endif
#define DECLARE_INTERFACE_(iface,ibase) DECLARE_INTERFACE(iface) #define DECLARE_INTERFACE_(iface,ibase) DECLARE_INTERFACE(iface)
#define DECLARE_INTERFACE_IID_(iface, ibase, iid) DECLARE_INTERFACE_(iface, ibase)
#define BEGIN_INTERFACE #define BEGIN_INTERFACE
#define END_INTERFACE #define END_INTERFACE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment