From 80ee225f23ea8093f57f1e7b29b7fb60e6f6cdda Mon Sep 17 00:00:00 2001 From: Roy Shea Date: Mon, 14 Jul 2008 17:12:47 -0700 Subject: [PATCH] mstask: Skeleton implementation of Task Scheduler Service. --- Makefile.in | 2 ++ configure | 3 +++ configure.ac | 1 + dlls/Makefile.in | 1 + dlls/mstask/Makefile.in | 13 ++++++++++++ dlls/mstask/mstask.spec | 13 ++++++++++++ dlls/mstask/mstask_main.c | 43 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 76 insertions(+) create mode 100644 dlls/mstask/Makefile.in create mode 100644 dlls/mstask/mstask.spec create mode 100644 dlls/mstask/mstask_main.c diff --git a/Makefile.in b/Makefile.in index 1b35079cd99..6d54f684dbe 100644 --- a/Makefile.in +++ b/Makefile.in @@ -349,6 +349,7 @@ ALL_MAKEFILES = \ dlls/msnet32/Makefile \ dlls/msrle32/Makefile \ dlls/mssip32/Makefile \ + dlls/mstask/Makefile \ dlls/msvcirt/Makefile \ dlls/msvcr71/Makefile \ dlls/msvcrt/Makefile \ @@ -778,6 +779,7 @@ dlls/msisys.ocx/Makefile: dlls/msisys.ocx/Makefile.in dlls/Makedll.rules dlls/msnet32/Makefile: dlls/msnet32/Makefile.in dlls/Makedll.rules dlls/msrle32/Makefile: dlls/msrle32/Makefile.in dlls/Makedll.rules dlls/mssip32/Makefile: dlls/mssip32/Makefile.in dlls/Makedll.rules +dlls/mstask/Makefile: dlls/mstask/Makefile.in dlls/Makedll.rules dlls/msvcirt/Makefile: dlls/msvcirt/Makefile.in dlls/Makedll.rules dlls/msvcr71/Makefile: dlls/msvcr71/Makefile.in dlls/Makedll.rules dlls/msvcrt/Makefile: dlls/msvcrt/Makefile.in dlls/Makedll.rules diff --git a/configure b/configure index be80629c260..56eb2c9e33f 100755 --- a/configure +++ b/configure @@ -22124,6 +22124,8 @@ ac_config_files="$ac_config_files dlls/msrle32/Makefile" ac_config_files="$ac_config_files dlls/mssip32/Makefile" +ac_config_files="$ac_config_files dlls/mstask/Makefile" + ac_config_files="$ac_config_files dlls/msvcirt/Makefile" ac_config_files="$ac_config_files dlls/msvcr71/Makefile" @@ -23335,6 +23337,7 @@ do "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; "dlls/mssip32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mssip32/Makefile" ;; + "dlls/mstask/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mstask/Makefile" ;; "dlls/msvcirt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcirt/Makefile" ;; "dlls/msvcr71/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcr71/Makefile" ;; "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; diff --git a/configure.ac b/configure.ac index 400152f624c..bef895b5c73 100644 --- a/configure.ac +++ b/configure.ac @@ -1891,6 +1891,7 @@ AC_CONFIG_FILES([dlls/msisys.ocx/Makefile]) AC_CONFIG_FILES([dlls/msnet32/Makefile]) AC_CONFIG_FILES([dlls/msrle32/Makefile]) AC_CONFIG_FILES([dlls/mssip32/Makefile]) +AC_CONFIG_FILES([dlls/mstask/Makefile]) AC_CONFIG_FILES([dlls/msvcirt/Makefile]) AC_CONFIG_FILES([dlls/msvcr71/Makefile]) AC_CONFIG_FILES([dlls/msvcrt/Makefile]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index d130f357778..add8d403582 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -156,6 +156,7 @@ BASEDIRS = \ msnet32 \ msrle32 \ mssip32 \ + mstask \ msvcirt \ msvcr71 \ msvcrt \ diff --git a/dlls/mstask/Makefile.in b/dlls/mstask/Makefile.in new file mode 100644 index 00000000000..2fd0a66e8e6 --- /dev/null +++ b/dlls/mstask/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = mstask.dll +IMPORTS = kernel32 + +C_SRCS = \ + mstask_main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/mstask/mstask.spec b/dlls/mstask/mstask.spec new file mode 100644 index 00000000000..c09f7f1ceea --- /dev/null +++ b/dlls/mstask/mstask.spec @@ -0,0 +1,13 @@ +@ stub ConvertAtJobsToTasks +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub GetNetScheduleAccountInformation +@ stub NetrJobAdd +@ stub NetrJobDel +@ stub NetrJobEnum +@ stub NetrJobGetInfo +@ stub SAGetAccountInformation +@ stub SAGetNSAccountInformation +@ stub SASetAccountInformation +@ stub SASetNSAccountInformation +@ stub SetNetScheduleAccountInformation diff --git a/dlls/mstask/mstask_main.c b/dlls/mstask/mstask_main.c new file mode 100644 index 00000000000..c373d663dcd --- /dev/null +++ b/dlls/mstask/mstask_main.c @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2008 Google (Roy Shea) + * + * 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 + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(mstask); + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + case DLL_PROCESS_DETACH: + break; + } + + return TRUE; +}