Module: wine Branch: master Commit: 73edf08041318899da0e5ae3de533cfa83cf819d URL: http://source.winehq.org/git/wine.git/?a=commit;h=73edf08041318899da0e5ae3de...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Mon Dec 23 16:37:49 2013 +0900
taskschd: Add new dll.
---
configure | 2 + configure.ac | 1 + dlls/taskschd/Makefile.in | 6 +++++ dlls/taskschd/taskschd.c | 48 +++++++++++++++++++++++++++++++++++++++++++ dlls/taskschd/taskschd.spec | 5 ++++ 5 files changed, 62 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index b18d271..f9b91aa 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 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 + +@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