[PATCH] [AclEdit]: stubbed out acledit DLL (new in XP)

Eric Pouech eric.pouech at wanadoo.fr
Mon Apr 16 02:22:03 CDT 2007


- needed by SysInternals' process explorer

A+
---

 .gitignore                |    1 +
 Makefile.in               |    2 ++
 configure                 |    3 +++
 configure.ac              |    1 +
 dlls/Makefile.in          |    5 ++++
 dlls/acledit/Makefile.in  |   14 ++++++++++++
 dlls/acledit/acledit.spec |    8 +++++++
 dlls/acledit/main.c       |   52 +++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 86 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 6ac3e49..afd16f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,7 @@ Makefile
 dlls/Makedll.rules
 dlls/Makeimplib.rules
 dlls/Maketest.rules
+dlls/acledit/libacledit.def
 dlls/activeds/libactiveds.def
 dlls/advapi32/libadvapi32.def
 dlls/advapi32/tests/*.ok
diff --git a/Makefile.in b/Makefile.in
index 7fa8ef0..541ff0d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -157,6 +157,7 @@ ALL_MAKEFILES = \
 	dlls/Maketest.rules \
 	programs/Makeprog.rules \
 	dlls/Makefile \
+	dlls/acledit/Makefile \
 	dlls/activeds/Makefile \
 	dlls/advapi32/Makefile \
 	dlls/advapi32/tests/Makefile \
@@ -498,6 +499,7 @@ dlls/Maketest.rules: dlls/Maketest.rules
 programs/Makeprog.rules: programs/Makeprog.rules.in Make.rules
 Makefile: Makefile.in Make.rules
 dlls/Makefile: dlls/Makefile.in Make.rules
+dlls/acledit/Makefile: dlls/acledit/Makefile.in dlls/Makedll.rules
 dlls/activeds/Makefile: dlls/activeds/Makefile.in dlls/Makedll.rules
 dlls/advapi32/Makefile: dlls/advapi32/Makefile.in dlls/Makedll.rules
 dlls/advapi32/tests/Makefile: dlls/advapi32/tests/Makefile.in dlls/Maketest.rules
diff --git a/configure b/configure
index 85b24c5..e086a93 100755
--- a/configure
+++ b/configure
@@ -20203,6 +20203,8 @@ ac_config_files="$ac_config_files Makefi
 
 ac_config_files="$ac_config_files dlls/Makefile"
 
+ac_config_files="$ac_config_files dlls/acledit/Makefile"
+
 ac_config_files="$ac_config_files dlls/activeds/Makefile"
 
 ac_config_files="$ac_config_files dlls/advapi32/Makefile"
@@ -21422,6 +21424,7 @@ do
     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
+    "dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;;
     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index c9766dc..5f718c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1492,6 +1492,7 @@ AC_CONFIG_FILES([dlls/Maketest.rules])
 AC_CONFIG_FILES([programs/Makeprog.rules])
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([dlls/Makefile])
+AC_CONFIG_FILES([dlls/acledit/Makefile])
 AC_CONFIG_FILES([dlls/activeds/Makefile])
 AC_CONFIG_FILES([dlls/advapi32/Makefile])
 AC_CONFIG_FILES([dlls/advapi32/tests/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index a0dcea0..0571524 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -16,6 +16,7 @@ EXTRADIRS = @GLU32FILES@ @OPENGLFILES@ @
 # Subdir list
 
 BASEDIRS = \
+	acledit \
 	activeds \
 	advapi32 \
 	advpack \
@@ -455,6 +456,7 @@ IMPORT_LIBS = \
 	strmiids/libstrmiids.a \
 	uuid/libuuid.a \
 	winecrt0/libwinecrt0.a \
+	acledit/libacledit.$(IMPLIBEXT) \
 	activeds/libactiveds.$(IMPLIBEXT) \
 	advapi32/libadvapi32.$(IMPLIBEXT) \
 	advpack/libadvpack.$(IMPLIBEXT) \
@@ -580,6 +582,9 @@ implib: $(IMPORT_LIBS)
 
 .PHONY: implib
 
+acledit/libacledit.$(IMPLIBEXT): acledit/acledit.spec $(WINEBUILD)
+	@cd acledit && $(MAKE) libacledit.$(IMPLIBEXT)
+
 activeds/libactiveds.$(IMPLIBEXT): activeds/activeds.spec $(WINEBUILD)
 	@cd activeds && $(MAKE) libactiveds.$(IMPLIBEXT)
 
diff --git a/dlls/acledit/Makefile.in b/dlls/acledit/Makefile.in
new file mode 100644
index 0000000..83565b7
--- /dev/null
+++ b/dlls/acledit/Makefile.in
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = acledit.dll
+IMPORTLIB = libacledit.$(IMPLIBEXT)
+IMPORTS   = kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/acledit/acledit.spec b/dlls/acledit/acledit.spec
new file mode 100644
index 0000000..9448623
--- /dev/null
+++ b/dlls/acledit/acledit.spec
@@ -0,0 +1,8 @@
+#4 stdcall DllMain
+1 stub EditAuditInfo
+2 stub EditOwnerInfo
+3 stub EditPermissionInfo
+5 stub FMExtensionProcW
+6 stub SedDiscretionaryAclEditor
+7 stub SedSystemAclEditor
+8 stub SedTakeOwnership
diff --git a/dlls/acledit/main.c b/dlls/acledit/main.c
new file mode 100644
index 0000000..b73a8e3
--- /dev/null
+++ b/dlls/acledit/main.c
@@ -0,0 +1,52 @@
+/*
+ * Implementation of the AclEdit Interface
+ *
+ * Copyright 2006 Eric Pouech
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "winreg.h"
+#include "winver.h"
+#include "winnls.h"
+
+#include "wine/unicode.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(acledit);
+
+/*****************************************************
+ * DllMain
+ */
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+    TRACE("(%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;
+}
+



More information about the wine-patches mailing list