From f9de65c9370b243575a059666efd0aed44559392 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Sun, 26 Sep 2010 16:38:44 -0500 Subject: [PATCH] ktmw32: Add stub dll. --- configure.ac | 1 + dlls/ktmw32/Makefile.in | 6 ++++++ dlls/ktmw32/ktmw32.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ dlls/ktmw32/ktmw32_main.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+), 0 deletions(-) create mode 100644 dlls/ktmw32/Makefile.in create mode 100644 dlls/ktmw32/ktmw32.spec create mode 100644 dlls/ktmw32/ktmw32_main.c diff --git a/configure.ac b/configure.ac index 341ba18..fb85cac 100644 --- a/configure.ac +++ b/configure.ac @@ -2463,6 +2463,7 @@ WINE_CONFIG_DLL(kernel32,,[kernel32]) WINE_CONFIG_TEST(dlls/kernel32/tests) WINE_CONFIG_DLL(keyboard.drv16,enable_win16) WINE_CONFIG_DLL(krnl386.exe16,enable_win16,[kernel]) +WINE_CONFIG_DLL(ktmw32) WINE_CONFIG_DLL(loadperf,,[loadperf]) WINE_CONFIG_DLL(localspl) WINE_CONFIG_TEST(dlls/localspl/tests) diff --git a/dlls/ktmw32/Makefile.in b/dlls/ktmw32/Makefile.in new file mode 100644 index 0000000..62c41d8 --- /dev/null +++ b/dlls/ktmw32/Makefile.in @@ -0,0 +1,6 @@ +MODULE = ktmw32.dll + +C_SRCS = \ + ktmw32_main.c + +@MAKE_DLL_RULES@ diff --git a/dlls/ktmw32/ktmw32.spec b/dlls/ktmw32/ktmw32.spec new file mode 100644 index 0000000..062f1f2 --- /dev/null +++ b/dlls/ktmw32/ktmw32.spec @@ -0,0 +1,44 @@ +@ stub CommitComplete +@ stub CommitEnlistment +@ stub CommitTransaction +@ stub CommitTransactionAsync +@ stub CreateEnlistment +@ stub CreateResourceManager +@ stub CreateTransaction +@ stub CreateTransactionManager +@ stub GetCurrentClockTransactionManager +@ stub GetEnlistmentId +@ stub GetEnlistmentRecoveryInformation +@ stub GetNotificationResourceManager +@ stub GetNotificationResourceManagerAsync +@ stub GetTransactionId +@ stub GetTransactionInformation +@ stub GetTransactionManagerId +@ stub OpenEnlistment +@ stub OpenResourceManager +@ stub OpenTransaction +@ stub OpenTransactionManager +@ stub OpenTransactionManagerById +@ stub PrePrepareComplete +@ stub PrePrepareEnlistment +@ stub PrepareComplete +@ stub PrepareEnlistment +@ stub PrivCreateTransaction +@ stub PrivIsLogWritableTransactionManager +@ stub PrivPropagationComplete +@ stub PrivPropagationFailed +@ stub PrivRegisterProtocolAddressInformation +@ stub ReadOnlyEnlistment +@ stub RecoverEnlistment +@ stub RecoverResourceManager +@ stub RecoverTransactionManager +@ stub RenameTransactionManager +@ stub RollbackComplete +@ stub RollbackEnlistment +@ stub RollbackTransaction +@ stub RollbackTransactionAsync +@ stub RollforwardTransactionManager +@ stub SetEnlistmentRecoveryInformation +@ stub SetResourceManagerCompletionPort +@ stub SetTransactionInformation +@ stub SinglePhaseReject diff --git a/dlls/ktmw32/ktmw32_main.c b/dlls/ktmw32/ktmw32_main.c new file mode 100644 index 0000000..960def2 --- /dev/null +++ b/dlls/ktmw32/ktmw32_main.c @@ -0,0 +1,43 @@ +/* + * Copyright 2010 Vincent Povirk for CodeWeavers + * + * 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 "config.h" + +#include + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(ktm); + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + + switch (fdwReason) + { + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + case DLL_PROCESS_DETACH: + break; + } + + return TRUE; +} -- 1.7.0.4