From cee8a76ecc702340ddf96e527089e4d0dda32f50 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Tue, 18 Sep 2012 10:59:04 +1000 Subject: [PATCH] odbccu32: Add new dll. --- configure | 1 + configure.ac | 1 + dlls/odbccu32/Makefile.in | 8 +++++++ dlls/odbccu32/odbccu32.spec | 37 ++++++++++++++++++++++++++++++ dlls/odbccu32/odbccu32_main.c | 42 +++++++++++++++++++++++++++++++++++ dlls/odbccu32/version.rc | 27 ++++++++++++++++++++++ 6 files changed, 116 insertions(+) create mode 100644 dlls/odbccu32/Makefile.in create mode 100644 dlls/odbccu32/odbccu32.spec create mode 100644 dlls/odbccu32/odbccu32_main.c create mode 100644 dlls/odbccu32/version.rc diff --git a/configure b/configure index 87f93f9354f..21044af2c42 100755 --- a/configure +++ b/configure @@ -15593,6 +15593,7 @@ wine_fn_config_dll objsel enable_objsel wine_fn_config_dll odbc32 enable_odbc32 implib wine_fn_config_dll odbccp32 enable_odbccp32 implib wine_fn_config_test dlls/odbccp32/tests odbccp32_test +wine_fn_config_dll odbccu32 enable_odbccu32 wine_fn_config_dll ole2.dll16 enable_win16 wine_fn_config_dll ole2conv.dll16 enable_win16 wine_fn_config_dll ole2disp.dll16 enable_win16 diff --git a/configure.ac b/configure.ac index 8a695703085..84b5de8a932 100644 --- a/configure.ac +++ b/configure.ac @@ -2866,6 +2866,7 @@ WINE_CONFIG_DLL(objsel) WINE_CONFIG_DLL(odbc32,,[implib]) WINE_CONFIG_DLL(odbccp32,,[implib]) WINE_CONFIG_TEST(dlls/odbccp32/tests) +WINE_CONFIG_DLL(odbccu32) WINE_CONFIG_DLL(ole2.dll16,enable_win16) WINE_CONFIG_DLL(ole2conv.dll16,enable_win16) WINE_CONFIG_DLL(ole2disp.dll16,enable_win16) diff --git a/dlls/odbccu32/Makefile.in b/dlls/odbccu32/Makefile.in new file mode 100644 index 00000000000..cc8bf718079 --- /dev/null +++ b/dlls/odbccu32/Makefile.in @@ -0,0 +1,8 @@ +MODULE = odbccu32.dll + +C_SRCS = \ + odbccu32_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ diff --git a/dlls/odbccu32/odbccu32.spec b/dlls/odbccu32/odbccu32.spec new file mode 100644 index 00000000000..e0dec295530 --- /dev/null +++ b/dlls/odbccu32/odbccu32.spec @@ -0,0 +1,37 @@ + 4 stdcall SQLBindCol(long long long ptr long ptr) odbc32.SQLBindCol + 5 stdcall SQLCancel(long) odbc32.SQLCancel + 6 stub ReleaseCLStmtResources + 11 stdcall SQLExecDirect(long str long) odbc32.SQLExecDirect + 12 stdcall SQLExecute(long) odbc32.SQLExecute + 13 stdcall SQLFetch(long) odbc32.SQLFetch + 16 stdcall SQLFreeStmt(long long ) odbc32.SQLFreeStmt + 19 stdcall SQLPrepare(long str long) odbc32.SQLPrepare + 20 stdcall SQLRowCount(long ptr) odbc32.SQLRowCount + 23 stdcall SQLTransact(long long long) odbc32.SQLTransact + 26 stdcall SQLCloseCursor(long) odbc32.SQLCloseCursor + 29 stdcall SQLEndTran(long long long) odbc32.SQLEndTran + 30 stdcall SQLFetchScroll(long long long) odbc32.SQLFetchScroll + 31 stdcall SQLFreeHandle(long long) odbc32.SQLFreeHandle + 33 stdcall SQLGetDescField(long long long ptr long ptr) odbc32.SQLGetDescField + 34 stdcall SQLGetDescRec(long long str long ptr ptr ptr ptr ptr ptr ptr) odbc32.SQLGetDescRec + 38 stdcall SQLGetStmtAttr(long long ptr long ptr) odbc32.SQLGetStmtAttr + 39 stdcall SQLSetConnectAttr(long long ptr long) odbc32.SQLSetConnectAttr + 43 stdcall SQLGetData(long long long ptr long ptr) odbc32.SQLGetData + 45 stdcall SQLGetInfo(long long ptr long ptr) odbc32.SQLGetInfo + 46 stdcall SQLGetStmtOption(long long ptr) odbc32.SQLGetStmtOption + 48 stdcall SQLParamData(long ptr) odbc32.SQLParamData + 49 stdcall SQLPutData(long ptr long) odbc32.SQLPutData + 50 stdcall SQLSetConnectOption(long long long) odbc32.SQLSetConnectOption + 51 stdcall SQLSetStmtOption(long long long) odbc32.SQLSetStmtOption + 59 stdcall SQLExtendedFetch(long long long ptr ptr) odbc32.SQLExtendedFetch + 61 stdcall SQLMoreResults(long) odbc32.SQLMoreResults + 62 stdcall SQLNativeSql(long str long str long ptr) odbc32.SQLNativeSql + 63 stdcall SQLNumParams(long ptr) odbc32.SQLNumParams + 64 stdcall SQLParamOptions(long long ptr) odbc32.SQLParamOptions + 68 stdcall SQLSetPos(long long long long) odbc32.SQLSetPos + 69 stdcall SQLSetScrollOptions(long long long long) odbc32.SQLSetScrollOptions + 72 stdcall SQLBindParameter(long long long long long long long ptr long ptr) odbc32.SQLBindParameter + 73 stdcall SQLSetDescField(long long long ptr long) odbc32.SQLSetDescField + 74 stdcall SQLSetDescRec(long long long long long long long ptr ptr ptr) odbc32.SQLSetDescRec + 76 stdcall SQLSetStmtAttr(long long ptr long) odbc32.SQLSetStmtAttr + 78 stdcall SQLBulkOperations(long long) odbc32.SQLBulkOperations diff --git a/dlls/odbccu32/odbccu32_main.c b/dlls/odbccu32/odbccu32_main.c new file mode 100644 index 00000000000..09abf2b2619 --- /dev/null +++ b/dlls/odbccu32/odbccu32_main.c @@ -0,0 +1,42 @@ +/* + * ODBC Cursor Library + * + * Copyright 2012 Alistair Leslie-Hughes + * + * 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 "wine/port.h" + +#include + +#include "windef.h" +#include "winbase.h" + +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; +} diff --git a/dlls/odbccu32/version.rc b/dlls/odbccu32/version.rc new file mode 100644 index 00000000000..bc1e6f286d3 --- /dev/null +++ b/dlls/odbccu32/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright 2012 Alistair Leslie-Hughes + * + * 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 + * + */ + +#define WINE_FILEDESCRIPTION_STR "Wine ODBC Cursor Library" +#define WINE_FILENAME_STR "odbcu32.dll" +#define WINE_FILEVERSION 6,1,7601,17632 +#define WINE_FILEVERSION_STR "6.1.7601.17632" +#define WINE_PRODUCTVERSION 6,1,7601,17632 +#define WINE_PRODUCTVERSION_STR "6.1.7601.17632" + +#include "wine/wine_common_ver.rc"