[1/4] taskschd: Add new dll. Resend.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Dec 23 01:37:49 CST 2013
---
configure.ac | 1 +
dlls/taskschd/Makefile.in | 6 ++++++
dlls/taskschd/taskschd.c | 48 +++++++++++++++++++++++++++++++++++++++++++++
dlls/taskschd/taskschd.spec | 5 +++++
loader/wine.inf.in | 1 +
5 files changed, 61 insertions(+)
create mode 100644 dlls/taskschd/Makefile.in
create mode 100644 dlls/taskschd/taskschd.c
create mode 100644 dlls/taskschd/taskschd.spec
diff --git a/configure.ac b/configure.ac
index d80a2bc..94b1e29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3192,6 +3192,7 @@ WINE_CONFIG_TEST(dlls/sxs/tests)
WINE_CONFIG_DLL(system.drv16,enable_win16)
WINE_CONFIG_DLL(t2embed)
WINE_CONFIG_DLL(tapi32,,[implib])
+WINE_CONFIG_DLL(taskschd)
WINE_CONFIG_DLL(toolhelp.dll16,enable_win16)
WINE_CONFIG_DLL(traffic)
WINE_CONFIG_DLL(twain.dll16,enable_win16)
diff --git a/dlls/taskschd/Makefile.in b/dlls/taskschd/Makefile.in
new file mode 100644
index 0000000..39e6c5b
--- /dev/null
+++ b/dlls/taskschd/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = taskschd.dll
+
+C_SRCS = \
+ taskschd.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/taskschd/taskschd.c b/dlls/taskschd/taskschd.c
new file mode 100644
index 0000000..241db94
--- /dev/null
+++ b/dlls/taskschd/taskschd.c
@@ -0,0 +1,48 @@
+/*
+ * Task Scheduler
+ *
+ * Copyright 2013 Dmitry Timoshkov
+ *
+ * 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>
+
+#define COBJMACROS
+#define NONAMELESSUNION
+
+#include "windef.h"
+#include "winbase.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(taskschd);
+
+/******************************************************************
+ * DllMain
+ */
+BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
+{
+ switch (reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinst);
+ break;
+ }
+ return TRUE;
+}
diff --git a/dlls/taskschd/taskschd.spec b/dlls/taskschd/taskschd.spec
new file mode 100644
index 0000000..b79e689
--- /dev/null
+++ b/dlls/taskschd/taskschd.spec
@@ -0,0 +1,5 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllGetVersion
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
diff --git a/loader/wine.inf.in b/loader/wine.inf.in
index 1cefe01..87266af 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -2533,6 +2533,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
11,,msxml4.dll
11,,msxml6.dll
11,,shdocvw.dll
+11,,taskschd.dll
11,gecko\plugin,npmshtml.dll
11,wbem,mofcomp.exe
11,wbem,wbemdisp.dll
--
1.8.5.2
More information about the wine-patches
mailing list