taskschd: Add new dll.
Dmitry Timoshkov
dmitry at baikal.ru
Tue Dec 17 03:30:24 CST 2013
---
configure.ac | 1 +
dlls/taskschd/Makefile.in | 8 ++++
dlls/taskschd/taskschd.c | 109 ++++++++++++++++++++++++++++++++++++++++++++
dlls/taskschd/taskschd.spec | 5 ++
4 files changed, 123 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 ebf77e6..bbf59fe 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,,[implib])
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..5b74559
--- /dev/null
+++ b/dlls/taskschd/Makefile.in
@@ -0,0 +1,8 @@
+MODULE = taskschd.dll
+IMPORTLIB = taskschd
+IMPORTS = advapi32
+
+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..2d317ef
--- /dev/null
+++ b/dlls/taskschd/taskschd.c
@@ -0,0 +1,109 @@
+/*
+ * 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 "shlwapi.h"
+#include "rpcproxy.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(taskschd);
+
+#define SCHD_MAJORVERSION 6
+#define SCHD_MINORVERSION 1
+#define SCHD_BUILDNUMBER 7601
+
+static HINSTANCE schd_instance;
+
+/******************************************************************
+ * DllMain
+ */
+BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
+{
+ switch (reason)
+ {
+ case DLL_PROCESS_ATTACH:
+ schd_instance = hinst;
+ DisableThreadLibraryCalls(hinst);
+ break;
+ }
+ return TRUE;
+}
+
+/******************************************************************
+ * DllGetClassObject
+ */
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj)
+{
+ FIXME("%s %s %p: stub\n", debugstr_guid(rclsid), debugstr_guid(riid), obj);
+
+ return CLASS_E_CLASSNOTAVAILABLE;
+}
+
+/******************************************************************
+ * DllGetVersion
+ */
+HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *dvi)
+{
+ TRACE("%p\n",dvi);
+
+ if (dvi->cbSize < sizeof(DLLVERSIONINFO))
+ return E_INVALIDARG;
+
+ dvi->dwMajorVersion = SCHD_MAJORVERSION;
+ dvi->dwMinorVersion = SCHD_MINORVERSION;
+ dvi->dwBuildNumber = SCHD_BUILDNUMBER;
+ dvi->dwPlatformID = DLLVER_PLATFORM_WINDOWS;
+
+ return S_OK;
+}
+
+/******************************************************************
+ * DllCanUnloadNow
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+ FIXME(": stub\n");
+ return S_FALSE;
+}
+
+/***********************************************************************
+ * DllRegisterServer
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+ FIXME(": stub\n");
+ return E_NOTIMPL;
+}
+
+/***********************************************************************
+ * DllUnregisterServer
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+ FIXME(": stub\n");
+ return E_NOTIMPL;
+}
diff --git a/dlls/taskschd/taskschd.spec b/dlls/taskschd/taskschd.spec
new file mode 100644
index 0000000..8f79152
--- /dev/null
+++ b/dlls/taskschd/taskschd.spec
@@ -0,0 +1,5 @@
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stdcall -private DllGetVersion(ptr)
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
--
1.8.5.1
More information about the wine-patches
mailing list