odbcbcp: Add new stub dll.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48234
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Louis Lenders 2019-12-06 19:17:11 +01:00 committed by Alexandre Julliard
parent 280bfb58b5
commit 11d902429a
5 changed files with 77 additions and 0 deletions

2
configure vendored
View File

@ -1494,6 +1494,7 @@ enable_ntoskrnl_exe
enable_ntprint
enable_objsel
enable_odbc32
enable_odbcbcp
enable_odbccp32
enable_odbccu32
enable_ole32
@ -20713,6 +20714,7 @@ wine_fn_config_makefile dlls/ntprint enable_ntprint
wine_fn_config_makefile dlls/ntprint/tests enable_tests
wine_fn_config_makefile dlls/objsel enable_objsel
wine_fn_config_makefile dlls/odbc32 enable_odbc32
wine_fn_config_makefile dlls/odbcbcp enable_odbcbcp
wine_fn_config_makefile dlls/odbccp32 enable_odbccp32
wine_fn_config_makefile dlls/odbccp32/tests enable_tests
wine_fn_config_makefile dlls/odbccu32 enable_odbccu32

View File

@ -3545,6 +3545,7 @@ WINE_CONFIG_MAKEFILE(dlls/ntprint)
WINE_CONFIG_MAKEFILE(dlls/ntprint/tests)
WINE_CONFIG_MAKEFILE(dlls/objsel)
WINE_CONFIG_MAKEFILE(dlls/odbc32)
WINE_CONFIG_MAKEFILE(dlls/odbcbcp)
WINE_CONFIG_MAKEFILE(dlls/odbccp32)
WINE_CONFIG_MAKEFILE(dlls/odbccp32/tests)
WINE_CONFIG_MAKEFILE(dlls/odbccu32)

6
dlls/odbcbcp/Makefile.in Normal file
View File

@ -0,0 +1,6 @@
MODULE = odbcbcp.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
main.c

40
dlls/odbcbcp/main.c Normal file
View File

@ -0,0 +1,40 @@
/*
* Copyright 2019 Louis Lenders
*
* 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>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(odbcbcp);
BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved)
{
TRACE("(%p, %d, %p)\n", dll, reason, reserved);
switch (reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(dll);
break;
}
return TRUE;
}

28
dlls/odbcbcp/odbcbcp.spec Normal file
View File

@ -0,0 +1,28 @@
@ stub bcp_batch
@ stub bcp_bind
@ stub bcp_colfmt
@ stub bcp_collen
@ stub bcp_colptr
@ stub bcp_columns
@ stub bcp_control
@ stub bcp_done
@ stub bcp_exec
@ stub bcp_getcolfmt
@ stub bcp_initA
@ stub bcp_initW
@ stub bcp_moretext
@ stub bcp_readfmtA
@ stub bcp_readfmtW
@ stub bcp_sendrow
@ stub bcp_setcolfmt
@ stub bcp_writefmtA
@ stub bcp_writefmtW
@ stub dbprtypeA
@ stub dbprtypeW
@ stub LibMain
@ stub SQLCloseEnumServers
@ stub SQLGetNextEnumeration
@ stub SQLInitEnumServers
@ stub SQLLinkedCatalogsA
@ stub SQLLinkedCatalogsW
@ stub SQLLinkedServers