diff --git a/configure b/configure index b18d27116cc..f9b91aa5003 100755 --- a/configure +++ b/configure @@ -1190,6 +1190,7 @@ enable_svrapi enable_sxs enable_t2embed enable_tapi32 +enable_taskschd enable_traffic enable_twain_32 enable_unicows @@ -17236,6 +17237,7 @@ wine_fn_config_test dlls/sxs/tests sxs_test wine_fn_config_dll system.drv16 enable_win16 wine_fn_config_dll t2embed enable_t2embed wine_fn_config_dll tapi32 enable_tapi32 implib +wine_fn_config_dll taskschd enable_taskschd wine_fn_config_dll toolhelp.dll16 enable_win16 wine_fn_config_dll traffic enable_traffic wine_fn_config_dll twain.dll16 enable_win16 diff --git a/configure.ac b/configure.ac index d80a2bc446d..94b1e29492b 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 00000000000..39e6c5b4338 --- /dev/null +++ b/dlls/taskschd/Makefile.in @@ -0,0 +1,6 @@ +MODULE = taskschd.dll + +C_SRCS = \ + taskschd.c + +@MAKE_DLL_RULES@ diff --git a/dlls/taskschd/taskschd.c b/dlls/taskschd/taskschd.c new file mode 100644 index 00000000000..241db947c0a --- /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 + +#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 00000000000..b79e689ea62 --- /dev/null +++ b/dlls/taskschd/taskschd.spec @@ -0,0 +1,5 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllGetVersion +@ stub DllRegisterServer +@ stub DllUnregisterServer