Austin English : authz: Add stub dll.

Alexandre Julliard julliard at winehq.org
Wed Jan 28 08:03:16 CST 2009


Module: wine
Branch: master
Commit: 78cffc6e912b3dae712b6c5604ad970a5fd3518d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=78cffc6e912b3dae712b6c5604ad970a5fd3518d

Author: Austin English <austinenglish at gmail.com>
Date:   Tue Jan 27 23:01:17 2009 -0600

authz: Add stub dll.

---

 configure              |    9 +++++++++
 configure.ac           |    1 +
 dlls/authz/Makefile.in |   13 +++++++++++++
 dlls/authz/authz.c     |   44 ++++++++++++++++++++++++++++++++++++++++++++
 dlls/authz/authz.spec  |   42 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 109 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 873aa21..162775d 100755
--- a/configure
+++ b/configure
@@ -24134,6 +24134,14 @@ dlls/atl/Makefile: dlls/atl/Makefile.in dlls/Makedll.rules"
 ac_config_files="$ac_config_files dlls/atl/Makefile"
 
 ALL_MAKEFILES="$ALL_MAKEFILES \\
+	dlls/authz/Makefile"
+test "x$enable_authz" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
+	authz"
+ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
+dlls/authz/Makefile: dlls/authz/Makefile.in dlls/Makedll.rules"
+ac_config_files="$ac_config_files dlls/authz/Makefile"
+
+ALL_MAKEFILES="$ALL_MAKEFILES \\
 	dlls/avicap32/Makefile"
 test "x$enable_avicap32" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
 	avicap32"
@@ -28293,6 +28301,7 @@ do
     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
     "dlls/appwiz.cpl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/appwiz.cpl/Makefile" ;;
     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
+    "dlls/authz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/authz/Makefile" ;;
     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
     "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index acacf4c..06e3678 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1809,6 +1809,7 @@ WINE_CONFIG_MAKEFILE([dlls/advpack/tests/Makefile],[dlls/Maketest.rules],[dlls],
 WINE_CONFIG_MAKEFILE([dlls/amstream/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/appwiz.cpl/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/atl/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/authz/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/avicap32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/avifil32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/browseui/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
diff --git a/dlls/authz/Makefile.in b/dlls/authz/Makefile.in
new file mode 100644
index 0000000..0592efc
--- /dev/null
+++ b/dlls/authz/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = authz.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	authz.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/authz/authz.c b/dlls/authz/authz.c
new file mode 100644
index 0000000..6e98aac
--- /dev/null
+++ b/dlls/authz/authz.c
@@ -0,0 +1,44 @@
+/*
+ * AUTHZ Implementation
+ *
+ * Copyright 2009 Austin English
+ *
+ * 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 "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(authz);
+
+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;
+        default:
+            break;
+    }
+
+    return TRUE;
+}
diff --git a/dlls/authz/authz.spec b/dlls/authz/authz.spec
new file mode 100644
index 0000000..bc3010e
--- /dev/null
+++ b/dlls/authz/authz.spec
@@ -0,0 +1,42 @@
+@ stub AuthzAccessCheck
+@ stub AuthzAddSidsToContext
+@ stub AuthzCachedAccessCheck
+@ stub AuthzEnumerateSecurityEventSources
+@ stub AuthzEvaluateSacl
+@ stub AuthzFreeAuditEvent
+@ stub AuthzFreeContext
+@ stub AuthzFreeHandle
+@ stub AuthzFreeResourceManager
+@ stub AuthzGetInformationFromContext
+@ stub AuthzInitializeContextFromAuthzContext
+@ stub AuthzInitializeContextFromSid
+@ stub AuthzInitializeContextFromToken
+@ stub AuthzInitializeObjectAccessAuditEvent
+@ stub AuthzInitializeObjectAccessAuditEvent2
+@ stub AuthzInitializeResourceManager
+@ stub AuthzInstallSecurityEventSource
+@ stub AuthzOpenObjectAudit
+@ stub AuthzRegisterSecurityEventSource
+@ stub AuthzReportSecurityEvent
+@ stub AuthzReportSecurityEventFromParams
+@ stub AuthzUninstallSecurityEventSource
+@ stub AuthzUnregisterSecurityEventSource
+@ stub AuthziAllocateAuditParams
+@ stub AuthziCheckContextMembership
+@ stub AuthziFreeAuditEventType
+@ stub AuthziFreeAuditParams
+@ stub AuthziFreeAuditQueue
+@ stub AuthziGenerateAdminAlertAuditW
+@ stub AuthziInitializeAuditEvent
+@ stub AuthziInitializeAuditEventType
+@ stub AuthziInitializeAuditParams
+@ stub AuthziInitializeAuditParamsFromArray
+@ stub AuthziInitializeAuditParamsWithRM
+@ stub AuthziInitializeAuditQueue
+@ stub AuthziInitializeContextFromSid
+@ stub AuthziLogAuditEvent
+@ stub AuthziModifyAuditEvent2
+@ stub AuthziModifyAuditEvent
+@ stub AuthziModifyAuditEventType
+@ stub AuthziModifyAuditQueue
+@ stub AuthziSourceAudit




More information about the wine-cvs mailing list