Added a stub odbc32.dll as MFC depends on it.

svn path=/trunk/; revision=8378
This commit is contained in:
Steven Edwards 2004-02-25 20:09:39 +00:00
parent 5eea69af20
commit 07405fb464
10 changed files with 2224 additions and 0 deletions

View file

@ -0,0 +1,9 @@
odbc32.dll.dbg.c
odbc32.spec.c
odbc32.spec.def
*.dll
*.o
*.sym
*.map
*.d
*.coff

View file

@ -0,0 +1,13 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = odbc32.dll
IMPORTS = kernel32
C_SRCS = \
proxyodbc.c
@MAKE_DLL_RULES@
### Dependencies:

View file

@ -0,0 +1,21 @@
# $Id: Makefile.ros,v 1.1 2004/02/25 20:09:39 sedwards Exp $
TARGET_NAME = odbc32
TARGET_OBJECTS = proxyodbc.o
TARGET_CFLAGS = -D__REACTOS__ -D__WINESRC__
TARGET_SDKLIBS = kernel32.a libwine.a ntdll.a
TARGET_BASE = 0x76660000
TARGET_RC_SRCS =
TARGET_RC_BINSRC =
TARGET_RC_BINARIES =
default: all
DEP_OBJECTS = $(TARGET_OBJECTS)
include $(TOOLS_PATH)/depend.mk

View file

@ -0,0 +1,21 @@
# $Id: Makefile.ros-template,v 1.1 2004/02/25 20:09:39 sedwards Exp $
TARGET_NAME = odbc32
TARGET_OBJECTS = @C_SRCS@
TARGET_CFLAGS = @EXTRADEFS@ -D__REACTOS__ -D__WINESRC__
TARGET_SDKLIBS = @IMPORTS@ libwine.a ntdll.a
TARGET_BASE = 0x76660000
TARGET_RC_SRCS = @RC_SRCS@
TARGET_RC_BINSRC = @RC_BINSRC@
TARGET_RC_BINARIES = @RC_BINARIES@
default: all
DEP_OBJECTS = $(TARGET_OBJECTS)
include $(TOOLS_PATH)/depend.mk

View file

@ -0,0 +1,3 @@
This stub odbc32.dll is based on the WINE odbc32 implementation except ours doesnt work.
Someone will need to import Unix-ODBC in to ReactOS CVS and merge it with this implemenation.
I only created this because MFC depends on odbc32.dll

View file

@ -0,0 +1,9 @@
# $Id: makefile,v 1.1 2004/02/25 20:09:39 sedwards Exp $
PATH_TO_TOP = ../..
TARGET_TYPE = winedll
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,38 @@
#include <defines.h>
#include <reactos/resource.h>
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
VS_VERSION_INFO VERSIONINFO
FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD
PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", RES_STR_COMPANY_NAME
VALUE "FileDescription", "WINE IMM32 API Client DLL\0"
VALUE "FileVersion", RES_STR_FILE_VERSION
VALUE "InternalName", "imm32\0"
VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT
VALUE "OriginalFilename", "imm32.dll\0"
VALUE "ProductName", RES_STR_PRODUCT_NAME
VALUE "ProductVersion", RES_STR_PRODUCT_VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

View file

