taskschd: Add Task Scheduler COM server registration.

Dmitry Timoshkov dmitry at baikal.ru
Wed Dec 18 03:01:18 CST 2013


This patch should be applied after 'taskschd: Add new dll.'
---
 dlls/taskschd/Makefile.in  |  2 ++
 dlls/taskschd/taskschd.c   |  6 ++----
 dlls/taskschd/taskschd.rc  | 22 ++++++++++++++++++++++
 dlls/taskschd/taskschd.rgs | 20 ++++++++++++++++++++
 4 files changed, 46 insertions(+), 4 deletions(-)
 create mode 100644 dlls/taskschd/taskschd.rc
 create mode 100644 dlls/taskschd/taskschd.rgs

diff --git a/dlls/taskschd/Makefile.in b/dlls/taskschd/Makefile.in
index 5b74559..d94f072 100644
--- a/dlls/taskschd/Makefile.in
+++ b/dlls/taskschd/Makefile.in
@@ -5,4 +5,6 @@ IMPORTS   = advapi32
 C_SRCS = \
 	taskschd.c
 
+RC_SRCS = taskschd.rc
+
 @MAKE_DLL_RULES@
diff --git a/dlls/taskschd/taskschd.c b/dlls/taskschd/taskschd.c
index f93cf92..4848bb2 100644
--- a/dlls/taskschd/taskschd.c
+++ b/dlls/taskschd/taskschd.c
@@ -95,8 +95,7 @@ HRESULT WINAPI DllCanUnloadNow(void)
  */
 HRESULT WINAPI DllRegisterServer(void)
 {
-    FIXME(": stub\n");
-    return E_NOTIMPL;
+    return __wine_register_resources(schd_instance);
 }
 
 /***********************************************************************
@@ -104,6 +103,5 @@ HRESULT WINAPI DllRegisterServer(void)
  */
 HRESULT WINAPI DllUnregisterServer(void)
 {
-    FIXME(": stub\n");
-    return E_NOTIMPL;
+    return __wine_unregister_resources(schd_instance);
 }
diff --git a/dlls/taskschd/taskschd.rc b/dlls/taskschd/taskschd.rc
new file mode 100644
index 0000000..312360f
--- /dev/null
+++ b/dlls/taskschd/taskschd.rc
@@ -0,0 +1,22 @@
+/*
+ * Task Scheduler resources
+ *
+ * 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
+ */
+
+/* @makedep: taskschd.rgs */
+1 WINE_REGISTRY taskschd.rgs
diff --git a/dlls/taskschd/taskschd.rgs b/dlls/taskschd/taskschd.rgs
new file mode 100644
index 0000000..45641b7
--- /dev/null
+++ b/dlls/taskschd/taskschd.rgs
@@ -0,0 +1,20 @@
+HKCR
+{
+    Schedule.Service.1 = s 'TaskScheduler class'
+    {
+        CLSID = s '{0f87369f-a4e5-4cfc-bd3e-73e6154572dd}'
+    }
+    NoRemove CLSID
+    {
+        ForceRemove {0f87369f-a4e5-4cfc-bd3e-73e6154572dd} = s 'TaskScheduler class'
+        {
+            ProgID = s 'Schedule.Service.1'
+            VersionIndependentProgID = s 'Schedule.Service'
+            Version = s '1.0'
+            InprocServer32 = s '%MODULE%'
+            {
+                val ThreadingModel = s 'Both'
+            }
+        }
+    }
+}
-- 
1.8.5.1




More information about the wine-patches mailing list