[Wine] authz.dll

Austin English austinenglish at gmail.com
Mon Jan 26 20:15:58 CST 2009


On Mon, Jan 26, 2009 at 8:08 PM, Austin English <austinenglish at gmail.com> wrote:
>  Mon, Jan 26, 2009 at 7:27 PM, Robert <wineforum-user at winehq.org> wrote:
>> I've downloaded the latest DB2 client, and its ODBC registration program complains that this is missing.  No threads or references here.  There didn't appear to be a download for it at M$.
>>
>> A search yielded lots o sites that offered it.  Any recommendations?
>>
>> thanks
>>
>
> Appears to be part of SQL server. What app is this?
>
> --
> -Austin
>

Does this patch help?

-- 
-Austin
-------------- next part --------------
From f9de2be185700907e2c02c83afe9e85c5eaa7b02 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Mon, 26 Jan 2009 20:13:38 -0600
Subject: [PATCH] authz: add stub dll

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

diff --git a/configure.ac b/configure.ac
index a420de2..3fb7363 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1803,6 +1803,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.spec b/dlls/authz/authz.spec
new file mode 100644
index 0000000..3f992c9
--- /dev/null
+++ b/dlls/authz/authz.spec
@@ -0,0 +1,28 @@
+@ stub AuthzAccessCheck
+@ stub AuthzAddSidsToContext
+@ stub AuthzCachedAccessCheck
+@ stub AuthzFreeAuditEvent
+@ stub AuthzFreeContext
+@ stub AuthzFreeHandle
+@ stub AuthzFreeResourceManager
+@ stub AuthzGetInformationFromContext
+@ stub AuthzInitializeContextFromAuthzContext
+@ stub AuthzInitializeContextFromSid
+@ stub AuthzInitializeContextFromToken
+@ stub AuthzInitializeObjectAccessAuditEvent
+@ stub AuthzInitializeResourceManager
+@ stub AuthzOpenObjectAudit
+@ stub AuthziAllocateAuditParams
+@ stub AuthziFreeAuditEventType
+@ stub AuthziFreeAuditParams
+@ stub AuthziFreeAuditQueue
+@ stub AuthziInitializeAuditEvent
+@ stub AuthziInitializeAuditEventType
+@ stub AuthziInitializeAuditParams
+@ stub AuthziInitializeAuditParamsFromArray
+@ stub AuthziInitializeAuditParamsWithRM
+@ stub AuthziInitializeAuditQueue
+@ stub AuthziLogAuditEvent
+@ stub AuthziModifyAuditEvent
+@ stub AuthziModifyAuditEventType
+@ stub AuthziModifyAuditQueue
diff --git a/dlls/authz/authz_main.c b/dlls/authz/authz_main.c
new file mode 100644
index 0000000..6e98aac
--- /dev/null
+++ b/dlls/authz/authz_main.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;
+}
-- 
1.5.6.3


More information about the wine-users mailing list