From 81f3d68abd3eef263e6c50d62208b466accb9365 Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Sun, 3 Apr 2011 23:50:40 +0200 Subject: [PATCH] scarddlg: New dll stub. --- configure | 1 + configure.ac | 1 + dlls/scarddlg/Makefile.in | 6 ++++++ dlls/scarddlg/main.c | 49 +++++++++++++++++++++++++++++++++++++++++++++ dlls/scarddlg/scarddlg.spec | 5 +++++ 5 files changed, 62 insertions(+) create mode 100644 dlls/scarddlg/Makefile.in create mode 100644 dlls/scarddlg/main.c create mode 100644 dlls/scarddlg/scarddlg.spec diff --git a/configure b/configure index a61c726a588..0b972b3085f 100755 --- a/configure +++ b/configure @@ -15279,6 +15279,7 @@ wine_fn_config_dll rstrtmgr enable_rstrtmgr wine_fn_config_dll rtutils enable_rtutils implib wine_fn_config_dll samlib enable_samlib wine_fn_config_dll sane.ds enable_sane_ds po +wine_fn_config_dll scarddlg enable_scarddlg wine_fn_config_dll sccbase enable_sccbase wine_fn_config_dll schannel enable_schannel wine_fn_config_test dlls/schannel/tests schannel_test diff --git a/configure.ac b/configure.ac index 3f293030f09..8d68d9b9b81 100644 --- a/configure.ac +++ b/configure.ac @@ -2746,6 +2746,7 @@ WINE_CONFIG_DLL(rstrtmgr) WINE_CONFIG_DLL(rtutils,,[implib]) WINE_CONFIG_DLL(samlib) WINE_CONFIG_DLL(sane.ds,,[po]) +WINE_CONFIG_DLL(scarddlg) WINE_CONFIG_DLL(sccbase) WINE_CONFIG_DLL(schannel) WINE_CONFIG_TEST(dlls/schannel/tests) diff --git a/dlls/scarddlg/Makefile.in b/dlls/scarddlg/Makefile.in new file mode 100644 index 00000000000..7b3ddc8a1a2 --- /dev/null +++ b/dlls/scarddlg/Makefile.in @@ -0,0 +1,6 @@ +MODULE = scarddlg.dll + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ diff --git a/dlls/scarddlg/main.c b/dlls/scarddlg/main.c new file mode 100644 index 00000000000..59cc5a81a5f --- /dev/null +++ b/dlls/scarddlg/main.c @@ -0,0 +1,49 @@ +/* + * Implementation of the SCardDlg Interface + * + * Copyright 2011 Stefan Leichter + * + * 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 "winuser.h" +#include "wfext.h" + +#include "wine/unicode.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(scarddlg); + +/***************************************************** + * DllMain + */ +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; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( hinstDLL ); + break; + } + return TRUE; +} diff --git a/dlls/scarddlg/scarddlg.spec b/dlls/scarddlg/scarddlg.spec new file mode 100644 index 00000000000..3208c1b9f44 --- /dev/null +++ b/dlls/scarddlg/scarddlg.spec @@ -0,0 +1,5 @@ +1 stub GetOpenCardNameA +2 stub GetOpenCardNameW +3 stub SCardDlgExtendedError +4 stub SCardUIDlgSelectCardA +5 stub SCardUIDlgSelectCardW -- 2.11.4.GIT