authz: add stub dll

Austin English austinenglish at gmail.com
Tue Jan 27 23:03:15 CST 2009


Apparently added in w2k3 and extended in w2k8. A user reported his app
needed this in wine-users.

-- 
-Austin
-------------- next part --------------
From 8d74f9a57ed1b8f437372a5aa0f22283fdcf2647 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Tue, 27 Jan 2009 23:01:17 -0600
Subject: [PATCH] authz: add stub dll

---
 configure.ac           |    1 +
 dlls/authz/Makefile.in |   13 +++++++++++++
 dlls/authz/authz.c     |   44 ++++++++++++++++++++++++++++++++++++++++++++
 dlls/authz/authz.spec  |   42 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 100 insertions(+), 0 deletions(-)
 create mode 100644 dlls/authz/Makefile.in
 create mode 100644 dlls/authz/authz.c
 create mode 100644 dlls/authz/authz.spec

diff --git a/configure.ac b/configure.ac
index 12cc8e2..5e9290c 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..bdd14ef
--- /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_main.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
-- 
1.5.6.3


More information about the wine-patches mailing list