[PATCH 03/12] dlls: Add stub for avrt dll

Maarten Lankhorst (none) mlankhorst at patser.
Tue Nov 10 13:40:03 CST 2009


---
 dlls/avrt/Makefile.in |   14 ++++++++++++++
 dlls/avrt/avrt.spec   |   14 ++++++++++++++
 dlls/avrt/main.c      |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 76 insertions(+), 0 deletions(-)
 create mode 100644 dlls/avrt/Makefile.in
 create mode 100644 dlls/avrt/avrt.spec
 create mode 100644 dlls/avrt/main.c

diff --git a/dlls/avrt/Makefile.in b/dlls/avrt/Makefile.in
new file mode 100644
index 0000000..dc36c89
--- /dev/null
+++ b/dlls/avrt/Makefile.in
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = avrt.dll
+IMPORTLIB = avrt
+IMPORTS   = user32 kernel32 ntdll
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/avrt/avrt.spec b/dlls/avrt/avrt.spec
new file mode 100644
index 0000000..103798d
--- /dev/null
+++ b/dlls/avrt/avrt.spec
@@ -0,0 +1,14 @@
+@ stub AvQuerySystemResponsiveness
+@ stub AvRevertMmThreadCharacteristics
+@ stub AvRtCreateThreadOrderingGroup
+@ stub AvRtCreateThreadOrderingGroupExA
+@ stub AvRtCreateThreadOrderingGroupExW
+@ stub AvRtDeleteThreadOrderingGroup
+@ stub AvRtJoinThreadOrderingGroup
+@ stub AvRtLeaveThreadOrderingGroup
+@ stub AvRtWaitOnThreadOrderingGroup
+@ stub AvSetMmMaxThreadCharacteristicsA
+@ stub AvSetMmMaxThreadCharacteristicsW
+@ stub AvSetMmThreadCharacteristicsA
+@ stub AvSetMmThreadCharacteristicsW
+@ stub AvSetMmThreadPriority
diff --git a/dlls/avrt/main.c b/dlls/avrt/main.c
new file mode 100644
index 0000000..8d45281
--- /dev/null
+++ b/dlls/avrt/main.c
@@ -0,0 +1,48 @@
+/* Avrt dll implementation
+ *
+ * Copyright (C) 2009 Maarten Lankhorst
+ *
+ * This program 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 program 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 program; 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 "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+#include "avrt.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(avrt);
+
+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;
+        case DLL_PROCESS_DETACH:
+            break;
+    }
+
+    return TRUE;
+}
+
-- 
1.6.5.2


--------------090803080202020803070501--



More information about the wine-patches mailing list