@ -0,0 +1,176 @@
1 stdcall SQLAllocConnect(long ptr)
2 stdcall SQLAllocEnv(ptr)
3 stdcall SQLAllocStmt(long ptr)
4 stdcall SQLBindCol(long long long ptr long ptr)
5 stdcall SQLCancel(long)
6 stdcall SQLColAttributes(long long long ptr long ptr ptr)
7 stdcall SQLConnect(long str long str long str long)
8 stdcall SQLDescribeCol(long long str long ptr ptr ptr ptr ptr)
9 stdcall SQLDisconnect(long)
10 stdcall SQLError(long long long str ptr str long ptr)
11 stdcall SQLExecDirect(long str long)
12 stdcall SQLExecute(long)
13 stdcall SQLFetch(long)
14 stdcall SQLFreeConnect(long)
15 stdcall SQLFreeEnv(long)
16 stdcall SQLFreeStmt(long long )
17 stdcall SQLGetCursorName(long str long ptr)
18 stdcall SQLNumResultCols(long ptr)
19 stdcall SQLPrepare(long str long)
20 stdcall SQLRowCount(long ptr)
21 stdcall SQLSetCursorName(long str long)
22 stdcall SQLSetParam(long long long long long long ptr ptr)
23 stdcall SQLTransact(long long long)
24 stdcall SQLAllocHandle(long long ptr)
25 stdcall SQLBindParam(long long long long long long ptr ptr)
26 stdcall SQLCloseCursor(long)
27 stdcall SQLColAttribute(long long long ptr long ptr ptr)
28 stdcall SQLCopyDesc(long long)
29 stdcall SQLEndTran(long long long)
30 stdcall SQLFetchScroll(long long long)
31 stdcall SQLFreeHandle(long long)
32 stdcall SQLGetConnectAttr(long long ptr long ptr)
33 stdcall SQLGetDescField(long long long ptr long ptr)
34 stdcall SQLGetDescRec(long long str long ptr ptr ptr ptr ptr ptr ptr)
35 stdcall SQLGetDiagField(long long long long ptr long ptr)
36 stdcall SQLGetDiagRec(long long long str ptr str long ptr)
37 stdcall SQLGetEnvAttr(long long ptr long ptr)
38 stdcall SQLGetStmtAttr(long long ptr long ptr)
39 stdcall SQLSetConnectAttr(long long ptr long)
40 stdcall SQLColumns(long str long str long str long str long)
41 stdcall SQLDriverConnect(long long str long str long str long)
42 stdcall SQLGetConnectOption(long long ptr)
43 stdcall SQLGetData(long long long ptr long ptr)
44 stdcall SQLGetFunctions(long long ptr)
45 stdcall SQLGetInfo(long long ptr long ptr)
46 stdcall SQLGetStmtOption(long long ptr)
47 stdcall SQLGetTypeInfo(long long)
48 stdcall SQLParamData(long ptr)
49 stdcall SQLPutData(long ptr long)
50 stdcall SQLSetConnectOption(long long long)
51 stdcall SQLSetStmtOption(long long long)
52 stdcall SQLSpecialColumns(long long str long str long str long long long)
53 stdcall SQLStatistics(long str long str long str long long long)
54 stdcall SQLTables(long str long str long str long str long)
55 stdcall SQLBrowseConnect(long str long str long ptr)
56 stdcall SQLColumnPrivileges(long str long str long str long str long)
57 stdcall SQLDataSources(long long str long ptr str long ptr)
58 stdcall SQLDescribeParam(long long ptr ptr ptr ptr)
59 stdcall SQLExtendedFetch(long long long ptr ptr)
60 stdcall SQLForeignKeys(long str long str long str long str long str long str long)
61 stdcall SQLMoreResults(long)
62 stdcall SQLNativeSql(long str long str long ptr)
63 stdcall SQLNumParams(long ptr)
64 stdcall SQLParamOptions(long long ptr)
65 stdcall SQLPrimaryKeys(long str long str long str long)
66 stdcall SQLProcedureColumns(long str long str long str long str long)
67 stdcall SQLProcedures(long str long str long str long)
68 stdcall SQLSetPos(long long long long)
69 stdcall SQLSetScrollOptions(long long long long)
70 stdcall SQLTablePrivileges(long str long str long str long)
71 stdcall SQLDrivers(long long str long ptr str long ptr)
72 stdcall SQLBindParameter(long long long long long long long ptr long ptr)
73 stdcall SQLSetDescField(long long long ptr long)
74 stdcall SQLSetDescRec(long long long long long long long ptr ptr ptr)
75 stdcall SQLSetEnvAttr(long long ptr long)
76 stdcall SQLSetStmtAttr(long long ptr long)
77 stdcall SQLAllocHandleStd(long long ptr)
78 stdcall SQLBulkOperations(long long)
79 stub CloseODBCPerfData
80 stub CollectODBCPerfData
81 stub CursorLibLockDbc
82 stub CursorLibLockDesc
83 stub CursorLibLockStmt
84 stub ODBCGetTryWaitValue
85 stub CursorLibTransact
86 stub ODBSetTryWaitValue
89 stub ODBCSharedPerfMon
90 stub ODBCSharedVSFlag
106 stub SQLColAttributesW
107 stub SQLConnectW
108 stub SQLDescribeColW
110 stub SQLErrorW
111 stub SQLExecDirectW
117 stub SQLGetCursorNameW
119 stub SQLPrepareW
121 stub SQLSetCursorNameW
127 stub SQLColAttributeW
132 stub SQLGetConnectAttrW
133 stub SQLGetDescFieldW
134 stub SQLGetDescRecW
135 stub SQLGetDiagFieldW
136 stub SQLGetDiagRecW
138 stub SQLGetStmtAttrW
139 stub SQLSetConnectAttrW
140 stub SQLColumnsW
141 stub SQLDriverConnectW
142 stub SQLGetConnectOptionW
145 stub SQLGetInfoW
147 stub SQLGetTypeInfoW
150 stub SQLSetConnectOptionW
152 stub SQLSpecialColumnsW
153 stub SQLStatisticsW
154 stub SQLTablesW
155 stub SQLBrowseConnectW
156 stub SQLColumnPrivilegesW
157 stub SQLDataSourcesW
160 stub SQLForeignKeysW
162 stub SQLNativeSqlW
165 stub SQLPrimaryKeysW
166 stub SQLProcedureColumnsW
167 stub SQLProceduresW
170 stub SQLTablePrivilegesW
171 stub SQLDriversW
173 stub SQLSetDescFieldW
176 stub SQLSetStmtAttrW
206 stub SQLColAttributesA
207 stub SQLConnectA
208 stub SQLDescribeColA
210 stub SQLErrorA
211 stub SQLExecDirectA
217 stub SQLGetCursorNameA
219 stub SQLPrepareA
221 stub SQLSetCursorNameA
227 stub SQLColAttributeA
232 stub SQLGetConnectAttrA
233 stub SQLGetDescFieldA
234 stub SQLGetDescRecA
235 stub SQLGetDiagFieldA
236 stub SQLGetDiagRecA
238 stub SQLGetStmtAttrA
239 stub SQLSetConnectAttrA
240 stub SQLColumnsA
241 stub SQLDriverConnectA
242 stub SQLGetConnectOptionA
245 stub SQLGetInfoA
247 stub SQLGetTypeInfoA
250 stub SQLSetConnectOptionA
252 stub SQLSpecialColumnsA
253 stub SQLStatisticsA
254 stub SQLTablesA
255 stub SQLBrowseConnectA
256 stub SQLColumnPrivilegesA
257 stub SQLDataSourcesA
260 stub SQLForeignKeysA
262 stub SQLNativeSqlA
265 stub SQLPrimaryKeysA
266 stub SQLProcedureColumnsA
267 stub SQLProceduresA
270 stub SQLTablePrivilegesA
271 stub SQLDriversA
273 stub SQLSetDescFieldA
276 stub SQLSetStmtAttrA
300 stub ODBCSharedTraceFlag
301 stub ODBCQualifyFileDSNW
@ stub LockHandle
@ stub ODBCInternalConnectW
@ stub OpenODBCPerfData
@ stub PostComponentError
@ stub PostODBCComponentError
@ stub PostODBCError
@ stub SearchStatusCode
@ stub VFreeErrors
@ stub VRetrieveDriverErrorsRowCol
@ stub ValidateErrorQueue

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,131 @@
/*
* Copyright 1999 Xiang Li, Corel Corporation
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _PROXYMANAGER_H
#define _PROXYMANAGER_H
#define NUM_SQLFUNC 78
#define ERROR_FREE 0
#define ERROR_SQLERROR 1
#define ERROR_LIBRARY_NOT_FOUND 2
#define ERROR_FUNCTIONS_NOT_LOADED 3
#define ODBCVER 0x0351
typedef struct dm_func /* driver manager functions */
{
int ordinal;
const char *name;
void *d_func;
SQLRETURN (*func)();
} DM_FUNC;
typedef struct proxyhandle
{
void *dmHandle; /* driver manager handle */
BOOL isWindowsDriver; /* is driver a Windows version*/
BOOL bCallbackReady; /* procs taken from Windows driver placed in driver manager as callbacks */
BOOL bFunctionReady;
int nErrorType;
DM_FUNC functions[NUM_SQLFUNC]; /* entry point for driver manager functions */
char driverLibName[200]; /* ODBC driver SO name */
char dmLibName[200]; /* driver manager library name */
char ServerName[200]; /* keep server name */
char UserName[50]; /* keep username */
} PROXYHANDLE;
#define /* 00 */ SQLAPI_INDEX_SQLALLOCCONNECT 0
#define /* 01 */ SQLAPI_INDEX_SQLALLOCENV 1
#define /* 02 */ SQLAPI_INDEX_SQLALLOCHANDLE 2
#define /* 03 */ SQLAPI_INDEX_SQLALLOCSTMT 3
#define /* 04 */ SQLAPI_INDEX_SQLALLOCHANDLESTD 4
#define /* 05 */ SQLAPI_INDEX_SQLBINDCOL 5
#define /* 06 */ SQLAPI_INDEX_SQLBINDPARAM 6
#define /* 07 */ SQLAPI_INDEX_SQLBINDPARAMETER 7
#define /* 08 */ SQLAPI_INDEX_SQLBROWSECONNECT 8
#define /* 09 */ SQLAPI_INDEX_SQLBULKOPERATIONS 9
#define /* 10 */ SQLAPI_INDEX_SQLCANCEL 10
#define /* 11 */ SQLAPI_INDEX_SQLCLOSECURSOR 11
#define /* 12 */ SQLAPI_INDEX_SQLCOLATTRIBUTE 12
#define /* 13 */ SQLAPI_INDEX_SQLCOLATTRIBUTES 13
#define /* 14 */ SQLAPI_INDEX_SQLCOLUMNPRIVILEGES 14
#define /* 15 */ SQLAPI_INDEX_SQLCOLUMNS 15
#define /* 16 */ SQLAPI_INDEX_SQLCONNECT 16
#define /* 17 */ SQLAPI_INDEX_SQLCOPYDESC 17
#define /* 18 */ SQLAPI_INDEX_SQLDATASOURCES 18
#define /* 19 */ SQLAPI_INDEX_SQLDESCRIBECOL 19
#define /* 20 */ SQLAPI_INDEX_SQLDESCRIBEPARAM 20
#define /* 21 */ SQLAPI_INDEX_SQLDISCONNECT 21
#define /* 22 */ SQLAPI_INDEX_SQLDRIVERCONNECT 22
#define /* 23 */ SQLAPI_INDEX_SQLDRIVERS 23
#define /* 24 */ SQLAPI_INDEX_SQLENDTRAN 24
#define /* 25 */ SQLAPI_INDEX_SQLERROR 25
#define /* 26 */ SQLAPI_INDEX_SQLEXECDIRECT 26
#define /* 27 */ SQLAPI_INDEX_SQLEXECUTE 27
#define /* 28 */ SQLAPI_INDEX_SQLEXTENDEDFETCH 28
#define /* 29 */ SQLAPI_INDEX_SQLFETCH 29
#define /* 30 */ SQLAPI_INDEX_SQLFETCHSCROLL 30
#define /* 31 */ SQLAPI_INDEX_SQLFOREIGNKEYS 31
#define /* 32 */ SQLAPI_INDEX_SQLFREEENV 32
#define /* 33 */ SQLAPI_INDEX_SQLFREEHANDLE 33
#define /* 34 */ SQLAPI_INDEX_SQLFREESTMT 34
#define /* 35 */ SQLAPI_INDEX_SQLFREECONNECT 35
#define /* 36 */ SQLAPI_INDEX_SQLGETCONNECTATTR 36
#define /* 37 */ SQLAPI_INDEX_SQLGETCONNECTOPTION 37
#define /* 38 */ SQLAPI_INDEX_SQLGETCURSORNAME 38
#define /* 39 */ SQLAPI_INDEX_SQLGETDATA 39
#define /* 40 */ SQLAPI_INDEX_SQLGETDESCFIELD 40
#define /* 41 */ SQLAPI_INDEX_SQLGETDESCREC 41
#define /* 42 */ SQLAPI_INDEX_SQLGETDIAGFIELD 42
#define /* 43 */ SQLAPI_INDEX_SQLGETENVATTR 43
#define /* 44 */ SQLAPI_INDEX_SQLGETFUNCTIONS 44
#define /* 45 */ SQLAPI_INDEX_SQLGETINFO 45
#define /* 46 */ SQLAPI_INDEX_SQLGETSTMTATTR 46
#define /* 47 */ SQLAPI_INDEX_SQLGETSTMTOPTION 47
#define /* 48 */ SQLAPI_INDEX_SQLGETTYPEINFO 48
#define /* 49 */ SQLAPI_INDEX_SQLMORERESULTS 49
#define /* 50 */ SQLAPI_INDEX_SQLNATIVESQL 50
#define /* 51 */ SQLAPI_INDEX_SQLNUMPARAMS 51
#define /* 52 */ SQLAPI_INDEX_SQLNUMRESULTCOLS 52
#define /* 53 */ SQLAPI_INDEX_SQLPARAMDATA 53
#define /* 54 */ SQLAPI_INDEX_SQLPARAMOPTIONS 54
#define /* 55 */ SQLAPI_INDEX_SQLPREPARE 55
#define /* 56 */ SQLAPI_INDEX_SQLPRIMARYKEYS 56
#define /* 57 */ SQLAPI_INDEX_SQLPROCEDURECOLUMNS 57
#define /* 58 */ SQLAPI_INDEX_SQLPROCEDURES 58
#define /* 59 */ SQLAPI_INDEX_SQLPUTDATA 59
#define /* 60 */ SQLAPI_INDEX_SQLROWCOUNT 60
#define /* 61 */ SQLAPI_INDEX_SQLSETCONNECTATTR 61
#define /* 62 */ SQLAPI_INDEX_SQLSETCONNECTOPTION 62
#define /* 63 */ SQLAPI_INDEX_SQLSETCURSORNAME 63
#define /* 64 */ SQLAPI_INDEX_SQLSETDESCFIELD 64
#define /* 65 */ SQLAPI_INDEX_SQLSETDESCREC 65
#define /* 66 */ SQLAPI_INDEX_SQLSETENVATTR 66
#define /* 67 */ SQLAPI_INDEX_SQLSETPARAM 67
#define /* 68 */ SQLAPI_INDEX_SQLSETPOS 68
#define /* 69 */ SQLAPI_INDEX_SQLSETSCROLLOPTIONS 69
#define /* 70 */ SQLAPI_INDEX_SQLSETSTMTATTR 70
#define /* 71 */ SQLAPI_INDEX_SQLSETSTMTOPTION 71
#define /* 72 */ SQLAPI_INDEX_SQLSPECIALCOLUMNS 72
#define /* 73 */ SQLAPI_INDEX_SQLSTATISTICS 73
#define /* 74 */ SQLAPI_INDEX_SQLTABLEPRIVILEGES 74
#define /* 75 */ SQLAPI_INDEX_SQLTABLES 75
#define /* 76 */ SQLAPI_INDEX_SQLTRANSACT 76
#define /* 77 */ SQLAPI_INDEX_SQLGETDIAGREC 77
#endif