ReactOS 0.4.15-dev-8131-g4988de4
proxyodbc.c File Reference
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "wine/debug.h"
#include "wine/library.h"
#include "wine/unicode.h"
#include "sql.h"
#include "sqltypes.h"
#include "sqlext.h"
Include dependency graph for proxyodbc.c:

Go to the source code of this file.

Macros

#define ERROR_FREE   0
 
#define ERROR_SQLERROR   1
 
#define ERROR_LIBRARY_NOT_FOUND   2
 
#define LOAD_FUNC(name)
 

Functions

static BOOL ODBC_LoadDriverManager (void)
 
static BOOL ODBC_LoadDMFunctions (void)
 
 WINE_DEFAULT_DEBUG_CHANNEL (odbc)
 
 WINE_DECLARE_DEBUG_CHANNEL (winediag)
 
SQLRETURN WINAPI ODBC32_SQLAllocEnv (SQLHENV *)
 
SQLRETURN WINAPI ODBC32_SQLFreeEnv (SQLHENV)
 
SQLRETURN WINAPI ODBC32_SQLDataSources (SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
SQLRETURN WINAPI ODBC32_SQLDrivers (SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static void ODBC_ReplicateODBCInstToRegistry (SQLHENV hEnv)
 
static void ODBC_ReplicateODBCToRegistry (BOOL is_user, SQLHENV hEnv)
 
static void ODBC_ReplicateToRegistry (void)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
 
SQLRETURN WINAPI ODBC32_SQLAllocConnect (SQLHENV EnvironmentHandle, SQLHDBC *ConnectionHandle)
 
SQLRETURN WINAPI ODBC32_SQLAllocHandle (SQLSMALLINT HandleType, SQLHANDLE InputHandle, SQLHANDLE *OutputHandle)
 
SQLRETURN WINAPI ODBC32_SQLAllocStmt (SQLHDBC ConnectionHandle, SQLHSTMT *StatementHandle)
 
SQLRETURN WINAPI ODBC32_SQLAllocHandleStd (SQLSMALLINT HandleType, SQLHANDLE InputHandle, SQLHANDLE *OutputHandle)
 
static const chardebugstr_sqllen (SQLLEN len)
 
SQLRETURN WINAPI ODBC32_SQLBindCol (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValue, SQLLEN BufferLength, SQLLEN *StrLen_or_Ind)
 
static const chardebugstr_sqlulen (SQLULEN len)
 
SQLRETURN WINAPI ODBC32_SQLBindParam (SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT ValueType, SQLSMALLINT ParameterType, SQLULEN LengthPrecision, SQLSMALLINT ParameterScale, SQLPOINTER ParameterValue, SQLLEN *StrLen_or_Ind)
 
SQLRETURN WINAPI ODBC32_SQLCancel (SQLHSTMT StatementHandle)
 
SQLRETURN WINAPI ODBC32_SQLCloseCursor (SQLHSTMT StatementHandle)
 
SQLRETURN WINAPI ODBC32_SQLColAttribute (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength, SQLLEN *NumericAttribute)
 
SQLRETURN WINAPI ODBC32_SQLColumns (SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
 
SQLRETURN WINAPI ODBC32_SQLConnect (SQLHDBC ConnectionHandle, SQLCHAR *ServerName, SQLSMALLINT NameLength1, SQLCHAR *UserName, SQLSMALLINT NameLength2, SQLCHAR *Authentication, SQLSMALLINT NameLength3)
 
SQLRETURN WINAPI ODBC32_SQLCopyDesc (SQLHDESC SourceDescHandle, SQLHDESC TargetDescHandle)
 
SQLRETURN WINAPI ODBC32_SQLDataSourcesA (SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *ServerName, SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1, SQLCHAR *Description, SQLSMALLINT BufferLength2, SQLSMALLINT *NameLength2)
 
SQLRETURN WINAPI ODBC32_SQLDescribeCol (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLCHAR *ColumnName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLength, SQLSMALLINT *DataType, SQLULEN *ColumnSize, SQLSMALLINT *DecimalDigits, SQLSMALLINT *Nullable)
 
SQLRETURN WINAPI ODBC32_SQLDisconnect (SQLHDBC ConnectionHandle)
 
SQLRETURN WINAPI ODBC32_SQLEndTran (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT CompletionType)
 
SQLRETURN WINAPI ODBC32_SQLError (SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLHSTMT StatementHandle, SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
 
SQLRETURN WINAPI ODBC32_SQLExecDirect (SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
 
SQLRETURN WINAPI ODBC32_SQLExecute (SQLHSTMT StatementHandle)
 
SQLRETURN WINAPI ODBC32_SQLFetch (SQLHSTMT StatementHandle)
 
SQLRETURN WINAPI ODBC32_SQLFetchScroll (SQLHSTMT StatementHandle, SQLSMALLINT FetchOrientation, SQLLEN FetchOffset)
 
SQLRETURN WINAPI ODBC32_SQLFreeConnect (SQLHDBC ConnectionHandle)
 
SQLRETURN WINAPI ODBC32_SQLFreeHandle (SQLSMALLINT HandleType, SQLHANDLE Handle)
 
SQLRETURN WINAPI ODBC32_SQLFreeStmt (SQLHSTMT StatementHandle, SQLUSMALLINT Option)
 
SQLRETURN WINAPI ODBC32_SQLGetConnectAttr (SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetConnectOption (SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLPOINTER Value)
 
SQLRETURN WINAPI ODBC32_SQLGetCursorName (SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLength)
 
SQLRETURN WINAPI ODBC32_SQLGetData (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValue, SQLLEN BufferLength, SQLLEN *StrLen_or_Ind)
 
SQLRETURN WINAPI ODBC32_SQLGetDescField (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetDescRec (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLCHAR *Name, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength, SQLSMALLINT *Type, SQLSMALLINT *SubType, SQLLEN *Length, SQLSMALLINT *Precision, SQLSMALLINT *Scale, SQLSMALLINT *Nullable)
 
SQLRETURN WINAPI ODBC32_SQLGetDiagField (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLSMALLINT DiagIdentifier, SQLPOINTER DiagInfo, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetDiagRec (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
 
SQLRETURN WINAPI ODBC32_SQLGetEnvAttr (SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetFunctions (SQLHDBC ConnectionHandle, SQLUSMALLINT FunctionId, SQLUSMALLINT *Supported)
 
SQLRETURN WINAPI ODBC32_SQLGetInfo (SQLHDBC ConnectionHandle, SQLUSMALLINT InfoType, SQLPOINTER InfoValue, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetStmtAttr (SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetStmtOption (SQLHSTMT StatementHandle, SQLUSMALLINT Option, SQLPOINTER Value)
 
SQLRETURN WINAPI ODBC32_SQLGetTypeInfo (SQLHSTMT StatementHandle, SQLSMALLINT DataType)
 
SQLRETURN WINAPI ODBC32_SQLNumResultCols (SQLHSTMT StatementHandle, SQLSMALLINT *ColumnCount)
 
SQLRETURN WINAPI ODBC32_SQLParamData (SQLHSTMT StatementHandle, SQLPOINTER *Value)
 
SQLRETURN WINAPI ODBC32_SQLPrepare (SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
 
SQLRETURN WINAPI ODBC32_SQLPutData (SQLHSTMT StatementHandle, SQLPOINTER Data, SQLLEN StrLen_or_Ind)
 
SQLRETURN WINAPI ODBC32_SQLRowCount (SQLHSTMT StatementHandle, SQLLEN *RowCount)
 
SQLRETURN WINAPI ODBC32_SQLSetConnectAttr (SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength)
 
SQLRETURN WINAPI ODBC32_SQLSetConnectOption (SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLULEN Value)
 
SQLRETURN WINAPI ODBC32_SQLSetCursorName (SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT NameLength)
 
SQLRETURN WINAPI ODBC32_SQLSetDescField (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier, SQLPOINTER Value, SQLINTEGER BufferLength)
 
SQLRETURN WINAPI ODBC32_SQLSetDescRec (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT Type, SQLSMALLINT SubType, SQLLEN Length, SQLSMALLINT Precision, SQLSMALLINT Scale, SQLPOINTER Data, SQLLEN *StringLength, SQLLEN *Indicator)
 
SQLRETURN WINAPI ODBC32_SQLSetEnvAttr (SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength)
 
SQLRETURN WINAPI ODBC32_SQLSetParam (SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT ValueType, SQLSMALLINT ParameterType, SQLULEN LengthPrecision, SQLSMALLINT ParameterScale, SQLPOINTER ParameterValue, SQLLEN *StrLen_or_Ind)
 
SQLRETURN WINAPI ODBC32_SQLSetStmtAttr (SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength)
 
SQLRETURN WINAPI ODBC32_SQLSetStmtOption (SQLHSTMT StatementHandle, SQLUSMALLINT Option, SQLULEN Value)
 
SQLRETURN WINAPI ODBC32_SQLSpecialColumns (SQLHSTMT StatementHandle, SQLUSMALLINT IdentifierType, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Scope, SQLUSMALLINT Nullable)
 
SQLRETURN WINAPI ODBC32_SQLStatistics (SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Unique, SQLUSMALLINT Reserved)
 
SQLRETURN WINAPI ODBC32_SQLTables (SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *TableType, SQLSMALLINT NameLength4)
 
SQLRETURN WINAPI ODBC32_SQLTransact (SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLUSMALLINT CompletionType)
 
SQLRETURN WINAPI ODBC32_SQLBrowseConnect (SQLHDBC hdbc, SQLCHAR *szConnStrIn, SQLSMALLINT cbConnStrIn, SQLCHAR *szConnStrOut, SQLSMALLINT cbConnStrOutMax, SQLSMALLINT *pcbConnStrOut)
 
SQLRETURN WINAPI ODBC32_SQLBulkOperations (SQLHSTMT StatementHandle, SQLSMALLINT Operation)
 
SQLRETURN WINAPI ODBC32_SQLColAttributes (SQLHSTMT hstmt, SQLUSMALLINT icol, SQLUSMALLINT fDescType, SQLPOINTER rgbDesc, SQLSMALLINT cbDescMax, SQLSMALLINT *pcbDesc, SQLLEN *pfDesc)
 
SQLRETURN WINAPI ODBC32_SQLColumnPrivileges (SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szTableName, SQLSMALLINT cbTableName, SQLCHAR *szColumnName, SQLSMALLINT cbColumnName)
 
SQLRETURN WINAPI ODBC32_SQLDescribeParam (SQLHSTMT hstmt, SQLUSMALLINT ipar, SQLSMALLINT *pfSqlType, SQLULEN *pcbParamDef, SQLSMALLINT *pibScale, SQLSMALLINT *pfNullable)
 
SQLRETURN WINAPI ODBC32_SQLExtendedFetch (SQLHSTMT hstmt, SQLUSMALLINT fFetchType, SQLLEN irow, SQLULEN *pcrow, SQLUSMALLINT *rgfRowStatus)
 
SQLRETURN WINAPI ODBC32_SQLForeignKeys (SQLHSTMT hstmt, SQLCHAR *szPkCatalogName, SQLSMALLINT cbPkCatalogName, SQLCHAR *szPkSchemaName, SQLSMALLINT cbPkSchemaName, SQLCHAR *szPkTableName, SQLSMALLINT cbPkTableName, SQLCHAR *szFkCatalogName, SQLSMALLINT cbFkCatalogName, SQLCHAR *szFkSchemaName, SQLSMALLINT cbFkSchemaName, SQLCHAR *szFkTableName, SQLSMALLINT cbFkTableName)
 
SQLRETURN WINAPI ODBC32_SQLMoreResults (SQLHSTMT StatementHandle)
 
SQLRETURN WINAPI ODBC32_SQLNativeSql (SQLHDBC hdbc, SQLCHAR *szSqlStrIn, SQLINTEGER cbSqlStrIn, SQLCHAR *szSqlStr, SQLINTEGER cbSqlStrMax, SQLINTEGER *pcbSqlStr)
 
SQLRETURN WINAPI ODBC32_SQLNumParams (SQLHSTMT hstmt, SQLSMALLINT *pcpar)
 
SQLRETURN WINAPI ODBC32_SQLParamOptions (SQLHSTMT hstmt, SQLULEN crow, SQLULEN *pirow)
 
SQLRETURN WINAPI ODBC32_SQLPrimaryKeys (SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szTableName, SQLSMALLINT cbTableName)
 
SQLRETURN WINAPI ODBC32_SQLProcedureColumns (SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szProcName, SQLSMALLINT cbProcName, SQLCHAR *szColumnName, SQLSMALLINT cbColumnName)
 
SQLRETURN WINAPI ODBC32_SQLProcedures (SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szProcName, SQLSMALLINT cbProcName)
 
SQLRETURN WINAPI ODBC32_SQLSetPos (SQLHSTMT hstmt, SQLSETPOSIROW irow, SQLUSMALLINT fOption, SQLUSMALLINT fLock)
 
SQLRETURN WINAPI ODBC32_SQLTablePrivileges (SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szTableName, SQLSMALLINT cbTableName)
 
SQLRETURN WINAPI ODBC32_SQLBindParameter (SQLHSTMT hstmt, SQLUSMALLINT ipar, SQLSMALLINT fParamType, SQLSMALLINT fCType, SQLSMALLINT fSqlType, SQLULEN cbColDef, SQLSMALLINT ibScale, SQLPOINTER rgbValue, SQLLEN cbValueMax, SQLLEN *pcbValue)
 
SQLRETURN WINAPI ODBC32_SQLDriverConnect (SQLHDBC hdbc, SQLHWND hwnd, SQLCHAR *ConnectionString, SQLSMALLINT Length, SQLCHAR *conn_str_out, SQLSMALLINT conn_str_out_max, SQLSMALLINT *ptr_conn_str_out, SQLUSMALLINT driver_completion)
 
SQLRETURN WINAPI ODBC32_SQLSetScrollOptions (SQLHSTMT statement_handle, SQLUSMALLINT f_concurrency, SQLLEN crow_keyset, SQLUSMALLINT crow_rowset)
 
static BOOL SQLColAttributes_KnownStringAttribute (SQLUSMALLINT fDescType)
 
SQLRETURN WINAPI ODBC32_SQLColAttributesW (SQLHSTMT hstmt, SQLUSMALLINT icol, SQLUSMALLINT fDescType, SQLPOINTER rgbDesc, SQLSMALLINT cbDescMax, SQLSMALLINT *pcbDesc, SQLLEN *pfDesc)
 
SQLRETURN WINAPI ODBC32_SQLConnectW (SQLHDBC ConnectionHandle, WCHAR *ServerName, SQLSMALLINT NameLength1, WCHAR *UserName, SQLSMALLINT NameLength2, WCHAR *Authentication, SQLSMALLINT NameLength3)
 
SQLRETURN WINAPI ODBC32_SQLDescribeColW (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, WCHAR *ColumnName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLength, SQLSMALLINT *DataType, SQLULEN *ColumnSize, SQLSMALLINT *DecimalDigits, SQLSMALLINT *Nullable)
 
SQLRETURN WINAPI ODBC32_SQLErrorW (SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLHSTMT StatementHandle, WCHAR *Sqlstate, SQLINTEGER *NativeError, WCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
 
SQLRETURN WINAPI ODBC32_SQLExecDirectW (SQLHSTMT StatementHandle, WCHAR *StatementText, SQLINTEGER TextLength)
 
SQLRETURN WINAPI ODBC32_SQLGetCursorNameW (SQLHSTMT StatementHandle, WCHAR *CursorName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLength)
 
SQLRETURN WINAPI ODBC32_SQLPrepareW (SQLHSTMT StatementHandle, WCHAR *StatementText, SQLINTEGER TextLength)
 
SQLRETURN WINAPI ODBC32_SQLSetCursorNameW (SQLHSTMT StatementHandle, WCHAR *CursorName, SQLSMALLINT NameLength)
 
SQLRETURN WINAPI ODBC32_SQLColAttributeW (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength, SQLLEN *NumericAttribute)
 
SQLRETURN WINAPI ODBC32_SQLGetConnectAttrW (SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetDescFieldW (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetDescRecW (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, WCHAR *Name, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength, SQLSMALLINT *Type, SQLSMALLINT *SubType, SQLLEN *Length, SQLSMALLINT *Precision, SQLSMALLINT *Scale, SQLSMALLINT *Nullable)
 
SQLRETURN WINAPI ODBC32_SQLGetDiagFieldW (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLSMALLINT DiagIdentifier, SQLPOINTER DiagInfo, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetDiagRecW (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, WCHAR *Sqlstate, SQLINTEGER *NativeError, WCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
 
SQLRETURN WINAPI ODBC32_SQLGetStmtAttrW (SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLSetConnectAttrW (SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength)
 
SQLRETURN WINAPI ODBC32_SQLColumnsW (SQLHSTMT StatementHandle, WCHAR *CatalogName, SQLSMALLINT NameLength1, WCHAR *SchemaName, SQLSMALLINT NameLength2, WCHAR *TableName, SQLSMALLINT NameLength3, WCHAR *ColumnName, SQLSMALLINT NameLength4)
 
SQLRETURN WINAPI ODBC32_SQLDriverConnectW (SQLHDBC ConnectionHandle, SQLHWND WindowHandle, WCHAR *InConnectionString, SQLSMALLINT Length, WCHAR *OutConnectionString, SQLSMALLINT BufferLength, SQLSMALLINT *Length2, SQLUSMALLINT DriverCompletion)
 
SQLRETURN WINAPI ODBC32_SQLGetConnectOptionW (SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLPOINTER Value)
 
SQLRETURN WINAPI ODBC32_SQLGetInfoW (SQLHDBC ConnectionHandle, SQLUSMALLINT InfoType, SQLPOINTER InfoValue, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetTypeInfoW (SQLHSTMT StatementHandle, SQLSMALLINT DataType)
 
SQLRETURN WINAPI ODBC32_SQLSetConnectOptionW (SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLULEN Value)
 
SQLRETURN WINAPI ODBC32_SQLSpecialColumnsW (SQLHSTMT StatementHandle, SQLUSMALLINT IdentifierType, SQLWCHAR *CatalogName, SQLSMALLINT NameLength1, SQLWCHAR *SchemaName, SQLSMALLINT NameLength2, SQLWCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Scope, SQLUSMALLINT Nullable)
 
SQLRETURN WINAPI ODBC32_SQLStatisticsW (SQLHSTMT StatementHandle, SQLWCHAR *CatalogName, SQLSMALLINT NameLength1, SQLWCHAR *SchemaName, SQLSMALLINT NameLength2, SQLWCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Unique, SQLUSMALLINT Reserved)
 
SQLRETURN WINAPI ODBC32_SQLTablesW (SQLHSTMT StatementHandle, SQLWCHAR *CatalogName, SQLSMALLINT NameLength1, SQLWCHAR *SchemaName, SQLSMALLINT NameLength2, SQLWCHAR *TableName, SQLSMALLINT NameLength3, SQLWCHAR *TableType, SQLSMALLINT NameLength4)
 
SQLRETURN WINAPI ODBC32_SQLBrowseConnectW (SQLHDBC hdbc, SQLWCHAR *szConnStrIn, SQLSMALLINT cbConnStrIn, SQLWCHAR *szConnStrOut, SQLSMALLINT cbConnStrOutMax, SQLSMALLINT *pcbConnStrOut)
 
SQLRETURN WINAPI ODBC32_SQLColumnPrivilegesW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
 
SQLRETURN WINAPI ODBC32_SQLDataSourcesW (SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, WCHAR *ServerName, SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1, WCHAR *Description, SQLSMALLINT BufferLength2, SQLSMALLINT *NameLength2)
 
SQLRETURN WINAPI ODBC32_SQLForeignKeysW (SQLHSTMT hstmt, SQLWCHAR *szPkCatalogName, SQLSMALLINT cbPkCatalogName, SQLWCHAR *szPkSchemaName, SQLSMALLINT cbPkSchemaName, SQLWCHAR *szPkTableName, SQLSMALLINT cbPkTableName, SQLWCHAR *szFkCatalogName, SQLSMALLINT cbFkCatalogName, SQLWCHAR *szFkSchemaName, SQLSMALLINT cbFkSchemaName, SQLWCHAR *szFkTableName, SQLSMALLINT cbFkTableName)
 
SQLRETURN WINAPI ODBC32_SQLNativeSqlW (SQLHDBC hdbc, SQLWCHAR *szSqlStrIn, SQLINTEGER cbSqlStrIn, SQLWCHAR *szSqlStr, SQLINTEGER cbSqlStrMax, SQLINTEGER *pcbSqlStr)
 
SQLRETURN WINAPI ODBC32_SQLPrimaryKeysW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName)
 
SQLRETURN WINAPI ODBC32_SQLProcedureColumnsW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szProcName, SQLSMALLINT cbProcName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
 
SQLRETURN WINAPI ODBC32_SQLProceduresW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szProcName, SQLSMALLINT cbProcName)
 
SQLRETURN WINAPI ODBC32_SQLTablePrivilegesW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName)
 
SQLRETURN WINAPI ODBC32_SQLDriversW (SQLHENV EnvironmentHandle, SQLUSMALLINT fDirection, SQLWCHAR *szDriverDesc, SQLSMALLINT cbDriverDescMax, SQLSMALLINT *pcbDriverDesc, SQLWCHAR *szDriverAttributes, SQLSMALLINT cbDriverAttrMax, SQLSMALLINT *pcbDriverAttr)
 
SQLRETURN WINAPI ODBC32_SQLSetDescFieldW (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier, SQLPOINTER Value, SQLINTEGER BufferLength)
 
SQLRETURN WINAPI ODBC32_SQLSetStmtAttrW (SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength)
 
SQLRETURN WINAPI ODBC32_SQLGetDiagRecA (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
 

Variables

static SQLRETURN(* pSQLAllocConnect )(SQLHENV, SQLHDBC *)
 
static SQLRETURN(* pSQLAllocEnv )(SQLHENV *)
 
static SQLRETURN(* pSQLAllocHandle )(SQLSMALLINT, SQLHANDLE, SQLHANDLE *)
 
static SQLRETURN(* pSQLAllocHandleStd )(SQLSMALLINT, SQLHANDLE, SQLHANDLE *)
 
static SQLRETURN(* pSQLAllocStmt )(SQLHDBC, SQLHSTMT *)
 
static SQLRETURN(* pSQLBindCol )(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
 
static SQLRETURN(* pSQLBindParam )(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN *)
 
static SQLRETURN(* pSQLBindParameter )(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
 
static SQLRETURN(* pSQLBrowseConnect )(SQLHDBC, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLBrowseConnectW )(SQLHDBC, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLBulkOperations )(SQLHSTMT, SQLSMALLINT)
 
static SQLRETURN(* pSQLCancel )(SQLHSTMT)
 
static SQLRETURN(* pSQLCloseCursor )(SQLHSTMT)
 
static SQLRETURN(* pSQLColAttribute )(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
 
static SQLRETURN(* pSQLColAttributeW )(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
 
static SQLRETURN(* pSQLColAttributes )(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
 
static SQLRETURN(* pSQLColAttributesW )(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
 
static SQLRETURN(* pSQLColumnPrivileges )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLColumnPrivilegesW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLColumns )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLColumnsW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLConnect )(SQLHDBC, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLConnectW )(SQLHDBC, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLCopyDesc )(SQLHDESC, SQLHDESC)
 
static SQLRETURN(* pSQLDataSources )(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLDataSourcesA )(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLDataSourcesW )(SQLHENV, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLDescribeCol )(SQLHSTMT, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
 
static SQLRETURN(* pSQLDescribeColW )(SQLHSTMT, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
 
static SQLRETURN(* pSQLDescribeParam )(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
 
static SQLRETURN(* pSQLDisconnect )(SQLHDBC)
 
static SQLRETURN(* pSQLDriverConnect )(SQLHDBC, SQLHWND, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLUSMALLINT)
 
static SQLRETURN(* pSQLDriverConnectW )(SQLHDBC, SQLHWND, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLUSMALLINT)
 
static SQLRETURN(* pSQLDrivers )(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLDriversW )(SQLHENV, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLEndTran )(SQLSMALLINT, SQLHANDLE, SQLSMALLINT)
 
static SQLRETURN(* pSQLError )(SQLHENV, SQLHDBC, SQLHSTMT, SQLCHAR *, SQLINTEGER *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLErrorW )(SQLHENV, SQLHDBC, SQLHSTMT, SQLWCHAR *, SQLINTEGER *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLExecDirect )(SQLHSTMT, SQLCHAR *, SQLINTEGER)
 
static SQLRETURN(* pSQLExecDirectW )(SQLHSTMT, SQLWCHAR *, SQLINTEGER)
 
static SQLRETURN(* pSQLExecute )(SQLHSTMT)
 
static SQLRETURN(* pSQLExtendedFetch )(SQLHSTMT, SQLUSMALLINT, SQLLEN, SQLULEN *, SQLUSMALLINT *)
 
static SQLRETURN(* pSQLFetch )(SQLHSTMT)
 
static SQLRETURN(* pSQLFetchScroll )(SQLHSTMT, SQLSMALLINT, SQLLEN)
 
static SQLRETURN(* pSQLForeignKeys )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLForeignKeysW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLFreeConnect )(SQLHDBC)
 
static SQLRETURN(* pSQLFreeEnv )(SQLHENV)
 
static SQLRETURN(* pSQLFreeHandle )(SQLSMALLINT, SQLHANDLE)
 
static SQLRETURN(* pSQLFreeStmt )(SQLHSTMT, SQLUSMALLINT)
 
static SQLRETURN(* pSQLGetConnectAttr )(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLGetConnectAttrW )(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLGetConnectOption )(SQLHDBC, SQLUSMALLINT, SQLPOINTER)
 
static SQLRETURN(* pSQLGetConnectOptionW )(SQLHDBC, SQLUSMALLINT, SQLPOINTER)
 
static SQLRETURN(* pSQLGetCursorName )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetCursorNameW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetData )(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
 
static SQLRETURN(* pSQLGetDescField )(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLGetDescFieldW )(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLGetDescRec )(SQLHDESC, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *, SQLLEN *, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetDescRecW )(SQLHDESC, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *, SQLLEN *, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetDiagField )(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetDiagFieldW )(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetDiagRec )(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLCHAR *, SQLINTEGER *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetDiagRecW )(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLWCHAR *, SQLINTEGER *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetEnvAttr )(SQLHENV, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLGetFunctions )(SQLHDBC, SQLUSMALLINT, SQLUSMALLINT *)
 
static SQLRETURN(* pSQLGetInfo )(SQLHDBC, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetInfoW )(SQLHDBC, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLGetStmtAttr )(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLGetStmtAttrW )(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLGetStmtOption )(SQLHSTMT, SQLUSMALLINT, SQLPOINTER)
 
static SQLRETURN(* pSQLGetTypeInfo )(SQLHSTMT, SQLSMALLINT)
 
static SQLRETURN(* pSQLGetTypeInfoW )(SQLHSTMT, SQLSMALLINT)
 
static SQLRETURN(* pSQLMoreResults )(SQLHSTMT)
 
static SQLRETURN(* pSQLNativeSql )(SQLHDBC, SQLCHAR *, SQLINTEGER, SQLCHAR *, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLNativeSqlW )(SQLHDBC, SQLWCHAR *, SQLINTEGER, SQLWCHAR *, SQLINTEGER, SQLINTEGER *)
 
static SQLRETURN(* pSQLNumParams )(SQLHSTMT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLNumResultCols )(SQLHSTMT, SQLSMALLINT *)
 
static SQLRETURN(* pSQLParamData )(SQLHSTMT, SQLPOINTER *)
 
static SQLRETURN(* pSQLParamOptions )(SQLHSTMT, SQLULEN, SQLULEN *)
 
static SQLRETURN(* pSQLPrepare )(SQLHSTMT, SQLCHAR *, SQLINTEGER)
 
static SQLRETURN(* pSQLPrepareW )(SQLHSTMT, SQLWCHAR *, SQLINTEGER)
 
static SQLRETURN(* pSQLPrimaryKeys )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLPrimaryKeysW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLProcedureColumns )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLProcedureColumnsW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLProcedures )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLProceduresW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLPutData )(SQLHSTMT, SQLPOINTER, SQLLEN)
 
static SQLRETURN(* pSQLRowCount )(SQLHSTMT, SQLLEN *)
 
static SQLRETURN(* pSQLSetConnectAttr )(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER)
 
static SQLRETURN(* pSQLSetConnectAttrW )(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER)
 
static SQLRETURN(* pSQLSetConnectOption )(SQLHDBC, SQLUSMALLINT, SQLULEN)
 
static SQLRETURN(* pSQLSetConnectOptionW )(SQLHDBC, SQLUSMALLINT, SQLULEN)
 
static SQLRETURN(* pSQLSetCursorName )(SQLHSTMT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLSetCursorNameW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLSetDescField )(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER)
 
static SQLRETURN(* pSQLSetDescFieldW )(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER)
 
static SQLRETURN(* pSQLSetDescRec )(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLLEN, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN *, SQLLEN *)
 
static SQLRETURN(* pSQLSetEnvAttr )(SQLHENV, SQLINTEGER, SQLPOINTER, SQLINTEGER)
 
static SQLRETURN(* pSQLSetParam )(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN *)
 
static SQLRETURN(* pSQLSetPos )(SQLHSTMT, SQLSETPOSIROW, SQLUSMALLINT, SQLUSMALLINT)
 
static SQLRETURN(* pSQLSetScrollOptions )(SQLHSTMT, SQLUSMALLINT, SQLLEN, SQLUSMALLINT)
 
static SQLRETURN(* pSQLSetStmtAttr )(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER)
 
static SQLRETURN(* pSQLSetStmtAttrW )(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER)
 
static SQLRETURN(* pSQLSetStmtOption )(SQLHSTMT, SQLUSMALLINT, SQLULEN)
 
static SQLRETURN(* pSQLSpecialColumns )(SQLHSTMT, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT)
 
static SQLRETURN(* pSQLSpecialColumnsW )(SQLHSTMT, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT)
 
static SQLRETURN(* pSQLStatistics )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT)
 
static SQLRETURN(* pSQLStatisticsW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT)
 
static SQLRETURN(* pSQLTablePrivileges )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLTablePrivilegesW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLTables )(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLTablesW )(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
 
static SQLRETURN(* pSQLTransact )(SQLHENV, SQLHDBC, SQLUSMALLINT)
 
static SQLRETURN(* pSQLGetDiagRecA )(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLCHAR *, SQLINTEGER *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
 
static voiddmHandle
 
static int nErrorType
 

Macro Definition Documentation

◆ ERROR_FREE

#define ERROR_FREE   0

Definition at line 180 of file proxyodbc.c.

◆ ERROR_LIBRARY_NOT_FOUND

#define ERROR_LIBRARY_NOT_FOUND   2

Definition at line 182 of file proxyodbc.c.

◆ ERROR_SQLERROR

#define ERROR_SQLERROR   1

Definition at line 181 of file proxyodbc.c.

◆ LOAD_FUNC

#define LOAD_FUNC (   name)
Value:
if ((p##name = wine_dlsym( dmHandle, #name, error, sizeof(error) ))); \
else WARN( "Failed to load %s: %s\n", #name, error )
#define WARN(fmt,...)
Definition: debug.h:115
GLfloat GLfloat p
Definition: glext.h:8902
void * wine_dlsym(void *handle, const char *symbol, char *error, size_t errorsize)
Definition: loader.c:48
#define error(str)
Definition: mkdosfs.c:1605
static void * dmHandle
Definition: proxyodbc.c:184
Definition: name.c:39

Function Documentation

◆ debugstr_sqllen()

static const char * debugstr_sqllen ( SQLLEN  len)
static

Definition at line 813 of file proxyodbc.c.

814{
815#ifdef _WIN64
816 return wine_dbg_sprintf( "%ld", len );
817#else
818 return wine_dbg_sprintf( "%d", len );
819#endif
820}
const char * wine_dbg_sprintf(const char *format,...)
Definition: compat.c:296
GLenum GLsizei len
Definition: glext.h:6722

Referenced by ODBC32_SQLBindCol(), ODBC32_SQLBindParameter(), ODBC32_SQLExtendedFetch(), ODBC32_SQLFetchScroll(), ODBC32_SQLGetData(), ODBC32_SQLPutData(), ODBC32_SQLRowCount(), ODBC32_SQLSetConnectOptionW(), ODBC32_SQLSetDescRec(), and ODBC32_SQLSetScrollOptions().

◆ debugstr_sqlulen()

static const char * debugstr_sqlulen ( SQLULEN  len)
static

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  reason,
LPVOID  reserved 
)

Definition at line 486 of file proxyodbc.c.

487{
488 TRACE("proxy ODBC: %p,%x,%p\n", hinstDLL, reason, reserved);
489
490 switch (reason)
491 {
495 {
498 }
499 break;
500
502 if (reserved) break;
504 }
505
506 return TRUE;
507}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
r reserved
Definition: btrfs.c:3006
int wine_dlclose(void *handle, char *error, size_t errorsize)
Definition: loader.c:58
static BOOL ODBC_LoadDriverManager(void)
Definition: proxyodbc.c:519
static void ODBC_ReplicateToRegistry(void)
Definition: proxyodbc.c:459
static BOOL ODBC_LoadDMFunctions(void)
Definition: proxyodbc.c:554
#define TRACE(s)
Definition: solgame.cpp:4

◆ ODBC32_SQLAllocConnect()

SQLRETURN WINAPI ODBC32_SQLAllocConnect ( SQLHENV  EnvironmentHandle,
SQLHDBC ConnectionHandle 
)

Definition at line 690 of file proxyodbc.c.

691{
693
694 TRACE("(EnvironmentHandle %p, ConnectionHandle %p)\n", EnvironmentHandle, ConnectionHandle);
695
696 if (!pSQLAllocConnect)
697 {
699 TRACE("Not ready\n");
700 return SQL_ERROR;
701 }
702
703 ret = pSQLAllocConnect(EnvironmentHandle, ConnectionHandle);
704 TRACE("Returning %d, ConnectionHandle %p\n", ret, *ConnectionHandle);
705 return ret;
706}
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4538
static SQLRETURN(* pSQLAllocConnect)(SQLHENV, SQLHDBC *)
Definition: proxyodbc.c:61
#define SQL_NULL_HDBC
Definition: sql.h:137
#define SQL_ERROR
Definition: sql.h:68
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
int ret

◆ ODBC32_SQLAllocEnv()

SQLRETURN WINAPI ODBC32_SQLAllocEnv ( SQLHENV EnvironmentHandle)

Definition at line 711 of file proxyodbc.c.

712{
714
715 TRACE("(EnvironmentHandle %p)\n", EnvironmentHandle);
716
717 if (!pSQLAllocEnv)
718 {
719 *EnvironmentHandle = SQL_NULL_HENV;
720 TRACE("Not ready\n");
721 return SQL_ERROR;
722 }
723
724 ret = pSQLAllocEnv(EnvironmentHandle);
725 TRACE("Returning %d, EnvironmentHandle %p\n", ret, *EnvironmentHandle);
726 return ret;
727}
static SQLRETURN(* pSQLAllocEnv)(SQLHENV *)
Definition: proxyodbc.c:62
#define SQL_NULL_HENV
Definition: sql.h:138

Referenced by ODBC_ReplicateToRegistry().

◆ ODBC32_SQLAllocHandle()

SQLRETURN WINAPI ODBC32_SQLAllocHandle ( SQLSMALLINT  HandleType,
SQLHANDLE  InputHandle,
SQLHANDLE *  OutputHandle 
)

Definition at line 732 of file proxyodbc.c.

733{
735
736 TRACE("(HandleType %d, InputHandle %p, OutputHandle %p)\n", HandleType, InputHandle, OutputHandle);
737
738 if (!pSQLAllocHandle)
739 {
741 WARN("ProxyODBC: Cannot load ODBC driver manager library.\n");
742
743 if (HandleType == SQL_HANDLE_ENV)
745 else if (HandleType == SQL_HANDLE_DBC)
747 else if (HandleType == SQL_HANDLE_STMT)
749 else if (HandleType == SQL_HANDLE_DESC)
751
752 TRACE ("Not ready\n");
753 return SQL_ERROR;
754 }
755
757 TRACE("Returning %d, Handle %p\n", ret, *OutputHandle);
758 return ret;
759}
HANDLE InputHandle
Definition: apc.c:9
HANDLE OutputHandle
Definition: apc.c:8
static int nErrorType
Definition: proxyodbc.c:185
#define ERROR_LIBRARY_NOT_FOUND
Definition: proxyodbc.c:182
static SQLRETURN(* pSQLAllocHandle)(SQLSMALLINT, SQLHANDLE, SQLHANDLE *)
Definition: proxyodbc.c:63
#define SQL_HANDLE_STMT
Definition: sql.h:306
#define SQL_NULL_HSTMT
Definition: sql.h:139
#define SQL_NULL_HDESC
Definition: sql.h:318
#define SQL_HANDLE_ENV
Definition: sql.h:305
#define SQL_HANDLE_DESC
Definition: sql.h:304
#define SQL_HANDLE_DBC
Definition: sql.h:303

◆ ODBC32_SQLAllocHandleStd()

SQLRETURN WINAPI ODBC32_SQLAllocHandleStd ( SQLSMALLINT  HandleType,
SQLHANDLE  InputHandle,
SQLHANDLE *  OutputHandle 
)

Definition at line 785 of file proxyodbc.c.

786{
788
789 TRACE("(HandleType %d, InputHandle %p, OutputHandle %p)\n", HandleType, InputHandle, OutputHandle);
790
792 {
794 WARN("ProxyODBC: Cannot load ODBC driver manager library.\n");
795
796 if (HandleType == SQL_HANDLE_ENV)
798 else if (HandleType == SQL_HANDLE_DBC)
800 else if (HandleType == SQL_HANDLE_STMT)
802 else if (HandleType == SQL_HANDLE_DESC)
804
805 return SQL_ERROR;
806 }
807
809 TRACE ("Returning %d, OutputHandle %p\n", ret, *OutputHandle);
810 return ret;
811}
static SQLRETURN(* pSQLAllocHandleStd)(SQLSMALLINT, SQLHANDLE, SQLHANDLE *)
Definition: proxyodbc.c:64

◆ ODBC32_SQLAllocStmt()

SQLRETURN WINAPI ODBC32_SQLAllocStmt ( SQLHDBC  ConnectionHandle,
SQLHSTMT StatementHandle 
)

Definition at line 764 of file proxyodbc.c.

765{
767
768 TRACE("(ConnectionHandle %p, StatementHandle %p)\n", ConnectionHandle, StatementHandle);
769
770 if (!pSQLAllocStmt)
771 {
772 *StatementHandle = SQL_NULL_HSTMT;
773 TRACE("Not ready\n");
774 return SQL_ERROR;
775 }
776
777 ret = pSQLAllocStmt(ConnectionHandle, StatementHandle);
778 TRACE ("Returning %d, StatementHandle %p\n", ret, *StatementHandle);
779 return ret;
780}
static SQLRETURN(* pSQLAllocStmt)(SQLHDBC, SQLHSTMT *)
Definition: proxyodbc.c:65

◆ ODBC32_SQLBindCol()

SQLRETURN WINAPI ODBC32_SQLBindCol ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLSMALLINT  TargetType,
SQLPOINTER  TargetValue,
SQLLEN  BufferLength,
SQLLEN StrLen_or_Ind 
)

Definition at line 825 of file proxyodbc.c.

827{
829
830 TRACE("(StatementHandle %p, ColumnNumber %d, TargetType %d, TargetValue %p, BufferLength %s, StrLen_or_Ind %p)\n",
831 StatementHandle, ColumnNumber, TargetType, TargetValue, debugstr_sqllen(BufferLength), StrLen_or_Ind);
832
833 if (!pSQLBindCol)
834 {
835 TRACE("Not ready\n");
836 return SQL_ERROR;
837 }
838
839 ret = pSQLBindCol(StatementHandle, ColumnNumber, TargetType, TargetValue, BufferLength, StrLen_or_Ind);
840 TRACE ("Returning %d\n", ret);
841 return ret;
842}
static const char * debugstr_sqllen(SQLLEN len)
Definition: proxyodbc.c:813
static SQLRETURN(* pSQLBindCol)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
Definition: proxyodbc.c:66
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3771

◆ ODBC32_SQLBindParam()

SQLRETURN WINAPI ODBC32_SQLBindParam ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ParameterNumber,
SQLSMALLINT  ValueType,
SQLSMALLINT  ParameterType,
SQLULEN  LengthPrecision,
SQLSMALLINT  ParameterScale,
SQLPOINTER  ParameterValue,
SQLLEN StrLen_or_Ind 
)

Definition at line 856 of file proxyodbc.c.

859{
861
862 TRACE("(StatementHandle %p, ParameterNumber %d, ValueType %d, ParameterType %d, LengthPrecision %s,"
863 " ParameterScale %d, ParameterValue %p, StrLen_or_Ind %p)\n", StatementHandle, ParameterNumber, ValueType,
864 ParameterType, debugstr_sqlulen(LengthPrecision), ParameterScale, ParameterValue, StrLen_or_Ind);
865
866 if (!pSQLBindParam) return SQL_ERROR;
867
868 ret = pSQLBindParam(StatementHandle, ParameterNumber, ValueType, ParameterType, LengthPrecision, ParameterScale,
869 ParameterValue, StrLen_or_Ind);
870 TRACE ("Returning %d\n", ret);
871 return ret;
872}
_In_opt_ PWSTR _In_ PWSTR _Inout_ PULONG ParameterValue
Definition: cdrom.h:963
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_CONFIGURATION_PARAMETER _In_ NDIS_HANDLE _In_ PNDIS_STRING _In_ NDIS_PARAMETER_TYPE ParameterType
Definition: ndis.h:4417
static SQLRETURN(* pSQLBindParam)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN *)
Definition: proxyodbc.c:67
static const char * debugstr_sqlulen(SQLULEN len)
Definition: proxyodbc.c:844
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG _Out_opt_ PULONG _Out_opt_ PULONG ValueType
Definition: wdfregistry.h:282

◆ ODBC32_SQLBindParameter()

SQLRETURN WINAPI ODBC32_SQLBindParameter ( SQLHSTMT  hstmt,
SQLUSMALLINT  ipar,
SQLSMALLINT  fParamType,
SQLSMALLINT  fCType,
SQLSMALLINT  fSqlType,
SQLULEN  cbColDef,
SQLSMALLINT  ibScale,
SQLPOINTER  rgbValue,
SQLLEN  cbValueMax,
SQLLEN pcbValue 
)

Definition at line 2213 of file proxyodbc.c.

2217{
2218 SQLRETURN ret;
2219
2220 TRACE("(hstmt %p, ipar %d, fParamType %d, fCType %d, fSqlType %d, cbColDef %s, ibScale %d, rgbValue %p,"
2221 " cbValueMax %s, pcbValue %p)\n", hstmt, ipar, fParamType, fCType, fSqlType, debugstr_sqlulen(cbColDef),
2222 ibScale, rgbValue, debugstr_sqllen(cbValueMax), pcbValue);
2223
2224 if (!pSQLBindParameter) return SQL_ERROR;
2225
2226 ret = pSQLBindParameter(hstmt, ipar, fParamType, fCType, fSqlType, cbColDef, ibScale, rgbValue, cbValueMax,
2227 pcbValue);
2228 TRACE("Returning %d\n", ret);
2229 return ret;
2230}
static SQLRETURN(* pSQLBindParameter)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
Definition: proxyodbc.c:68

◆ ODBC32_SQLBrowseConnect()

SQLRETURN WINAPI ODBC32_SQLBrowseConnect ( SQLHDBC  hdbc,
SQLCHAR szConnStrIn,
SQLSMALLINT  cbConnStrIn,
SQLCHAR szConnStrOut,
SQLSMALLINT  cbConnStrOutMax,
SQLSMALLINT pcbConnStrOut 
)

Definition at line 1869 of file proxyodbc.c.

1872{
1873 SQLRETURN ret;
1874
1875 TRACE("(hdbc %p, szConnStrIn %s, cbConnStrIn %d, szConnStrOut %p, cbConnStrOutMax %d, pcbConnStrOut %p)\n",
1876 hdbc, debugstr_an((const char *)szConnStrIn, cbConnStrIn), cbConnStrIn, szConnStrOut, cbConnStrOutMax,
1877 pcbConnStrOut);
1878
1879 if (!pSQLBrowseConnect) return SQL_ERROR;
1880
1881 ret = pSQLBrowseConnect(hdbc, szConnStrIn, cbConnStrIn, szConnStrOut, cbConnStrOutMax, pcbConnStrOut);
1882 TRACE("Returning %d\n", ret);
1883 return ret;
1884}
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:55
static SQLRETURN(* pSQLBrowseConnect)(SQLHDBC, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:69

◆ ODBC32_SQLBrowseConnectW()

SQLRETURN WINAPI ODBC32_SQLBrowseConnectW ( SQLHDBC  hdbc,
SQLWCHAR szConnStrIn,
SQLSMALLINT  cbConnStrIn,
SQLWCHAR szConnStrOut,
SQLSMALLINT  cbConnStrOutMax,
SQLSMALLINT pcbConnStrOut 
)

Definition at line 2834 of file proxyodbc.c.

2837{
2838 SQLRETURN ret;
2839
2840 TRACE("(hdbc %p, szConnStrIn %s, cbConnStrIn %d, szConnStrOut %p, cbConnStrOutMax %d, pcbConnStrOut %p)\n",
2841 hdbc, debugstr_wn(szConnStrIn, cbConnStrIn), cbConnStrIn, szConnStrOut, cbConnStrOutMax, pcbConnStrOut);
2842
2843 if (!pSQLBrowseConnectW) return SQL_ERROR;
2844
2845 ret = pSQLBrowseConnectW(hdbc, szConnStrIn, cbConnStrIn, szConnStrOut, cbConnStrOutMax, pcbConnStrOut);
2846 TRACE("Returning %d\n", ret);
2847 return ret;
2848}
#define debugstr_wn
Definition: kernel32.h:33
static SQLRETURN(* pSQLBrowseConnectW)(SQLHDBC, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:70

◆ ODBC32_SQLBulkOperations()

SQLRETURN WINAPI ODBC32_SQLBulkOperations ( SQLHSTMT  StatementHandle,
SQLSMALLINT  Operation 
)

Definition at line 1889 of file proxyodbc.c.

1890{
1891 SQLRETURN ret;
1892
1893 TRACE("(StatementHandle %p, Operation %d)\n", StatementHandle, Operation);
1894
1895 if (!pSQLBulkOperations) return SQL_ERROR;
1896
1897 ret = pSQLBulkOperations(StatementHandle, Operation);
1898 TRACE("Returning %d\n", ret);
1899 return ret;
1900}
FP_OP Operation
Definition: fpcontrol.c:150
static SQLRETURN(* pSQLBulkOperations)(SQLHSTMT, SQLSMALLINT)
Definition: proxyodbc.c:71

◆ ODBC32_SQLCancel()

SQLRETURN WINAPI ODBC32_SQLCancel ( SQLHSTMT  StatementHandle)

Definition at line 877 of file proxyodbc.c.

878{
880
881 TRACE("(StatementHandle %p)\n", StatementHandle);
882
883 if (!pSQLCancel) return SQL_ERROR;
884
885 ret = pSQLCancel(StatementHandle);
886 TRACE("Returning %d\n", ret);
887 return ret;
888}
static SQLRETURN(* pSQLCancel)(SQLHSTMT)
Definition: proxyodbc.c:72

◆ ODBC32_SQLCloseCursor()

SQLRETURN WINAPI ODBC32_SQLCloseCursor ( SQLHSTMT  StatementHandle)

Definition at line 893 of file proxyodbc.c.

894{
896
897 TRACE("(StatementHandle %p)\n", StatementHandle);
898
899 if (!pSQLCloseCursor) return SQL_ERROR;
900
901 ret = pSQLCloseCursor(StatementHandle);
902 TRACE("Returning %d\n", ret);
903 return ret;
904}
static SQLRETURN(* pSQLCloseCursor)(SQLHSTMT)
Definition: proxyodbc.c:73

◆ ODBC32_SQLColAttribute()

SQLRETURN WINAPI ODBC32_SQLColAttribute ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLUSMALLINT  FieldIdentifier,
SQLPOINTER  CharacterAttribute,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength,
SQLLEN NumericAttribute 
)

Definition at line 909 of file proxyodbc.c.

913{
915
916 TRACE("(StatementHandle %p, ColumnNumber %d, FieldIdentifier %d, CharacterAttribute %p, BufferLength %d,"
917 " StringLength %p, NumericAttribute %p)\n", StatementHandle, ColumnNumber, FieldIdentifier,
918 CharacterAttribute, BufferLength, StringLength, NumericAttribute);
919
920 if (!pSQLColAttribute) return SQL_ERROR;
921
922 ret = pSQLColAttribute(StatementHandle, ColumnNumber, FieldIdentifier, CharacterAttribute, BufferLength,
923 StringLength, NumericAttribute);
924 TRACE("Returning %d\n", ret);
925 return ret;
926}
static SQLRETURN(* pSQLColAttribute)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
Definition: proxyodbc.c:74

◆ ODBC32_SQLColAttributes()

SQLRETURN WINAPI ODBC32_SQLColAttributes ( SQLHSTMT  hstmt,
SQLUSMALLINT  icol,
SQLUSMALLINT  fDescType,
SQLPOINTER  rgbDesc,
SQLSMALLINT  cbDescMax,
SQLSMALLINT pcbDesc,
SQLLEN pfDesc 
)

Definition at line 1905 of file proxyodbc.c.

1908{
1909 SQLRETURN ret;
1910
1911 TRACE("(hstmt %p, icol %d, fDescType %d, rgbDesc %p, cbDescMax %d, pcbDesc %p, pfDesc %p)\n", hstmt, icol,
1912 fDescType, rgbDesc, cbDescMax, pcbDesc, pfDesc);
1913
1914 if (!pSQLColAttributes) return SQL_ERROR;
1915
1916 ret = pSQLColAttributes(hstmt, icol, fDescType, rgbDesc, cbDescMax, pcbDesc, pfDesc);
1917 TRACE("Returning %d\n", ret);
1918 return ret;
1919}
static SQLRETURN(* pSQLColAttributes)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
Definition: proxyodbc.c:76

◆ ODBC32_SQLColAttributesW()

SQLRETURN WINAPI ODBC32_SQLColAttributesW ( SQLHSTMT  hstmt,
SQLUSMALLINT  icol,
SQLUSMALLINT  fDescType,
SQLPOINTER  rgbDesc,
SQLSMALLINT  cbDescMax,
SQLSMALLINT pcbDesc,
SQLLEN pfDesc 
)

Definition at line 2305 of file proxyodbc.c.

2308{
2309 SQLRETURN ret;
2310
2311 TRACE("(hstmt %p, icol %d, fDescType %d, rgbDesc %p, cbDescMax %d, pcbDesc %p, pfDesc %p)\n", hstmt, icol,
2312 fDescType, rgbDesc, cbDescMax, pcbDesc, pfDesc);
2313
2314 if (!pSQLColAttributesW) return SQL_ERROR;
2315
2316 ret = pSQLColAttributesW(hstmt, icol, fDescType, rgbDesc, cbDescMax, pcbDesc, pfDesc);
2317
2318 if (ret == SQL_SUCCESS && SQLColAttributes_KnownStringAttribute(fDescType) && rgbDesc && pcbDesc &&
2319 *pcbDesc != lstrlenW(rgbDesc) * 2)
2320 {
2321 TRACE("CHEAT: resetting name length for ADO\n");
2322 *pcbDesc = lstrlenW(rgbDesc) * 2;
2323 }
2324
2325 TRACE("Returning %d\n", ret);
2326 return ret;
2327}
#define lstrlenW
Definition: compat.h:750
static SQLRETURN(* pSQLColAttributesW)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
Definition: proxyodbc.c:77
static BOOL SQLColAttributes_KnownStringAttribute(SQLUSMALLINT fDescType)
Definition: proxyodbc.c:2272
#define SQL_SUCCESS
Definition: sql.h:163

◆ ODBC32_SQLColAttributeW()

SQLRETURN WINAPI ODBC32_SQLColAttributeW ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLUSMALLINT  FieldIdentifier,
SQLPOINTER  CharacterAttribute,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength,
SQLLEN NumericAttribute 
)

Definition at line 2482 of file proxyodbc.c.

2486{
2487 SQLRETURN ret;
2488
2489 TRACE("StatementHandle %p ColumnNumber %d FieldIdentifier %d CharacterAttribute %p BufferLength %d"
2490 " StringLength %p NumericAttribute %p\n", StatementHandle, ColumnNumber, FieldIdentifier,
2491 CharacterAttribute, BufferLength, StringLength, NumericAttribute);
2492
2493 if (!pSQLColAttributeW) return SQL_ERROR;
2494
2495 ret = pSQLColAttributeW(StatementHandle, ColumnNumber, FieldIdentifier, CharacterAttribute, BufferLength,
2496 StringLength, NumericAttribute);
2497
2498 if (ret == SQL_SUCCESS && CharacterAttribute != NULL && SQLColAttributes_KnownStringAttribute(FieldIdentifier) &&
2499 StringLength && *StringLength != lstrlenW(CharacterAttribute) * 2)
2500 {
2501 TRACE("CHEAT: resetting name length for ADO\n");
2502 *StringLength = lstrlenW(CharacterAttribute) * 2;
2503 }
2504
2505 TRACE("Returning %d\n", ret);
2506 return ret;
2507}
static SQLRETURN(* pSQLColAttributeW)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
Definition: proxyodbc.c:75

◆ ODBC32_SQLColumnPrivileges()

SQLRETURN WINAPI ODBC32_SQLColumnPrivileges ( SQLHSTMT  hstmt,
SQLCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLCHAR szTableName,
SQLSMALLINT  cbTableName,
SQLCHAR szColumnName,
SQLSMALLINT  cbColumnName 
)

Definition at line 1924 of file proxyodbc.c.

1927{
1928 SQLRETURN ret;
1929
1930 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szTableName %s,"
1931 " cbTableName %d, szColumnName %s, cbColumnName %d)\n", hstmt,
1932 debugstr_an((const char *)szCatalogName, cbCatalogName), cbCatalogName,
1933 debugstr_an((const char *)szSchemaName, cbSchemaName), cbSchemaName,
1934 debugstr_an((const char *)szTableName, cbTableName), cbTableName,
1935 debugstr_an((const char *)szColumnName, cbColumnName), cbColumnName);
1936
1937 if (!pSQLColumnPrivileges) return SQL_ERROR;
1938
1939 ret = pSQLColumnPrivileges(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName,
1940 szTableName, cbTableName, szColumnName, cbColumnName);
1941 TRACE("Returning %d\n", ret);
1942 return ret;
1943}
static SQLRETURN(* pSQLColumnPrivileges)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:78

◆ ODBC32_SQLColumnPrivilegesW()

SQLRETURN WINAPI ODBC32_SQLColumnPrivilegesW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szTableName,
SQLSMALLINT  cbTableName,
SQLWCHAR szColumnName,
SQLSMALLINT  cbColumnName 
)

Definition at line 2853 of file proxyodbc.c.

2856{
2857 SQLRETURN ret;
2858
2859 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szTableName %s,"
2860 " cbTableName %d, szColumnName %s, cbColumnName %d)\n", hstmt,
2861 debugstr_wn(szCatalogName, cbCatalogName), cbCatalogName,
2862 debugstr_wn(szSchemaName, cbSchemaName), cbSchemaName,
2863 debugstr_wn(szTableName, cbTableName), cbTableName,
2864 debugstr_wn(szColumnName, cbColumnName), cbColumnName);
2865
2866 if (!pSQLColumnPrivilegesW) return SQL_ERROR;
2867
2868 ret = pSQLColumnPrivilegesW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName,
2869 cbTableName, szColumnName, cbColumnName);
2870 TRACE("Returning %d\n", ret);
2871 return ret;
2872}
static SQLRETURN(* pSQLColumnPrivilegesW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:79

◆ ODBC32_SQLColumns()

SQLRETURN WINAPI ODBC32_SQLColumns ( SQLHSTMT  StatementHandle,
SQLCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLCHAR TableName,
SQLSMALLINT  NameLength3,
SQLCHAR ColumnName,
SQLSMALLINT  NameLength4 
)

Definition at line 931 of file proxyodbc.c.

934{
936
937 TRACE("(StatementHandle %p, CatalogName %s, NameLength1 %d, SchemaName %s, NameLength2 %d, TableName %s,"
938 " NameLength3 %d, ColumnName %s, NameLength4 %d)\n", StatementHandle,
939 debugstr_an((const char *)CatalogName, NameLength1), NameLength1,
940 debugstr_an((const char *)SchemaName, NameLength2), NameLength2,
941 debugstr_an((const char *)TableName, NameLength3), NameLength3,
942 debugstr_an((const char *)ColumnName, NameLength4), NameLength4);
943
944 if (!pSQLColumns) return SQL_ERROR;
945
946 ret = pSQLColumns(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName,
947 NameLength3, ColumnName, NameLength4);
948 TRACE("Returning %d\n", ret);
949 return ret;
950}
static SQLRETURN(* pSQLColumns)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:80

◆ ODBC32_SQLColumnsW()

SQLRETURN WINAPI ODBC32_SQLColumnsW ( SQLHSTMT  StatementHandle,
WCHAR CatalogName,
SQLSMALLINT  NameLength1,
WCHAR SchemaName,
SQLSMALLINT  NameLength2,
WCHAR TableName,
SQLSMALLINT  NameLength3,
WCHAR ColumnName,
SQLSMALLINT  NameLength4 
)

Definition at line 2651 of file proxyodbc.c.

2654{
2655 SQLRETURN ret;
2656
2657 TRACE("(StatementHandle %p, CatalogName %s, NameLength1 %d, SchemaName %s, NameLength2 %d, TableName %s,"
2658 " NameLength3 %d, ColumnName %s, NameLength4 %d)\n", StatementHandle,
2659 debugstr_wn(CatalogName, NameLength1), NameLength1, debugstr_wn(SchemaName, NameLength2), NameLength2,
2660 debugstr_wn(TableName, NameLength3), NameLength3, debugstr_wn(ColumnName, NameLength4), NameLength4);
2661
2662 if (!pSQLColumnsW) return SQL_ERROR;
2663
2664 ret = pSQLColumnsW(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName, NameLength3,
2665 ColumnName, NameLength4);
2666 TRACE("Returning %d\n", ret);
2667 return ret;
2668}
static SQLRETURN(* pSQLColumnsW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:81

◆ ODBC32_SQLConnect()

SQLRETURN WINAPI ODBC32_SQLConnect ( SQLHDBC  ConnectionHandle,
SQLCHAR ServerName,
SQLSMALLINT  NameLength1,
SQLCHAR UserName,
SQLSMALLINT  NameLength2,
SQLCHAR Authentication,
SQLSMALLINT  NameLength3 
)

Definition at line 955 of file proxyodbc.c.

958{
960
961 TRACE("(ConnectionHandle %p, ServerName %s, NameLength1 %d, UserName %s, NameLength2 %d, Authentication %s,"
962 " NameLength3 %d)\n", ConnectionHandle,
963 debugstr_an((const char *)ServerName, NameLength1), NameLength1,
964 debugstr_an((const char *)UserName, NameLength2), NameLength2,
965 debugstr_an((const char *)Authentication, NameLength3), NameLength3);
966
967 if (!pSQLConnect) return SQL_ERROR;
968
969 ret = pSQLConnect(ConnectionHandle, ServerName, NameLength1, UserName, NameLength2, Authentication, NameLength3);
970 TRACE("Returning %d\n", ret);
971 return ret;
972}
static SQLRETURN(* pSQLConnect)(SQLHDBC, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:82

◆ ODBC32_SQLConnectW()

SQLRETURN WINAPI ODBC32_SQLConnectW ( SQLHDBC  ConnectionHandle,
WCHAR ServerName,
SQLSMALLINT  NameLength1,
WCHAR UserName,
SQLSMALLINT  NameLength2,
WCHAR Authentication,
SQLSMALLINT  NameLength3 
)

Definition at line 2332 of file proxyodbc.c.

2335{
2336 SQLRETURN ret;
2337
2338 TRACE("(ConnectionHandle %p, ServerName %s, NameLength1 %d, UserName %s, NameLength2 %d, Authentication %s,"
2339 " NameLength3 %d)\n", ConnectionHandle, debugstr_wn(ServerName, NameLength1), NameLength1,
2340 debugstr_wn(UserName, NameLength2), NameLength2, debugstr_wn(Authentication, NameLength3), NameLength3);
2341
2342 if (!pSQLConnectW) return SQL_ERROR;
2343
2344 ret = pSQLConnectW(ConnectionHandle, ServerName, NameLength1, UserName, NameLength2, Authentication, NameLength3);
2345 TRACE("Returning %d\n", ret);
2346 return ret;
2347}
static SQLRETURN(* pSQLConnectW)(SQLHDBC, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:83

◆ ODBC32_SQLCopyDesc()

SQLRETURN WINAPI ODBC32_SQLCopyDesc ( SQLHDESC  SourceDescHandle,
SQLHDESC  TargetDescHandle 
)

Definition at line 977 of file proxyodbc.c.

978{
980
981 TRACE("(SourceDescHandle %p, TargetDescHandle %p)\n", SourceDescHandle, TargetDescHandle);
982
983 if (!pSQLCopyDesc) return SQL_ERROR;
984
985 ret = pSQLCopyDesc(SourceDescHandle, TargetDescHandle);
986 TRACE("Returning %d\n", ret);
987 return ret;
988}
static SQLRETURN(* pSQLCopyDesc)(SQLHDESC, SQLHDESC)
Definition: proxyodbc.c:84

◆ ODBC32_SQLDataSources()

SQLRETURN WINAPI ODBC32_SQLDataSources ( SQLHENV  EnvironmentHandle,
SQLUSMALLINT  Direction,
SQLCHAR ServerName,
SQLSMALLINT  BufferLength1,
SQLSMALLINT NameLength1,
SQLCHAR Description,
SQLSMALLINT  BufferLength2,
SQLSMALLINT NameLength2 
)

Definition at line 993 of file proxyodbc.c.

996{
998
999 TRACE("(EnvironmentHandle %p, Direction %d, ServerName %p, BufferLength1 %d, NameLength1 %p, Description %p,"
1000 " BufferLength2 %d, NameLength2 %p)\n", EnvironmentHandle, Direction, ServerName, BufferLength1,
1001 NameLength1, Description, BufferLength2, NameLength2);
1002
1003 if (!pSQLDataSources) return SQL_ERROR;
1004
1005 ret = pSQLDataSources(EnvironmentHandle, Direction, ServerName, BufferLength1, NameLength1, Description,
1006 BufferLength2, NameLength2);
1007 if (ret >= 0 && TRACE_ON(odbc))
1008 {
1009 if (ServerName && NameLength1 && *NameLength1 > 0)
1010 TRACE(" DataSource %s", debugstr_an((const char *)ServerName, *NameLength1));
1011 if (Description && NameLength2 && *NameLength2 > 0)
1012 TRACE(" Description %s", debugstr_an((const char *)Description, *NameLength2));
1013 TRACE("\n");
1014 }
1015
1016 TRACE("Returning %d\n", ret);
1017 return ret;
1018}
static const WCHAR Description[]
Definition: oid.c:1266
#define TRACE_ON(x)
Definition: compat.h:75
static SQLRETURN(* pSQLDataSources)(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:85
WDF_EXTERN_C_START typedef _In_ WDFDEVICE _In_ WDFCONTEXT _In_ WDF_DMA_DIRECTION Direction

Referenced by ODBC_ReplicateODBCToRegistry().

◆ ODBC32_SQLDataSourcesA()

SQLRETURN WINAPI ODBC32_SQLDataSourcesA ( SQLHENV  EnvironmentHandle,
SQLUSMALLINT  Direction,
SQLCHAR ServerName,
SQLSMALLINT  BufferLength1,
SQLSMALLINT NameLength1,
SQLCHAR Description,
SQLSMALLINT  BufferLength2,
SQLSMALLINT NameLength2 
)

Definition at line 1020 of file proxyodbc.c.

1023{
1024 SQLRETURN ret;
1025
1026 TRACE("(EnvironmentHandle %p, Direction %d, ServerName %p, BufferLength1 %d, NameLength1 %p, Description %p,"
1027 " BufferLength2 %d, NameLength2 %p)\n", EnvironmentHandle, Direction, ServerName, BufferLength1,
1028 NameLength1, Description, BufferLength2, NameLength2);
1029
1030 if (!pSQLDataSourcesA) return SQL_ERROR;
1031
1032 ret = pSQLDataSourcesA(EnvironmentHandle, Direction, ServerName, BufferLength1, NameLength1, Description,
1033 BufferLength2, NameLength2);
1034 if (TRACE_ON(odbc))
1035 {
1036 if (ServerName && NameLength1 && *NameLength1 > 0)
1037 TRACE(" DataSource %s", debugstr_an((const char *)ServerName, *NameLength1));
1038 if (Description && NameLength2 && *NameLength2 > 0)
1039 TRACE(" Description %s", debugstr_an((const char *)Description, *NameLength2));
1040 TRACE("\n");
1041 }
1042
1043 TRACE("Returning %d\n", ret);
1044 return ret;
1045}
static SQLRETURN(* pSQLDataSourcesA)(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:86

◆ ODBC32_SQLDataSourcesW()

SQLRETURN WINAPI ODBC32_SQLDataSourcesW ( SQLHENV  EnvironmentHandle,
SQLUSMALLINT  Direction,
WCHAR ServerName,
SQLSMALLINT  BufferLength1,
SQLSMALLINT NameLength1,
WCHAR Description,
SQLSMALLINT  BufferLength2,
SQLSMALLINT NameLength2 
)

Definition at line 2877 of file proxyodbc.c.

2880{
2881 SQLRETURN ret;
2882
2883 TRACE("(EnvironmentHandle %p, Direction %d, ServerName %p, BufferLength1 %d, NameLength1 %p, Description %p,"
2884 " BufferLength2 %d, NameLength2 %p)\n", EnvironmentHandle, Direction, ServerName, BufferLength1,
2885 NameLength1, Description, BufferLength2, NameLength2);
2886
2887 if (!pSQLDataSourcesW) return SQL_ERROR;
2888
2889 ret = pSQLDataSourcesW(EnvironmentHandle, Direction, ServerName, BufferLength1, NameLength1, Description,
2890 BufferLength2, NameLength2);
2891
2892 if (ret >= 0 && TRACE_ON(odbc))
2893 {
2894 if (ServerName && NameLength1 && *NameLength1 > 0)
2895 TRACE(" DataSource %s", debugstr_wn(ServerName, *NameLength1));
2896 if (Description && NameLength2 && *NameLength2 > 0)
2897 TRACE(" Description %s", debugstr_wn(Description, *NameLength2));
2898 TRACE("\n");
2899 }
2900
2901 TRACE("Returning %d\n", ret);
2902 return ret;
2903}
static SQLRETURN(* pSQLDataSourcesW)(SQLHENV, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:87

◆ ODBC32_SQLDescribeCol()

SQLRETURN WINAPI ODBC32_SQLDescribeCol ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLCHAR ColumnName,
SQLSMALLINT  BufferLength,
SQLSMALLINT NameLength,
SQLSMALLINT DataType,
SQLULEN ColumnSize,
SQLSMALLINT DecimalDigits,
SQLSMALLINT Nullable 
)

Definition at line 1050 of file proxyodbc.c.

1053{
1055 SQLRETURN ret;
1056
1057 TRACE("(StatementHandle %p, ColumnNumber %d, ColumnName %p, BufferLength %d, NameLength %p, DataType %p,"
1058 " ColumnSize %p, DecimalDigits %p, Nullable %p)\n", StatementHandle, ColumnNumber, ColumnName,
1059 BufferLength, NameLength, DataType, ColumnSize, DecimalDigits, Nullable);
1060
1061 if (!pSQLDescribeCol) return SQL_ERROR;
1062 if (!NameLength) NameLength = &dummy; /* workaround for drivers that don't accept NULL NameLength */
1063
1064 ret = pSQLDescribeCol(StatementHandle, ColumnNumber, ColumnName, BufferLength, NameLength, DataType, ColumnSize,
1065 DecimalDigits, Nullable);
1066 if (ret >= 0)
1067 {
1068 if (ColumnName && NameLength) TRACE(" ColumnName %s\n", debugstr_an((const char *)ColumnName, *NameLength));
1069 if (DataType) TRACE(" DataType %d\n", *DataType);
1070 if (ColumnSize) TRACE(" ColumnSize %s\n", debugstr_sqlulen(*ColumnSize));
1071 if (DecimalDigits) TRACE(" DecimalDigits %d\n", *DecimalDigits);
1072 if (Nullable) TRACE(" Nullable %d\n", *Nullable);
1073 }
1074
1075 TRACE("Returning %d\n", ret);
1076 return ret;
1077}
static SQLRETURN(* pSQLDescribeCol)(SQLHSTMT, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:88
DataType
Definition: simd.h:252
SWORD SQLSMALLINT
Definition: sqltypes.h:31

◆ ODBC32_SQLDescribeColW()

SQLRETURN WINAPI ODBC32_SQLDescribeColW ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
WCHAR ColumnName,
SQLSMALLINT  BufferLength,
SQLSMALLINT NameLength,
SQLSMALLINT DataType,
SQLULEN ColumnSize,
SQLSMALLINT DecimalDigits,
SQLSMALLINT Nullable 
)

Definition at line 2352 of file proxyodbc.c.

2355{
2357 SQLRETURN ret;
2358
2359 TRACE("(StatementHandle %p, ColumnNumber %d, ColumnName %p, BufferLength %d, NameLength %p, DataType %p,"
2360 " ColumnSize %p, DecimalDigits %p, Nullable %p)\n", StatementHandle, ColumnNumber, ColumnName,
2361 BufferLength, NameLength, DataType, ColumnSize, DecimalDigits, Nullable);
2362
2363 if (!pSQLDescribeColW) return SQL_ERROR;
2364 if (!NameLength) NameLength = &dummy; /* workaround for drivers that don't accept NULL NameLength */
2365
2366 ret = pSQLDescribeColW(StatementHandle, ColumnNumber, ColumnName, BufferLength, NameLength, DataType, ColumnSize,
2367 DecimalDigits, Nullable);
2368 if (ret >= 0)
2369 {
2370 if (ColumnName && NameLength) TRACE("ColumnName %s\n", debugstr_wn(ColumnName, *NameLength));
2371 if (DataType) TRACE("DataType %d\n", *DataType);
2372 if (ColumnSize) TRACE("ColumnSize %s\n", debugstr_sqlulen(*ColumnSize));
2373 if (DecimalDigits) TRACE("DecimalDigits %d\n", *DecimalDigits);
2374 if (Nullable) TRACE("Nullable %d\n", *Nullable);
2375 }
2376
2377 TRACE("Returning %d\n", ret);
2378 return ret;
2379}
static SQLRETURN(* pSQLDescribeColW)(SQLHSTMT, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:89

◆ ODBC32_SQLDescribeParam()

SQLRETURN WINAPI ODBC32_SQLDescribeParam ( SQLHSTMT  hstmt,
SQLUSMALLINT  ipar,
SQLSMALLINT pfSqlType,
SQLULEN pcbParamDef,
SQLSMALLINT pibScale,
SQLSMALLINT pfNullable 
)

Definition at line 1948 of file proxyodbc.c.

1950{
1951 SQLRETURN ret;
1952
1953 TRACE("(hstmt %p, ipar %d, pfSqlType %p, pcbParamDef %p, pibScale %p, pfNullable %p)\n", hstmt, ipar,
1954 pfSqlType, pcbParamDef, pibScale, pfNullable);
1955
1956 if (!pSQLDescribeParam) return SQL_ERROR;
1957
1958 ret = pSQLDescribeParam(hstmt, ipar, pfSqlType, pcbParamDef, pibScale, pfNullable);
1959 TRACE("Returning %d\n", ret);
1960 return ret;
1961}
static SQLRETURN(* pSQLDescribeParam)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:90

◆ ODBC32_SQLDisconnect()

SQLRETURN WINAPI ODBC32_SQLDisconnect ( SQLHDBC  ConnectionHandle)

Definition at line 1082 of file proxyodbc.c.

1083{
1084 SQLRETURN ret;
1085
1086 TRACE("(ConnectionHandle %p)\n", ConnectionHandle);
1087
1088 if (!pSQLDisconnect) return SQL_ERROR;
1089
1091 TRACE("Returning %d\n", ret);
1092 return ret;
1093}
static SQLRETURN(* pSQLDisconnect)(SQLHDBC)
Definition: proxyodbc.c:91

◆ ODBC32_SQLDriverConnect()

SQLRETURN WINAPI ODBC32_SQLDriverConnect ( SQLHDBC  hdbc,
SQLHWND  hwnd,
SQLCHAR ConnectionString,
SQLSMALLINT  Length,
SQLCHAR conn_str_out,
SQLSMALLINT  conn_str_out_max,
SQLSMALLINT ptr_conn_str_out,
SQLUSMALLINT  driver_completion 
)

Definition at line 2235 of file proxyodbc.c.

2238{
2239 SQLRETURN ret;
2240
2241 TRACE("(hdbc %p, hwnd %p, ConnectionString %s, Length %d, conn_str_out %p, conn_str_out_max %d,"
2242 " ptr_conn_str_out %p, driver_completion %d)\n", hdbc, hwnd,
2243 debugstr_an((const char *)ConnectionString, Length), Length, conn_str_out, conn_str_out_max,
2244 ptr_conn_str_out, driver_completion);
2245
2246 if (!pSQLDriverConnect) return SQL_ERROR;
2247
2248 ret = pSQLDriverConnect(hdbc, hwnd, ConnectionString, Length, conn_str_out, conn_str_out_max,
2249 ptr_conn_str_out, driver_completion);
2250 TRACE("Returning %d\n", ret);
2251 return ret;
2252}
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
static SQLRETURN(* pSQLDriverConnect)(SQLHDBC, SQLHWND, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLUSMALLINT)
Definition: proxyodbc.c:92
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ ODBC32_SQLDriverConnectW()

SQLRETURN WINAPI ODBC32_SQLDriverConnectW ( SQLHDBC  ConnectionHandle,
SQLHWND  WindowHandle,
WCHAR InConnectionString,
SQLSMALLINT  Length,
WCHAR OutConnectionString,
SQLSMALLINT  BufferLength,
SQLSMALLINT Length2,
SQLUSMALLINT  DriverCompletion 
)

Definition at line 2673 of file proxyodbc.c.

2676{
2677 SQLRETURN ret;
2678
2679 TRACE("(ConnectionHandle %p, WindowHandle %p, InConnectionString %s, Length %d, OutConnectionString %p,"
2680 " BufferLength %d, Length2 %p, DriverCompletion %d)\n", ConnectionHandle, WindowHandle,
2681 debugstr_wn(InConnectionString, Length), Length, OutConnectionString, BufferLength, Length2,
2682 DriverCompletion);
2683
2684 if (!pSQLDriverConnectW) return SQL_ERROR;
2685
2686 ret = pSQLDriverConnectW(ConnectionHandle, WindowHandle, InConnectionString, Length, OutConnectionString,
2687 BufferLength, Length2, DriverCompletion);
2688 TRACE("Returning %d\n", ret);
2689 return ret;
2690}
INT Length2
Definition: FsRtlDissect.c:16
static SQLRETURN(* pSQLDriverConnectW)(SQLHDBC, SQLHWND, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLUSMALLINT)
Definition: proxyodbc.c:93

◆ ODBC32_SQLDrivers()

SQLRETURN WINAPI ODBC32_SQLDrivers ( SQLHENV  EnvironmentHandle,
SQLUSMALLINT  fDirection,
SQLCHAR szDriverDesc,
SQLSMALLINT  cbDriverDescMax,
SQLSMALLINT pcbDriverDesc,
SQLCHAR szDriverAttributes,
SQLSMALLINT  cbDriverAttrMax,
SQLSMALLINT pcbDriverAttr 
)

Definition at line 2187 of file proxyodbc.c.

2191{
2192 SQLRETURN ret;
2193
2194 TRACE("(EnvironmentHandle %p, Direction %d, szDriverDesc %p, cbDriverDescMax %d, pcbDriverDesc %p,"
2195 " DriverAttributes %p, cbDriverAttrMax %d, pcbDriverAttr %p)\n", EnvironmentHandle, fDirection,
2196 szDriverDesc, cbDriverDescMax, pcbDriverDesc, szDriverAttributes, cbDriverAttrMax, pcbDriverAttr);
2197
2198 if (!pSQLDrivers) return SQL_ERROR;
2199
2200 ret = pSQLDrivers(EnvironmentHandle, fDirection, szDriverDesc, cbDriverDescMax, pcbDriverDesc,
2201 szDriverAttributes, cbDriverAttrMax, pcbDriverAttr);
2202
2203 if (ret == SQL_NO_DATA && fDirection == SQL_FETCH_FIRST)
2204 ERR_(winediag)("No ODBC drivers could be found. Check the settings for your libodbc provider.\n");
2205
2206 TRACE("Returning %d\n", ret);
2207 return ret;
2208}
static const WCHAR szDriverAttributes[]
Definition: provider.c:80
static SQLRETURN(* pSQLDrivers)(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:94
#define ERR_(ch,...)
Definition: debug.h:156
#define SQL_FETCH_FIRST
Definition: sql.h:77
#define SQL_NO_DATA
Definition: sql.h:315

Referenced by ODBC_ReplicateODBCInstToRegistry().

◆ ODBC32_SQLDriversW()

SQLRETURN WINAPI ODBC32_SQLDriversW ( SQLHENV  EnvironmentHandle,
SQLUSMALLINT  fDirection,
SQLWCHAR szDriverDesc,
SQLSMALLINT  cbDriverDescMax,
SQLSMALLINT pcbDriverDesc,
SQLWCHAR szDriverAttributes,
SQLSMALLINT  cbDriverAttrMax,
SQLSMALLINT pcbDriverAttr 
)

Definition at line 3043 of file proxyodbc.c.

3047{
3048 SQLRETURN ret;
3049
3050 TRACE("(EnvironmentHandle %p, Direction %d, szDriverDesc %p, cbDriverDescMax %d, pcbDriverDesc %p,"
3051 " DriverAttributes %p, cbDriverAttrMax %d, pcbDriverAttr %p)\n", EnvironmentHandle, fDirection,
3052 szDriverDesc, cbDriverDescMax, pcbDriverDesc, szDriverAttributes, cbDriverAttrMax, pcbDriverAttr);
3053
3054 if (!pSQLDriversW) return SQL_ERROR;
3055
3056 ret = pSQLDriversW(EnvironmentHandle, fDirection, szDriverDesc, cbDriverDescMax, pcbDriverDesc,
3057 szDriverAttributes, cbDriverAttrMax, pcbDriverAttr);
3058
3059 if (ret == SQL_NO_DATA && fDirection == SQL_FETCH_FIRST)
3060 ERR_(winediag)("No ODBC drivers could be found. Check the settings for your libodbc provider.\n");
3061
3062 TRACE("Returning %d\n", ret);
3063 return ret;
3064}
static SQLRETURN(* pSQLDriversW)(SQLHENV, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:95

◆ ODBC32_SQLEndTran()

SQLRETURN WINAPI ODBC32_SQLEndTran ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  CompletionType 
)

Definition at line 1098 of file proxyodbc.c.

1099{
1100 SQLRETURN ret;
1101
1102 TRACE("(HandleType %d, Handle %p, CompletionType %d)\n", HandleType, Handle, CompletionType);
1103
1104 if (!pSQLEndTran) return SQL_ERROR;
1105
1106 ret = pSQLEndTran(HandleType, Handle, CompletionType);
1107 TRACE("Returning %d\n", ret);
1108 return ret;
1109}
ULONG Handle
Definition: gdb_input.c:15
static SQLRETURN(* pSQLEndTran)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT)
Definition: proxyodbc.c:96

◆ ODBC32_SQLError()

SQLRETURN WINAPI ODBC32_SQLError ( SQLHENV  EnvironmentHandle,
SQLHDBC  ConnectionHandle,
SQLHSTMT  StatementHandle,
SQLCHAR Sqlstate,
SQLINTEGER NativeError,
SQLCHAR MessageText,
SQLSMALLINT  BufferLength,
SQLSMALLINT TextLength 
)

Definition at line 1114 of file proxyodbc.c.

1117{
1118 SQLRETURN ret;
1119
1120 TRACE("(EnvironmentHandle %p, ConnectionHandle %p, StatementHandle %p, Sqlstate %p, NativeError %p,"
1121 " MessageText %p, BufferLength %d, TextLength %p)\n", EnvironmentHandle, ConnectionHandle,
1122 StatementHandle, Sqlstate, NativeError, MessageText, BufferLength, TextLength);
1123
1124 if (!pSQLError) return SQL_ERROR;
1125
1126 ret = pSQLError(EnvironmentHandle, ConnectionHandle, StatementHandle, Sqlstate, NativeError, MessageText,
1127 BufferLength, TextLength);
1128
1129 if (ret == SQL_SUCCESS)
1130 {
1131 TRACE(" SQLState %s\n", debugstr_an((const char *)Sqlstate, 5));
1132 TRACE(" Error %d\n", *NativeError);
1133 TRACE(" MessageText %s\n", debugstr_an((const char *)MessageText, *TextLength));
1134 }
1135
1136 TRACE("Returning %d\n", ret);
1137 return ret;
1138}
static SQLRETURN(* pSQLError)(SQLHENV, SQLHDBC, SQLHSTMT, SQLCHAR *, SQLINTEGER *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:97

◆ ODBC32_SQLErrorW()

SQLRETURN WINAPI ODBC32_SQLErrorW ( SQLHENV  EnvironmentHandle,
SQLHDBC  ConnectionHandle,
SQLHSTMT  StatementHandle,
WCHAR Sqlstate,
SQLINTEGER NativeError,
WCHAR MessageText,
SQLSMALLINT  BufferLength,
SQLSMALLINT TextLength 
)

Definition at line 2384 of file proxyodbc.c.

2387{
2388 SQLRETURN ret;
2389
2390 TRACE("(EnvironmentHandle %p, ConnectionHandle %p, StatementHandle %p, Sqlstate %p, NativeError %p,"
2391 " MessageText %p, BufferLength %d, TextLength %p)\n", EnvironmentHandle, ConnectionHandle,
2392 StatementHandle, Sqlstate, NativeError, MessageText, BufferLength, TextLength);
2393
2394 if (!pSQLErrorW) return SQL_ERROR;
2395
2396 ret = pSQLErrorW(EnvironmentHandle, ConnectionHandle, StatementHandle, Sqlstate, NativeError, MessageText,
2397 BufferLength, TextLength);
2398
2399 if (ret == SQL_SUCCESS)
2400 {
2401 TRACE(" SQLState %s\n", debugstr_wn(Sqlstate, 5));
2402 TRACE(" Error %d\n", *NativeError);
2403 TRACE(" MessageText %s\n", debugstr_wn(MessageText, *TextLength));
2404 }
2405
2406 TRACE("Returning %d\n", ret);
2407 return ret;
2408}
static SQLRETURN(* pSQLErrorW)(SQLHENV, SQLHDBC, SQLHSTMT, SQLWCHAR *, SQLINTEGER *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:98

◆ ODBC32_SQLExecDirect()

SQLRETURN WINAPI ODBC32_SQLExecDirect ( SQLHSTMT  StatementHandle,
SQLCHAR StatementText,
SQLINTEGER  TextLength 
)

Definition at line 1143 of file proxyodbc.c.

1144{
1145 SQLRETURN ret;
1146
1147 TRACE("(StatementHandle %p, StatementText %s, TextLength %d)\n", StatementHandle,
1148 debugstr_an((const char *)StatementText, TextLength), TextLength);
1149
1150 if (!pSQLExecDirect) return SQL_ERROR;
1151
1152 ret = pSQLExecDirect(StatementHandle, StatementText, TextLength);
1153 TRACE("Returning %d\n", ret);
1154 return ret;
1155}
static SQLRETURN(* pSQLExecDirect)(SQLHSTMT, SQLCHAR *, SQLINTEGER)
Definition: proxyodbc.c:99

◆ ODBC32_SQLExecDirectW()

SQLRETURN WINAPI ODBC32_SQLExecDirectW ( SQLHSTMT  StatementHandle,
WCHAR StatementText,
SQLINTEGER  TextLength 
)

Definition at line 2413 of file proxyodbc.c.

2414{
2415 SQLRETURN ret;
2416
2417 TRACE("(StatementHandle %p, StatementText %s, TextLength %d)\n", StatementHandle,
2418 debugstr_wn(StatementText, TextLength), TextLength);
2419
2420 if (!pSQLExecDirectW) return SQL_ERROR;
2421
2422 ret = pSQLExecDirectW(StatementHandle, StatementText, TextLength);
2423 TRACE("Returning %d\n", ret);
2424 return ret;
2425}
static SQLRETURN(* pSQLExecDirectW)(SQLHSTMT, SQLWCHAR *, SQLINTEGER)
Definition: proxyodbc.c:100

◆ ODBC32_SQLExecute()

SQLRETURN WINAPI ODBC32_SQLExecute ( SQLHSTMT  StatementHandle)

Definition at line 1160 of file proxyodbc.c.

1161{
1162 SQLRETURN ret;
1163
1164 TRACE("(StatementHandle %p)\n", StatementHandle);
1165
1166 if (!pSQLExecute) return SQL_ERROR;
1167
1168 ret = pSQLExecute(StatementHandle);
1169 TRACE("Returning %d\n", ret);
1170 return ret;
1171}
static SQLRETURN(* pSQLExecute)(SQLHSTMT)
Definition: proxyodbc.c:101

◆ ODBC32_SQLExtendedFetch()

SQLRETURN WINAPI ODBC32_SQLExtendedFetch ( SQLHSTMT  hstmt,
SQLUSMALLINT  fFetchType,
SQLLEN  irow,
SQLULEN pcrow,
SQLUSMALLINT rgfRowStatus 
)

Definition at line 1966 of file proxyodbc.c.

1968{
1969 SQLRETURN ret;
1970
1971 TRACE("(hstmt %p, fFetchType %d, irow %s, pcrow %p, rgfRowStatus %p)\n", hstmt, fFetchType, debugstr_sqllen(irow),
1972 pcrow, rgfRowStatus);
1973
1974 if (!pSQLExtendedFetch) return SQL_ERROR;
1975
1976 ret = pSQLExtendedFetch(hstmt, fFetchType, irow, pcrow, rgfRowStatus);
1977 TRACE("Returning %d\n", ret);
1978 return ret;
1979}
static SQLRETURN(* pSQLExtendedFetch)(SQLHSTMT, SQLUSMALLINT, SQLLEN, SQLULEN *, SQLUSMALLINT *)
Definition: proxyodbc.c:102

◆ ODBC32_SQLFetch()

SQLRETURN WINAPI ODBC32_SQLFetch ( SQLHSTMT  StatementHandle)

Definition at line 1176 of file proxyodbc.c.

1177{
1178 SQLRETURN ret;
1179
1180 TRACE("(StatementHandle %p)\n", StatementHandle);
1181
1182 if (!pSQLFetch) return SQL_ERROR;
1183
1184 ret = pSQLFetch(StatementHandle);
1185 TRACE("Returning %d\n", ret);
1186 return ret;
1187}
static SQLRETURN(* pSQLFetch)(SQLHSTMT)
Definition: proxyodbc.c:103

◆ ODBC32_SQLFetchScroll()

SQLRETURN WINAPI ODBC32_SQLFetchScroll ( SQLHSTMT  StatementHandle,
SQLSMALLINT  FetchOrientation,
SQLLEN  FetchOffset 
)

Definition at line 1192 of file proxyodbc.c.

1193{
1194 SQLRETURN ret;
1195
1196 TRACE("(StatementHandle %p, FetchOrientation %d, FetchOffset %s)\n", StatementHandle, FetchOrientation,
1197 debugstr_sqllen(FetchOffset));
1198
1199 if (!pSQLFetchScroll) return SQL_ERROR;
1200
1201 ret = pSQLFetchScroll(StatementHandle, FetchOrientation, FetchOffset);
1202 TRACE("Returning %d\n", ret);
1203 return ret;
1204}
static SQLRETURN(* pSQLFetchScroll)(SQLHSTMT, SQLSMALLINT, SQLLEN)
Definition: proxyodbc.c:104

◆ ODBC32_SQLForeignKeys()

SQLRETURN WINAPI ODBC32_SQLForeignKeys ( SQLHSTMT  hstmt,
SQLCHAR szPkCatalogName,
SQLSMALLINT  cbPkCatalogName,
SQLCHAR szPkSchemaName,
SQLSMALLINT  cbPkSchemaName,
SQLCHAR szPkTableName,
SQLSMALLINT  cbPkTableName,
SQLCHAR szFkCatalogName,
SQLSMALLINT  cbFkCatalogName,
SQLCHAR szFkSchemaName,
SQLSMALLINT  cbFkSchemaName,
SQLCHAR szFkTableName,
SQLSMALLINT  cbFkTableName 
)

Definition at line 1984 of file proxyodbc.c.

1989{
1990 SQLRETURN ret;
1991
1992 TRACE("(hstmt %p, szPkCatalogName %s, cbPkCatalogName %d, szPkSchemaName %s, cbPkSchemaName %d,"
1993 " szPkTableName %s, cbPkTableName %d, szFkCatalogName %s, cbFkCatalogName %d, szFkSchemaName %s,"
1994 " cbFkSchemaName %d, szFkTableName %s, cbFkTableName %d)\n", hstmt,
1995 debugstr_an((const char *)szPkCatalogName, cbPkCatalogName), cbPkCatalogName,
1996 debugstr_an((const char *)szPkSchemaName, cbPkSchemaName), cbPkSchemaName,
1997 debugstr_an((const char *)szPkTableName, cbPkTableName), cbPkTableName,
1998 debugstr_an((const char *)szFkCatalogName, cbFkCatalogName), cbFkCatalogName,
1999 debugstr_an((const char *)szFkSchemaName, cbFkSchemaName), cbFkSchemaName,
2000 debugstr_an((const char *)szFkTableName, cbFkTableName), cbFkTableName);
2001
2002 if (!pSQLForeignKeys) return SQL_ERROR;
2003
2004 ret = pSQLForeignKeys(hstmt, szPkCatalogName, cbPkCatalogName, szPkSchemaName, cbPkSchemaName, szPkTableName,
2005 cbPkTableName, szFkCatalogName, cbFkCatalogName, szFkSchemaName, cbFkSchemaName,
2006 szFkTableName, cbFkTableName);
2007 TRACE("Returning %d\n", ret);
2008 return ret;
2009}
static SQLRETURN(* pSQLForeignKeys)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:105

◆ ODBC32_SQLForeignKeysW()

SQLRETURN WINAPI ODBC32_SQLForeignKeysW ( SQLHSTMT  hstmt,
SQLWCHAR szPkCatalogName,
SQLSMALLINT  cbPkCatalogName,
SQLWCHAR szPkSchemaName,
SQLSMALLINT  cbPkSchemaName,
SQLWCHAR szPkTableName,
SQLSMALLINT  cbPkTableName,
SQLWCHAR szFkCatalogName,
SQLSMALLINT  cbFkCatalogName,
SQLWCHAR szFkSchemaName,
SQLSMALLINT  cbFkSchemaName,
SQLWCHAR szFkTableName,
SQLSMALLINT  cbFkTableName 
)

Definition at line 2908 of file proxyodbc.c.

2913{
2914 SQLRETURN ret;
2915
2916 TRACE("(hstmt %p, szPkCatalogName %s, cbPkCatalogName %d, szPkSchemaName %s, cbPkSchemaName %d,"
2917 " szPkTableName %s, cbPkTableName %d, szFkCatalogName %s, cbFkCatalogName %d, szFkSchemaName %s,"
2918 " cbFkSchemaName %d, szFkTableName %s, cbFkTableName %d)\n", hstmt,
2919 debugstr_wn(szPkCatalogName, cbPkCatalogName), cbPkCatalogName,
2920 debugstr_wn(szPkSchemaName, cbPkSchemaName), cbPkSchemaName,
2921 debugstr_wn(szPkTableName, cbPkTableName), cbPkTableName,
2922 debugstr_wn(szFkCatalogName, cbFkCatalogName), cbFkCatalogName,
2923 debugstr_wn(szFkSchemaName, cbFkSchemaName), cbFkSchemaName,
2924 debugstr_wn(szFkTableName, cbFkTableName), cbFkTableName);
2925
2926 if (!pSQLForeignKeysW) return SQL_ERROR;
2927
2928 ret = pSQLForeignKeysW(hstmt, szPkCatalogName, cbPkCatalogName, szPkSchemaName, cbPkSchemaName, szPkTableName,
2929 cbPkTableName, szFkCatalogName, cbFkCatalogName, szFkSchemaName, cbFkSchemaName,
2930 szFkTableName, cbFkTableName);
2931 TRACE("Returning %d\n", ret);
2932 return ret;
2933}
static SQLRETURN(* pSQLForeignKeysW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:106

◆ ODBC32_SQLFreeConnect()

SQLRETURN WINAPI ODBC32_SQLFreeConnect ( SQLHDBC  ConnectionHandle)

Definition at line 1209 of file proxyodbc.c.

1210{
1211 SQLRETURN ret;
1212
1213 TRACE("(ConnectionHandle %p)\n", ConnectionHandle);
1214
1215 if (!pSQLFreeConnect) return SQL_ERROR;
1216
1218 TRACE("Returning %d\n", ret);
1219 return ret;
1220}
static SQLRETURN(* pSQLFreeConnect)(SQLHDBC)
Definition: proxyodbc.c:107

◆ ODBC32_SQLFreeEnv()

SQLRETURN WINAPI ODBC32_SQLFreeEnv ( SQLHENV  EnvironmentHandle)

Definition at line 1225 of file proxyodbc.c.

1226{
1227 SQLRETURN ret;
1228
1229 TRACE("(EnvironmentHandle %p)\n", EnvironmentHandle);
1230
1231 if (!pSQLFreeEnv) return SQL_ERROR;
1232
1233 ret = pSQLFreeEnv(EnvironmentHandle);
1234 TRACE("Returning %d\n", ret);
1235 return ret;
1236}
static SQLRETURN(* pSQLFreeEnv)(SQLHENV)
Definition: proxyodbc.c:108

Referenced by ODBC_ReplicateToRegistry().

◆ ODBC32_SQLFreeHandle()

SQLRETURN WINAPI ODBC32_SQLFreeHandle ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle 
)

Definition at line 1241 of file proxyodbc.c.

1242{
1243 SQLRETURN ret;
1244
1245 TRACE("(HandleType %d, Handle %p)\n", HandleType, Handle);
1246
1247 if (!pSQLFreeHandle) return SQL_ERROR;
1248
1249 ret = pSQLFreeHandle(HandleType, Handle);
1250 TRACE ("Returning %d\n", ret);
1251 return ret;
1252}
static SQLRETURN(* pSQLFreeHandle)(SQLSMALLINT, SQLHANDLE)
Definition: proxyodbc.c:109

◆ ODBC32_SQLFreeStmt()

SQLRETURN WINAPI ODBC32_SQLFreeStmt ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  Option 
)

Definition at line 1257 of file proxyodbc.c.

1258{
1259 SQLRETURN ret;
1260
1261 TRACE("(StatementHandle %p, Option %d)\n", StatementHandle, Option);
1262
1263 if (!pSQLFreeStmt) return SQL_ERROR;
1264
1265 ret = pSQLFreeStmt(StatementHandle, Option);
1266 TRACE("Returning %d\n", ret);
1267 return ret;
1268}
static SQLRETURN(* pSQLFreeStmt)(SQLHSTMT, SQLUSMALLINT)
Definition: proxyodbc.c:110

◆ ODBC32_SQLGetConnectAttr()

SQLRETURN WINAPI ODBC32_SQLGetConnectAttr ( SQLHDBC  ConnectionHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 1273 of file proxyodbc.c.

1275{
1276 SQLRETURN ret;
1277
1278 TRACE("(ConnectionHandle %p, Attribute %d, Value %p, BufferLength %d, StringLength %p)\n", ConnectionHandle,
1279 Attribute, Value, BufferLength, StringLength);
1280
1281 if (!pSQLGetConnectAttr) return SQL_ERROR;
1282
1283 ret = pSQLGetConnectAttr(ConnectionHandle, Attribute, Value, BufferLength, StringLength);
1284 TRACE("Returning %d\n", ret);
1285 return ret;
1286}
static SQLRETURN(* pSQLGetConnectAttr)(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:111
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413

◆ ODBC32_SQLGetConnectAttrW()

SQLRETURN WINAPI ODBC32_SQLGetConnectAttrW ( SQLHDBC  ConnectionHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 2512 of file proxyodbc.c.

2514{
2515 SQLRETURN ret;
2516
2517 TRACE("(ConnectionHandle %p, Attribute %d, Value %p, BufferLength %d, StringLength %p)\n", ConnectionHandle,
2518 Attribute, Value, BufferLength, StringLength);
2519
2520 if (!pSQLGetConnectAttrW) return SQL_ERROR;
2521
2522 ret = pSQLGetConnectAttrW(ConnectionHandle, Attribute, Value, BufferLength, StringLength);
2523 TRACE("Returning %d\n", ret);
2524 return ret;
2525}
static SQLRETURN(* pSQLGetConnectAttrW)(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:112

◆ ODBC32_SQLGetConnectOption()

SQLRETURN WINAPI ODBC32_SQLGetConnectOption ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  Option,
SQLPOINTER  Value 
)

Definition at line 1291 of file proxyodbc.c.

1292{
1293 SQLRETURN ret;
1294
1295 TRACE("(ConnectionHandle %p, Option %d, Value %p)\n", ConnectionHandle, Option, Value);
1296
1297 if (!pSQLGetConnectOption) return SQL_ERROR;
1298
1300 TRACE("Returning %d\n", ret);
1301 return ret;
1302}
static SQLRETURN(* pSQLGetConnectOption)(SQLHDBC, SQLUSMALLINT, SQLPOINTER)
Definition: proxyodbc.c:113

◆ ODBC32_SQLGetConnectOptionW()

SQLRETURN WINAPI ODBC32_SQLGetConnectOptionW ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  Option,
SQLPOINTER  Value 
)

Definition at line 2695 of file proxyodbc.c.

2696{
2697 SQLRETURN ret;
2698
2699 TRACE("(ConnectionHandle %p, Option %d, Value %p)\n", ConnectionHandle, Option, Value);
2700
2701 if (!pSQLGetConnectOptionW) return SQL_ERROR;
2702
2704 TRACE("Returning %d\n", ret);
2705 return ret;
2706}
static SQLRETURN(* pSQLGetConnectOptionW)(SQLHDBC, SQLUSMALLINT, SQLPOINTER)
Definition: proxyodbc.c:114

◆ ODBC32_SQLGetCursorName()

SQLRETURN WINAPI ODBC32_SQLGetCursorName ( SQLHSTMT  StatementHandle,
SQLCHAR CursorName,
SQLSMALLINT  BufferLength,
SQLSMALLINT NameLength 
)

Definition at line 1307 of file proxyodbc.c.

1309{
1310 SQLRETURN ret;
1311
1312 TRACE("(StatementHandle %p, CursorName %p, BufferLength %d, NameLength %p)\n", StatementHandle, CursorName,
1313 BufferLength, NameLength);
1314
1315 if (!pSQLGetCursorName) return SQL_ERROR;
1316
1317 ret = pSQLGetCursorName(StatementHandle, CursorName, BufferLength, NameLength);
1318 TRACE("Returning %d\n", ret);
1319 return ret;
1320}
static SQLRETURN(* pSQLGetCursorName)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:115

◆ ODBC32_SQLGetCursorNameW()

SQLRETURN WINAPI ODBC32_SQLGetCursorNameW ( SQLHSTMT  StatementHandle,
WCHAR CursorName,
SQLSMALLINT  BufferLength,
SQLSMALLINT NameLength 
)

Definition at line 2430 of file proxyodbc.c.

2432{
2433 SQLRETURN ret;
2434
2435 TRACE("(StatementHandle %p, CursorName %p, BufferLength %d, NameLength %p)\n", StatementHandle, CursorName,
2436 BufferLength, NameLength);
2437
2438 if (!pSQLGetCursorNameW) return SQL_ERROR;
2439
2440 ret = pSQLGetCursorNameW(StatementHandle, CursorName, BufferLength, NameLength);
2441 TRACE("Returning %d\n", ret);
2442 return ret;
2443}
static SQLRETURN(* pSQLGetCursorNameW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:116

◆ ODBC32_SQLGetData()

SQLRETURN WINAPI ODBC32_SQLGetData ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLSMALLINT  TargetType,
SQLPOINTER  TargetValue,
SQLLEN  BufferLength,
SQLLEN StrLen_or_Ind 
)

Definition at line 1325 of file proxyodbc.c.

1327{
1328 SQLRETURN ret;
1329
1330 TRACE("(StatementHandle %p, ColumnNumber %d, TargetType %d, TargetValue %p, BufferLength %s, StrLen_or_Ind %p)\n",
1331 StatementHandle, ColumnNumber, TargetType, TargetValue, debugstr_sqllen(BufferLength), StrLen_or_Ind);
1332
1333 if (!pSQLGetData) return SQL_ERROR;
1334
1335 ret = pSQLGetData(StatementHandle, ColumnNumber, TargetType, TargetValue, BufferLength, StrLen_or_Ind);
1336 TRACE("Returning %d\n", ret);
1337 return ret;
1338}
static SQLRETURN(* pSQLGetData)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
Definition: proxyodbc.c:117

◆ ODBC32_SQLGetDescField()

SQLRETURN WINAPI ODBC32_SQLGetDescField ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  FieldIdentifier,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 1343 of file proxyodbc.c.

1345{
1346 SQLRETURN ret;
1347
1348 TRACE("(DescriptorHandle %p, RecNumber %d, FieldIdentifier %d, Value %p, BufferLength %d, StringLength %p)\n",
1349 DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength, StringLength);
1350
1351 if (!pSQLGetDescField) return SQL_ERROR;
1352
1353 ret = pSQLGetDescField(DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength, StringLength);
1354 TRACE("Returning %d\n", ret);
1355 return ret;
1356}
static SQLRETURN(* pSQLGetDescField)(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:118

◆ ODBC32_SQLGetDescFieldW()

SQLRETURN WINAPI ODBC32_SQLGetDescFieldW ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  FieldIdentifier,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 2530 of file proxyodbc.c.

2532{
2533 SQLRETURN ret;
2534
2535 TRACE("(DescriptorHandle %p, RecNumber %d, FieldIdentifier %d, Value %p, BufferLength %d, StringLength %p)\n",
2536 DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength, StringLength);
2537
2538 if (!pSQLGetDescFieldW) return SQL_ERROR;
2539
2540 ret = pSQLGetDescFieldW(DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength, StringLength);
2541 TRACE("Returning %d\n", ret);
2542 return ret;
2543}
static SQLRETURN(* pSQLGetDescFieldW)(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:119

◆ ODBC32_SQLGetDescRec()

SQLRETURN WINAPI ODBC32_SQLGetDescRec ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLCHAR Name,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength,
SQLSMALLINT Type,
SQLSMALLINT SubType,
SQLLEN Length,
SQLSMALLINT Precision,
SQLSMALLINT Scale,
SQLSMALLINT Nullable 
)

Definition at line 1361 of file proxyodbc.c.

1365{
1366 SQLRETURN ret;
1367
1368 TRACE("(DescriptorHandle %p, RecNumber %d, Name %p, BufferLength %d, StringLength %p, Type %p, SubType %p,"
1369 " Length %p, Precision %p, Scale %p, Nullable %p)\n", DescriptorHandle, RecNumber, Name, BufferLength,
1370 StringLength, Type, SubType, Length, Precision, Scale, Nullable);
1371
1372 if (!pSQLGetDescRec) return SQL_ERROR;
1373
1374 ret = pSQLGetDescRec(DescriptorHandle, RecNumber, Name, BufferLength, StringLength, Type, SubType, Length,
1375 Precision, Scale, Nullable);
1376 TRACE("Returning %d\n", ret);
1377 return ret;
1378}
Type
Definition: Type.h:7
static SQLRETURN(* pSQLGetDescRec)(SQLHDESC, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *, SQLLEN *, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:120

◆ ODBC32_SQLGetDescRecW()

SQLRETURN WINAPI ODBC32_SQLGetDescRecW ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
WCHAR Name,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength,
SQLSMALLINT Type,
SQLSMALLINT SubType,
SQLLEN Length,
SQLSMALLINT Precision,
SQLSMALLINT Scale,
SQLSMALLINT Nullable 
)

Definition at line 2548 of file proxyodbc.c.

2552{
2553 SQLRETURN ret;
2554
2555 TRACE("(DescriptorHandle %p, RecNumber %d, Name %p, BufferLength %d, StringLength %p, Type %p, SubType %p,"
2556 " Length %p, Precision %p, Scale %p, Nullable %p)\n", DescriptorHandle, RecNumber, Name, BufferLength,
2557 StringLength, Type, SubType, Length, Precision, Scale, Nullable);
2558
2559 if (!pSQLGetDescRecW) return SQL_ERROR;
2560
2561 ret = pSQLGetDescRecW(DescriptorHandle, RecNumber, Name, BufferLength, StringLength, Type, SubType, Length,
2562 Precision, Scale, Nullable);
2563 TRACE("Returning %d\n", ret);
2564 return ret;
2565}
static SQLRETURN(* pSQLGetDescRecW)(SQLHDESC, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *, SQLLEN *, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:121

◆ ODBC32_SQLGetDiagField()

SQLRETURN WINAPI ODBC32_SQLGetDiagField ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  DiagIdentifier,
SQLPOINTER  DiagInfo,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength 
)

Definition at line 1383 of file proxyodbc.c.

1386{
1387 SQLRETURN ret;
1388
1389 TRACE("(HandleType %d, Handle %p, RecNumber %d, DiagIdentifier %d, DiagInfo %p, BufferLength %d,"
1390 " StringLength %p)\n", HandleType, Handle, RecNumber, DiagIdentifier, DiagInfo, BufferLength, StringLength);
1391
1392 if (!pSQLGetDiagField) return SQL_ERROR;
1393
1394 ret = pSQLGetDiagField(HandleType, Handle, RecNumber, DiagIdentifier, DiagInfo, BufferLength, StringLength);
1395 TRACE("Returning %d\n", ret);
1396 return ret;
1397}
static SQLRETURN(* pSQLGetDiagField)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:122

◆ ODBC32_SQLGetDiagFieldW()

SQLRETURN WINAPI ODBC32_SQLGetDiagFieldW ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  DiagIdentifier,
SQLPOINTER  DiagInfo,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength 
)

Definition at line 2570 of file proxyodbc.c.

2573{
2574 SQLRETURN ret;
2575
2576 TRACE("(HandleType %d, Handle %p, RecNumber %d, DiagIdentifier %d, DiagInfo %p, BufferLength %d,"
2577 " StringLength %p)\n", HandleType, Handle, RecNumber, DiagIdentifier, DiagInfo, BufferLength, StringLength);
2578
2579 if (!pSQLGetDiagFieldW) return SQL_ERROR;
2580
2581 ret = pSQLGetDiagFieldW(HandleType, Handle, RecNumber, DiagIdentifier, DiagInfo, BufferLength, StringLength);
2582 TRACE("Returning %d\n", ret);
2583 return ret;
2584}
static SQLRETURN(* pSQLGetDiagFieldW)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:123

◆ ODBC32_SQLGetDiagRec()

SQLRETURN WINAPI ODBC32_SQLGetDiagRec ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  RecNumber,
SQLCHAR Sqlstate,
SQLINTEGER NativeError,
SQLCHAR MessageText,
SQLSMALLINT  BufferLength,
SQLSMALLINT TextLength 
)

Definition at line 1402 of file proxyodbc.c.

1405{
1406 SQLRETURN ret;
1407
1408 TRACE("(HandleType %d, Handle %p, RecNumber %d, Sqlstate %p, NativeError %p, MessageText %p, BufferLength %d,"
1409 " TextLength %p)\n", HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength,
1410 TextLength);
1411
1412 if (!pSQLGetDiagRec) return SQL_ERROR;
1413
1414 ret = pSQLGetDiagRec(HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength, TextLength);
1415 TRACE("Returning %d\n", ret);
1416 return ret;
1417}
static SQLRETURN(* pSQLGetDiagRec)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLCHAR *, SQLINTEGER *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:124

◆ ODBC32_SQLGetDiagRecA()

SQLRETURN WINAPI ODBC32_SQLGetDiagRecA ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  RecNumber,
SQLCHAR Sqlstate,
SQLINTEGER NativeError,
SQLCHAR MessageText,
SQLSMALLINT  BufferLength,
SQLSMALLINT TextLength 
)

Definition at line 3111 of file proxyodbc.c.

3114{
3115 SQLRETURN ret;
3116
3117 TRACE("(HandleType %d, Handle %p, RecNumber %d, Sqlstate %p, NativeError %p, MessageText %p, BufferLength %d,"
3118 " TextLength %p)\n", HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength,
3119 TextLength);
3120
3121 if (!pSQLGetDiagRecA) return SQL_ERROR;
3122
3123 ret = pSQLGetDiagRecA(HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength, TextLength);
3124 TRACE("Returning %d\n", ret);
3125 return ret;
3126}
static SQLRETURN(* pSQLGetDiagRecA)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLCHAR *, SQLINTEGER *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:177

◆ ODBC32_SQLGetDiagRecW()

SQLRETURN WINAPI ODBC32_SQLGetDiagRecW ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  RecNumber,
WCHAR Sqlstate,
SQLINTEGER NativeError,
WCHAR MessageText,
SQLSMALLINT  BufferLength,
SQLSMALLINT TextLength 
)

Definition at line 2589 of file proxyodbc.c.

2592{
2593 SQLRETURN ret;
2594
2595 TRACE("(HandleType %d, Handle %p, RecNumber %d, Sqlstate %p, NativeError %p, MessageText %p, BufferLength %d,"
2596 " TextLength %p)\n", HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength,
2597 TextLength);
2598
2599 if (!pSQLGetDiagRecW) return SQL_ERROR;
2600
2601 ret = pSQLGetDiagRecW(HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength, TextLength);
2602 TRACE("Returning %d\n", ret);
2603 return ret;
2604}
static SQLRETURN(* pSQLGetDiagRecW)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLWCHAR *, SQLINTEGER *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:125

◆ ODBC32_SQLGetEnvAttr()

SQLRETURN WINAPI ODBC32_SQLGetEnvAttr ( SQLHENV  EnvironmentHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 1422 of file proxyodbc.c.

1424{
1425 SQLRETURN ret;
1426
1427 TRACE("(EnvironmentHandle %p, Attribute %d, Value %p, BufferLength %d, StringLength %p)\n",
1428 EnvironmentHandle, Attribute, Value, BufferLength, StringLength);
1429
1430 if (!pSQLGetEnvAttr) return SQL_ERROR;
1431
1432 ret = pSQLGetEnvAttr(EnvironmentHandle, Attribute, Value, BufferLength, StringLength);
1433 TRACE("Returning %d\n", ret);
1434 return ret;
1435}
static SQLRETURN(* pSQLGetEnvAttr)(SQLHENV, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:126

◆ ODBC32_SQLGetFunctions()

SQLRETURN WINAPI ODBC32_SQLGetFunctions ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  FunctionId,
SQLUSMALLINT Supported 
)

Definition at line 1440 of file proxyodbc.c.

1441{
1442 SQLRETURN ret;
1443
1444 TRACE("(ConnectionHandle %p, FunctionId %d, Supported %p)\n", ConnectionHandle, FunctionId, Supported);
1445
1446 if (!pSQLGetFunctions) return SQL_ERROR;
1447
1449 TRACE("Returning %d\n", ret);
1450 return ret;
1451}
@ Supported
Definition: classpnp.h:733
static SQLRETURN(* pSQLGetFunctions)(SQLHDBC, SQLUSMALLINT, SQLUSMALLINT *)
Definition: proxyodbc.c:127

◆ ODBC32_SQLGetInfo()

SQLRETURN WINAPI ODBC32_SQLGetInfo ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  InfoType,
SQLPOINTER  InfoValue,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength 
)

Definition at line 1456 of file proxyodbc.c.

1458{
1459 SQLRETURN ret;
1460
1461 TRACE("(ConnectionHandle, %p, InfoType %d, InfoValue %p, BufferLength %d, StringLength %p)\n", ConnectionHandle,
1462 InfoType, InfoValue, BufferLength, StringLength);
1463
1464 if (!InfoValue)
1465 {
1466 WARN("Unexpected NULL InfoValue address\n");
1467 return SQL_ERROR;
1468 }
1469
1470 if (!pSQLGetInfo) return SQL_ERROR;
1471
1472 ret = pSQLGetInfo(ConnectionHandle, InfoType, InfoValue, BufferLength, StringLength);
1473 TRACE("Returning %d\n", ret);
1474 return ret;
1475}
static SQLRETURN(* pSQLGetInfo)(SQLHDBC, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:128

◆ ODBC32_SQLGetInfoW()

SQLRETURN WINAPI ODBC32_SQLGetInfoW ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  InfoType,
SQLPOINTER  InfoValue,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength 
)

Definition at line 2711 of file proxyodbc.c.

2713{
2714 SQLRETURN ret;
2715
2716 TRACE("(ConnectionHandle, %p, InfoType %d, InfoValue %p, BufferLength %d, StringLength %p)\n", ConnectionHandle,
2717 InfoType, InfoValue, BufferLength, StringLength);
2718
2719 if (!InfoValue)
2720 {
2721 WARN("Unexpected NULL InfoValue address\n");
2722 return SQL_ERROR;
2723 }
2724
2725 if (!pSQLGetInfoW) return SQL_ERROR;
2726
2727 ret = pSQLGetInfoW(ConnectionHandle, InfoType, InfoValue, BufferLength, StringLength);
2728 TRACE("Returning %d\n", ret);
2729 return ret;
2730}
static SQLRETURN(* pSQLGetInfoW)(SQLHDBC, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:129

◆ ODBC32_SQLGetStmtAttr()

SQLRETURN WINAPI ODBC32_SQLGetStmtAttr ( SQLHSTMT  StatementHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 1480 of file proxyodbc.c.

1482{
1483 SQLRETURN ret;
1484
1485 TRACE("(StatementHandle %p, Attribute %d, Value %p, BufferLength %d, StringLength %p)\n", StatementHandle,
1486 Attribute, Value, BufferLength, StringLength);
1487
1488 if (!Value)
1489 {
1490 WARN("Unexpected NULL Value return address\n");
1491 return SQL_ERROR;
1492 }
1493
1494 if (!pSQLGetStmtAttr) return SQL_ERROR;
1495
1496 ret = pSQLGetStmtAttr(StatementHandle, Attribute, Value, BufferLength, StringLength);
1497 TRACE("Returning %d\n", ret);
1498 return ret;
1499}
static SQLRETURN(* pSQLGetStmtAttr)(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:130

◆ ODBC32_SQLGetStmtAttrW()

SQLRETURN WINAPI ODBC32_SQLGetStmtAttrW ( SQLHSTMT  StatementHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 2609 of file proxyodbc.c.

2611{
2612 SQLRETURN ret;
2613
2614 TRACE("(StatementHandle %p, Attribute %d, Value %p, BufferLength %d, StringLength %p)\n", StatementHandle,
2615 Attribute, Value, BufferLength, StringLength);
2616
2617 if (!Value)
2618 {
2619 WARN("Unexpected NULL Value return address\n");
2620 return SQL_ERROR;
2621 }
2622
2623 if (!pSQLGetStmtAttrW) return SQL_ERROR;
2624
2625 ret = pSQLGetStmtAttrW(StatementHandle, Attribute, Value, BufferLength, StringLength);
2626 TRACE("Returning %d\n", ret);
2627 return ret;
2628}
static SQLRETURN(* pSQLGetStmtAttrW)(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:131

◆ ODBC32_SQLGetStmtOption()

SQLRETURN WINAPI ODBC32_SQLGetStmtOption ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  Option,
SQLPOINTER  Value 
)

Definition at line 1504 of file proxyodbc.c.

1505{
1506 SQLRETURN ret;
1507
1508 TRACE("(StatementHandle %p, Option %d, Value %p)\n", StatementHandle, Option, Value);
1509
1510 if (!pSQLGetStmtOption) return SQL_ERROR;
1511
1512 ret = pSQLGetStmtOption(StatementHandle, Option, Value);
1513 TRACE("Returning %d\n", ret);
1514 return ret;
1515}
static SQLRETURN(* pSQLGetStmtOption)(SQLHSTMT, SQLUSMALLINT, SQLPOINTER)
Definition: proxyodbc.c:132

◆ ODBC32_SQLGetTypeInfo()

SQLRETURN WINAPI ODBC32_SQLGetTypeInfo ( SQLHSTMT  StatementHandle,
SQLSMALLINT  DataType 
)

Definition at line 1520 of file proxyodbc.c.

1521{
1522 SQLRETURN ret;
1523
1524 TRACE("(StatementHandle %p, DataType %d)\n", StatementHandle, DataType);
1525
1526 if (!pSQLGetTypeInfo) return SQL_ERROR;
1527
1528 ret = pSQLGetTypeInfo(StatementHandle, DataType);
1529 TRACE("Returning %d\n", ret);
1530 return ret;
1531}
static SQLRETURN(* pSQLGetTypeInfo)(SQLHSTMT, SQLSMALLINT)
Definition: proxyodbc.c:133

◆ ODBC32_SQLGetTypeInfoW()

SQLRETURN WINAPI ODBC32_SQLGetTypeInfoW ( SQLHSTMT  StatementHandle,
SQLSMALLINT  DataType 
)

Definition at line 2735 of file proxyodbc.c.

2736{
2737 SQLRETURN ret;
2738
2739 TRACE("(StatementHandle %p, DataType %d)\n", StatementHandle, DataType);
2740
2741 if (!pSQLGetTypeInfoW) return SQL_ERROR;
2742
2743 ret = pSQLGetTypeInfoW(StatementHandle, DataType);
2744 TRACE("Returning %d\n", ret);
2745 return ret;
2746}
static SQLRETURN(* pSQLGetTypeInfoW)(SQLHSTMT, SQLSMALLINT)
Definition: proxyodbc.c:134

◆ ODBC32_SQLMoreResults()

SQLRETURN WINAPI ODBC32_SQLMoreResults ( SQLHSTMT  StatementHandle)

Definition at line 2014 of file proxyodbc.c.

2015{
2016 SQLRETURN ret;
2017
2018 TRACE("(%p)\n", StatementHandle);
2019
2020 if (!pSQLMoreResults) return SQL_ERROR;
2021
2022 ret = pSQLMoreResults(StatementHandle);
2023 TRACE("Returning %d\n", ret);
2024 return ret;
2025}
static SQLRETURN(* pSQLMoreResults)(SQLHSTMT)
Definition: proxyodbc.c:135

◆ ODBC32_SQLNativeSql()

SQLRETURN WINAPI ODBC32_SQLNativeSql ( SQLHDBC  hdbc,
SQLCHAR szSqlStrIn,
SQLINTEGER  cbSqlStrIn,
SQLCHAR szSqlStr,
SQLINTEGER  cbSqlStrMax,
SQLINTEGER pcbSqlStr 
)

Definition at line 2030 of file proxyodbc.c.

2032{
2033 SQLRETURN ret;
2034
2035 TRACE("(hdbc %p, szSqlStrIn %s, cbSqlStrIn %d, szSqlStr %p, cbSqlStrMax %d, pcbSqlStr %p)\n", hdbc,
2036 debugstr_an((const char *)szSqlStrIn, cbSqlStrIn), cbSqlStrIn, szSqlStr, cbSqlStrMax, pcbSqlStr);
2037
2038 if (!pSQLNativeSql) return SQL_ERROR;
2039
2040 ret = pSQLNativeSql(hdbc, szSqlStrIn, cbSqlStrIn, szSqlStr, cbSqlStrMax, pcbSqlStr);
2041 TRACE("Returning %d\n", ret);
2042 return ret;
2043}
static SQLRETURN(* pSQLNativeSql)(SQLHDBC, SQLCHAR *, SQLINTEGER, SQLCHAR *, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:136

◆ ODBC32_SQLNativeSqlW()

SQLRETURN WINAPI ODBC32_SQLNativeSqlW ( SQLHDBC  hdbc,
SQLWCHAR szSqlStrIn,
SQLINTEGER  cbSqlStrIn,
SQLWCHAR szSqlStr,
SQLINTEGER  cbSqlStrMax,
SQLINTEGER pcbSqlStr 
)

Definition at line 2938 of file proxyodbc.c.

2940{
2941 SQLRETURN ret;
2942
2943 TRACE("(hdbc %p, szSqlStrIn %s, cbSqlStrIn %d, szSqlStr %p, cbSqlStrMax %d, pcbSqlStr %p)\n", hdbc,
2944 debugstr_wn(szSqlStrIn, cbSqlStrIn), cbSqlStrIn, szSqlStr, cbSqlStrMax, pcbSqlStr);
2945
2946 if (!pSQLNativeSqlW) return SQL_ERROR;
2947
2948 ret = pSQLNativeSqlW(hdbc, szSqlStrIn, cbSqlStrIn, szSqlStr, cbSqlStrMax, pcbSqlStr);
2949 TRACE("Returning %d\n", ret);
2950 return ret;
2951}
static SQLRETURN(* pSQLNativeSqlW)(SQLHDBC, SQLWCHAR *, SQLINTEGER, SQLWCHAR *, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:137

◆ ODBC32_SQLNumParams()

SQLRETURN WINAPI ODBC32_SQLNumParams ( SQLHSTMT  hstmt,
SQLSMALLINT pcpar 
)

Definition at line 2048 of file proxyodbc.c.

2049{
2050 SQLRETURN ret;
2051
2052 TRACE("(hstmt %p, pcpar %p)\n", hstmt, pcpar);
2053
2054 if (!pSQLNumParams) return SQL_ERROR;
2055
2056 ret = pSQLNumParams(hstmt, pcpar);
2057 TRACE("Returning %d\n", ret);
2058 return ret;
2059}
static SQLRETURN(* pSQLNumParams)(SQLHSTMT, SQLSMALLINT *)
Definition: proxyodbc.c:138

◆ ODBC32_SQLNumResultCols()

SQLRETURN WINAPI ODBC32_SQLNumResultCols ( SQLHSTMT  StatementHandle,
SQLSMALLINT ColumnCount 
)

Definition at line 1536 of file proxyodbc.c.

1537{
1538 SQLRETURN ret;
1539
1540 TRACE("(StatementHandle %p, ColumnCount %p)\n", StatementHandle, ColumnCount);
1541
1542 if (!pSQLNumResultCols) return SQL_ERROR;
1543
1544 ret = pSQLNumResultCols(StatementHandle, ColumnCount);
1545 TRACE("Returning %d ColumnCount %d\n", ret, *ColumnCount);
1546 return ret;
1547}
static SQLRETURN(* pSQLNumResultCols)(SQLHSTMT, SQLSMALLINT *)
Definition: proxyodbc.c:139

◆ ODBC32_SQLParamData()

SQLRETURN WINAPI ODBC32_SQLParamData ( SQLHSTMT  StatementHandle,
SQLPOINTER Value 
)

Definition at line 1552 of file proxyodbc.c.

1553{
1554 SQLRETURN ret;
1555
1556 TRACE("(StatementHandle %p, Value %p)\n", StatementHandle, Value);
1557
1558 if (!pSQLParamData) return SQL_ERROR;
1559
1560 ret = pSQLParamData(StatementHandle, Value);
1561 TRACE("Returning %d\n", ret);
1562 return ret;
1563}
static SQLRETURN(* pSQLParamData)(SQLHSTMT, SQLPOINTER *)
Definition: proxyodbc.c:140

◆ ODBC32_SQLParamOptions()

SQLRETURN WINAPI ODBC32_SQLParamOptions ( SQLHSTMT  hstmt,
SQLULEN  crow,
SQLULEN pirow 
)

Definition at line 2064 of file proxyodbc.c.

2065{
2066 SQLRETURN ret;
2067
2068 TRACE("(hstmt %p, crow %s, pirow %p)\n", hstmt, debugstr_sqlulen(crow), pirow);
2069
2070 if (!pSQLParamOptions) return SQL_ERROR;
2071
2072 ret = pSQLParamOptions(hstmt, crow, pirow);
2073 TRACE("Returning %d\n", ret);
2074 return ret;
2075}
static SQLRETURN(* pSQLParamOptions)(SQLHSTMT, SQLULEN, SQLULEN *)
Definition: proxyodbc.c:141

◆ ODBC32_SQLPrepare()

SQLRETURN WINAPI ODBC32_SQLPrepare ( SQLHSTMT  StatementHandle,
SQLCHAR StatementText,
SQLINTEGER  TextLength 
)

Definition at line 1568 of file proxyodbc.c.

1569{
1570 SQLRETURN ret;
1571
1572 TRACE("(StatementHandle %p, StatementText %s, TextLength %d)\n", StatementHandle,
1573 debugstr_an((const char *)StatementText, TextLength), TextLength);
1574
1575 if (!pSQLPrepare) return SQL_ERROR;
1576
1577 ret = pSQLPrepare(StatementHandle, StatementText, TextLength);
1578 TRACE("Returning %d\n", ret);
1579 return ret;
1580}
static SQLRETURN(* pSQLPrepare)(SQLHSTMT, SQLCHAR *, SQLINTEGER)
Definition: proxyodbc.c:142

◆ ODBC32_SQLPrepareW()

SQLRETURN WINAPI ODBC32_SQLPrepareW ( SQLHSTMT  StatementHandle,
WCHAR StatementText,
SQLINTEGER  TextLength 
)

Definition at line 2448 of file proxyodbc.c.

2449{
2450 SQLRETURN ret;
2451
2452 TRACE("(StatementHandle %p, StatementText %s, TextLength %d)\n", StatementHandle,
2453 debugstr_wn(StatementText, TextLength), TextLength);
2454
2455 if (!pSQLPrepareW) return SQL_ERROR;
2456
2457 ret = pSQLPrepareW(StatementHandle, StatementText, TextLength);
2458 TRACE("Returning %d\n", ret);
2459 return ret;
2460}
static SQLRETURN(* pSQLPrepareW)(SQLHSTMT, SQLWCHAR *, SQLINTEGER)
Definition: proxyodbc.c:143

◆ ODBC32_SQLPrimaryKeys()

SQLRETURN WINAPI ODBC32_SQLPrimaryKeys ( SQLHSTMT  hstmt,
SQLCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLCHAR szTableName,
SQLSMALLINT  cbTableName 
)

Definition at line 2080 of file proxyodbc.c.

2083{
2084 SQLRETURN ret;
2085
2086 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szTableName %s,"
2087 " cbTableName %d)\n", hstmt,
2088 debugstr_an((const char *)szCatalogName, cbCatalogName), cbCatalogName,
2089 debugstr_an((const char *)szSchemaName, cbSchemaName), cbSchemaName,
2090 debugstr_an((const char *)szTableName, cbTableName), cbTableName);
2091
2092 if (!pSQLPrimaryKeys) return SQL_ERROR;
2093
2094 ret = pSQLPrimaryKeys(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName, cbTableName);
2095 TRACE("Returning %d\n", ret);
2096 return ret;
2097}
static SQLRETURN(* pSQLPrimaryKeys)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:144

◆ ODBC32_SQLPrimaryKeysW()

SQLRETURN WINAPI ODBC32_SQLPrimaryKeysW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szTableName,
SQLSMALLINT  cbTableName 
)

Definition at line 2956 of file proxyodbc.c.

2959{
2960 SQLRETURN ret;
2961
2962 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szTableName %s,"
2963 " cbTableName %d)\n", hstmt,
2964 debugstr_wn(szCatalogName, cbCatalogName), cbCatalogName,
2965 debugstr_wn(szSchemaName, cbSchemaName), cbSchemaName,
2966 debugstr_wn(szTableName, cbTableName), cbTableName);
2967
2968 if (!pSQLPrimaryKeysW) return SQL_ERROR;
2969
2970 ret = pSQLPrimaryKeysW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName, cbTableName);
2971 TRACE("Returning %d\n", ret);
2972 return ret;
2973}
static SQLRETURN(* pSQLPrimaryKeysW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:145

◆ ODBC32_SQLProcedureColumns()

SQLRETURN WINAPI ODBC32_SQLProcedureColumns ( SQLHSTMT  hstmt,
SQLCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLCHAR szProcName,
SQLSMALLINT  cbProcName,
SQLCHAR szColumnName,
SQLSMALLINT  cbColumnName 
)

Definition at line 2102 of file proxyodbc.c.

2105{
2106 SQLRETURN ret;
2107
2108 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szProcName %s,"
2109 " cbProcName %d, szColumnName %s, cbColumnName %d)\n", hstmt,
2110 debugstr_an((const char *)szCatalogName, cbCatalogName), cbCatalogName,
2111 debugstr_an((const char *)szSchemaName, cbSchemaName), cbSchemaName,
2112 debugstr_an((const char *)szProcName, cbProcName), cbProcName,
2113 debugstr_an((const char *)szColumnName, cbColumnName), cbColumnName);
2114
2115 if (!pSQLProcedureColumns) return SQL_ERROR;
2116
2117 ret = pSQLProcedureColumns(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szProcName,
2118 cbProcName, szColumnName, cbColumnName);
2119 TRACE("Returning %d\n", ret);
2120 return ret;
2121}
static SQLRETURN(* pSQLProcedureColumns)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:146

◆ ODBC32_SQLProcedureColumnsW()

SQLRETURN WINAPI ODBC32_SQLProcedureColumnsW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szProcName,
SQLSMALLINT  cbProcName,
SQLWCHAR szColumnName,
SQLSMALLINT  cbColumnName 
)

Definition at line 2978 of file proxyodbc.c.

2981{
2982 SQLRETURN ret;
2983
2984 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szProcName %s,"
2985 " cbProcName %d, szColumnName %s, cbColumnName %d)\n", hstmt,
2986 debugstr_wn(szCatalogName, cbCatalogName), cbCatalogName,
2987 debugstr_wn(szSchemaName, cbSchemaName), cbSchemaName,
2988 debugstr_wn(szProcName, cbProcName), cbProcName,
2989 debugstr_wn(szColumnName, cbColumnName), cbColumnName);
2990
2991 if (!pSQLProcedureColumnsW) return SQL_ERROR;
2992
2993 ret = pSQLProcedureColumnsW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szProcName,
2994 cbProcName, szColumnName, cbColumnName);
2995 TRACE("Returning %d\n", ret);
2996 return ret;
2997}
static SQLRETURN(* pSQLProcedureColumnsW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:147

◆ ODBC32_SQLProcedures()

SQLRETURN WINAPI ODBC32_SQLProcedures ( SQLHSTMT  hstmt,
SQLCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLCHAR szProcName,
SQLSMALLINT  cbProcName 
)

Definition at line 2126 of file proxyodbc.c.

2129{
2130 SQLRETURN ret;
2131
2132 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szProcName %s,"
2133 " cbProcName %d)\n", hstmt,
2134 debugstr_an((const char *)szCatalogName, cbCatalogName), cbCatalogName,
2135 debugstr_an((const char *)szSchemaName, cbSchemaName), cbSchemaName,
2136 debugstr_an((const char *)szProcName, cbProcName), cbProcName);
2137
2138 if (!pSQLProcedures) return SQL_ERROR;
2139
2140 ret = pSQLProcedures(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szProcName, cbProcName);
2141 TRACE("Returning %d\n", ret);
2142 return ret;
2143}
static SQLRETURN(* pSQLProcedures)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:148

◆ ODBC32_SQLProceduresW()

SQLRETURN WINAPI ODBC32_SQLProceduresW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szProcName,
SQLSMALLINT  cbProcName 
)

Definition at line 3002 of file proxyodbc.c.

3005{
3006 SQLRETURN ret;
3007
3008 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szProcName %s,"
3009 " cbProcName %d)\n", hstmt, debugstr_wn(szCatalogName, cbCatalogName), cbCatalogName,
3010 debugstr_wn(szSchemaName, cbSchemaName), cbSchemaName, debugstr_wn(szProcName, cbProcName), cbProcName);
3011
3012 if (!pSQLProceduresW) return SQL_ERROR;
3013
3014 ret = pSQLProceduresW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szProcName, cbProcName);
3015 TRACE("Returning %d\n", ret);
3016 return ret;
3017}
static SQLRETURN(* pSQLProceduresW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:149

◆ ODBC32_SQLPutData()

SQLRETURN WINAPI ODBC32_SQLPutData ( SQLHSTMT  StatementHandle,
SQLPOINTER  Data,
SQLLEN  StrLen_or_Ind 
)

Definition at line 1585 of file proxyodbc.c.

1586{
1587 SQLRETURN ret;
1588
1589 TRACE("(StatementHandle %p, Data %p, StrLen_or_Ind %s)\n", StatementHandle, Data, debugstr_sqllen(StrLen_or_Ind));
1590
1591 if (!pSQLPutData) return SQL_ERROR;
1592
1593 ret = pSQLPutData(StatementHandle, Data, StrLen_or_Ind);
1594 TRACE("Returning %d\n", ret);
1595 return ret;
1596}
static SQLRETURN(* pSQLPutData)(SQLHSTMT, SQLPOINTER, SQLLEN)
Definition: proxyodbc.c:150

◆ ODBC32_SQLRowCount()

SQLRETURN WINAPI ODBC32_SQLRowCount ( SQLHSTMT  StatementHandle,
SQLLEN RowCount 
)

Definition at line 1601 of file proxyodbc.c.

1602{
1603 SQLRETURN ret;
1604
1605 TRACE("(StatementHandle %p, RowCount %p)\n", StatementHandle, RowCount);
1606
1607 if (!pSQLRowCount) return SQL_ERROR;
1608
1609 ret = pSQLRowCount(StatementHandle, RowCount);
1610 if (ret == SQL_SUCCESS && RowCount) TRACE(" RowCount %s\n", debugstr_sqllen(*RowCount));
1611 TRACE("Returning %d\n", ret);
1612 return ret;
1613}
static SQLRETURN(* pSQLRowCount)(SQLHSTMT, SQLLEN *)
Definition: proxyodbc.c:151

◆ ODBC32_SQLSetConnectAttr()

SQLRETURN WINAPI ODBC32_SQLSetConnectAttr ( SQLHDBC  ConnectionHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  StringLength 
)

Definition at line 1618 of file proxyodbc.c.

1620{
1621 SQLRETURN ret;
1622
1623 TRACE("(ConnectionHandle %p, Attribute %d, Value %p, StringLength %d)\n", ConnectionHandle, Attribute, Value,
1624 StringLength);
1625
1626 if (!pSQLSetConnectAttr) return SQL_ERROR;
1627
1628 ret = pSQLSetConnectAttr(ConnectionHandle, Attribute, Value, StringLength);
1629 TRACE("Returning %d\n", ret);
1630 return ret;
1631}
static SQLRETURN(* pSQLSetConnectAttr)(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER)
Definition: proxyodbc.c:152

◆ ODBC32_SQLSetConnectAttrW()

SQLRETURN WINAPI ODBC32_SQLSetConnectAttrW ( SQLHDBC  ConnectionHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  StringLength 
)

Definition at line 2633 of file proxyodbc.c.

2635{
2636 SQLRETURN ret;
2637
2638 TRACE("(ConnectionHandle %p, Attribute %d, Value %p, StringLength %d)\n", ConnectionHandle, Attribute, Value,
2639 StringLength);
2640
2641 if (!pSQLSetConnectAttrW) return SQL_ERROR;
2642
2643 ret = pSQLSetConnectAttrW(ConnectionHandle, Attribute, Value, StringLength);
2644 TRACE("Returning %d\n", ret);
2645 return ret;
2646}
static SQLRETURN(* pSQLSetConnectAttrW)(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER)
Definition: proxyodbc.c:153

◆ ODBC32_SQLSetConnectOption()

SQLRETURN WINAPI ODBC32_SQLSetConnectOption ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  Option,
SQLULEN  Value 
)

Definition at line 1636 of file proxyodbc.c.

1637{
1638 SQLRETURN ret;
1639
1640 TRACE("(ConnectionHandle %p, Option %d, Value %s)\n", ConnectionHandle, Option, debugstr_sqlulen(Value));
1641
1642 if (!pSQLSetConnectOption) return SQL_ERROR;
1643
1645 TRACE("Returning %d\n", ret);
1646 return ret;
1647}
static SQLRETURN(* pSQLSetConnectOption)(SQLHDBC, SQLUSMALLINT, SQLULEN)
Definition: proxyodbc.c:154

◆ ODBC32_SQLSetConnectOptionW()

SQLRETURN WINAPI ODBC32_SQLSetConnectOptionW ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  Option,
SQLULEN  Value 
)

Definition at line 2751 of file proxyodbc.c.

2752{
2753 SQLRETURN ret;
2754
2755 TRACE("(ConnectionHandle %p, Option %d, Value %s)\n", ConnectionHandle, Option, debugstr_sqllen(Value));
2756
2757 if (!pSQLSetConnectOptionW) return SQL_ERROR;
2758
2760 TRACE("Returning %d\n", ret);
2761 return ret;
2762}
static SQLRETURN(* pSQLSetConnectOptionW)(SQLHDBC, SQLUSMALLINT, SQLULEN)
Definition: proxyodbc.c:155

◆ ODBC32_SQLSetCursorName()

SQLRETURN WINAPI ODBC32_SQLSetCursorName ( SQLHSTMT  StatementHandle,
SQLCHAR CursorName,
SQLSMALLINT  NameLength 
)

Definition at line 1652 of file proxyodbc.c.

1653{
1654 SQLRETURN ret;
1655
1656 TRACE("(StatementHandle %p, CursorName %s, NameLength %d)\n", StatementHandle,
1657 debugstr_an((const char *)CursorName, NameLength), NameLength);
1658
1659 if (!pSQLSetCursorName) return SQL_ERROR;
1660
1661 ret = pSQLSetCursorName(StatementHandle, CursorName, NameLength);
1662 TRACE("Returning %d\n", ret);
1663 return ret;
1664}
static SQLRETURN(* pSQLSetCursorName)(SQLHSTMT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:156

◆ ODBC32_SQLSetCursorNameW()

SQLRETURN WINAPI ODBC32_SQLSetCursorNameW ( SQLHSTMT  StatementHandle,
WCHAR CursorName,
SQLSMALLINT  NameLength 
)

Definition at line 2465 of file proxyodbc.c.

2466{
2467 SQLRETURN ret;
2468
2469 TRACE("(StatementHandle %p, CursorName %s, NameLength %d)\n", StatementHandle,
2470 debugstr_wn(CursorName, NameLength), NameLength);
2471
2472 if (!pSQLSetCursorNameW) return SQL_ERROR;
2473
2474 ret = pSQLSetCursorNameW(StatementHandle, CursorName, NameLength);
2475 TRACE("Returning %d\n", ret);
2476 return ret;
2477}
static SQLRETURN(* pSQLSetCursorNameW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:157

◆ ODBC32_SQLSetDescField()

SQLRETURN WINAPI ODBC32_SQLSetDescField ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  FieldIdentifier,
SQLPOINTER  Value,
SQLINTEGER  BufferLength 
)

Definition at line 1669 of file proxyodbc.c.

1671{
1672 SQLRETURN ret;
1673
1674 TRACE("(DescriptorHandle %p, RecNumber %d, FieldIdentifier %d, Value %p, BufferLength %d)\n", DescriptorHandle,
1675 RecNumber, FieldIdentifier, Value, BufferLength);
1676
1677 if (!pSQLSetDescField) return SQL_ERROR;
1678
1679 ret = pSQLSetDescField(DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength);
1680 TRACE("Returning %d\n", ret);
1681 return ret;
1682}
static SQLRETURN(* pSQLSetDescField)(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER)
Definition: proxyodbc.c:158

◆ ODBC32_SQLSetDescFieldW()

SQLRETURN WINAPI ODBC32_SQLSetDescFieldW ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  FieldIdentifier,
SQLPOINTER  Value,
SQLINTEGER  BufferLength 
)

Definition at line 3069 of file proxyodbc.c.

3071{
3072 SQLRETURN ret;
3073
3074 TRACE("(DescriptorHandle %p, RecNumber %d, FieldIdentifier %d, Value %p, BufferLength %d)\n", DescriptorHandle,
3075 RecNumber, FieldIdentifier, Value, BufferLength);
3076
3077 if (!pSQLSetDescFieldW) return SQL_ERROR;
3078
3079 ret = pSQLSetDescFieldW(DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength);
3080 TRACE("Returning %d\n", ret);
3081 return ret;
3082}
static SQLRETURN(* pSQLSetDescFieldW)(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLINTEGER)
Definition: proxyodbc.c:159

◆ ODBC32_SQLSetDescRec()

SQLRETURN WINAPI ODBC32_SQLSetDescRec ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  Type,
SQLSMALLINT  SubType,
SQLLEN  Length,
SQLSMALLINT  Precision,
SQLSMALLINT  Scale,
SQLPOINTER  Data,
SQLLEN StringLength,
SQLLEN Indicator 
)

Definition at line 1687 of file proxyodbc.c.

1690{
1691 SQLRETURN ret;
1692
1693 TRACE("(DescriptorHandle %p, RecNumber %d, Type %d, SubType %d, Length %s, Precision %d, Scale %d, Data %p,"
1694 " StringLength %p, Indicator %p)\n", DescriptorHandle, RecNumber, Type, SubType, debugstr_sqllen(Length),
1695 Precision, Scale, Data, StringLength, Indicator);
1696
1697 if (!pSQLSetDescRec) return SQL_ERROR;
1698
1699 ret = pSQLSetDescRec(DescriptorHandle, RecNumber, Type, SubType, Length, Precision, Scale, Data,
1700 StringLength, Indicator);
1701 TRACE("Returning %d\n", ret);
1702 return ret;
1703}
static SQLRETURN(* pSQLSetDescRec)(SQLHDESC, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLLEN, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN *, SQLLEN *)
Definition: proxyodbc.c:160

◆ ODBC32_SQLSetEnvAttr()

SQLRETURN WINAPI ODBC32_SQLSetEnvAttr ( SQLHENV  EnvironmentHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  StringLength 
)

Definition at line 1708 of file proxyodbc.c.

1710{
1711 SQLRETURN ret;
1712
1713 TRACE("(EnvironmentHandle %p, Attribute %d, Value %p, StringLength %d)\n", EnvironmentHandle, Attribute, Value,
1714 StringLength);
1715
1716 if (!pSQLSetEnvAttr) return SQL_ERROR;
1717
1718 ret = pSQLSetEnvAttr(EnvironmentHandle, Attribute, Value, StringLength);
1719 TRACE("Returning %d\n", ret);
1720 return ret;
1721}
static SQLRETURN(* pSQLSetEnvAttr)(SQLHENV, SQLINTEGER, SQLPOINTER, SQLINTEGER)
Definition: proxyodbc.c:161

◆ ODBC32_SQLSetParam()

SQLRETURN WINAPI ODBC32_SQLSetParam ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ParameterNumber,
SQLSMALLINT  ValueType,
SQLSMALLINT  ParameterType,
SQLULEN  LengthPrecision,
SQLSMALLINT  ParameterScale,
SQLPOINTER  ParameterValue,
SQLLEN StrLen_or_Ind 
)

Definition at line 1726 of file proxyodbc.c.

1729{
1730 SQLRETURN ret;
1731
1732 TRACE("(StatementHandle %p, ParameterNumber %d, ValueType %d, ParameterType %d, LengthPrecision %s,"
1733 " ParameterScale %d, ParameterValue %p, StrLen_or_Ind %p)\n", StatementHandle, ParameterNumber, ValueType,
1734 ParameterType, debugstr_sqlulen(LengthPrecision), ParameterScale, ParameterValue, StrLen_or_Ind);
1735
1736 if (!pSQLSetParam) return SQL_ERROR;
1737
1738 ret = pSQLSetParam(StatementHandle, ParameterNumber, ValueType, ParameterType, LengthPrecision,
1739 ParameterScale, ParameterValue, StrLen_or_Ind);
1740 TRACE("Returning %d\n", ret);
1741 return ret;
1742}
static SQLRETURN(* pSQLSetParam)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN *)
Definition: proxyodbc.c:162

◆ ODBC32_SQLSetPos()

SQLRETURN WINAPI ODBC32_SQLSetPos ( SQLHSTMT  hstmt,
SQLSETPOSIROW  irow,
SQLUSMALLINT  fOption,
SQLUSMALLINT  fLock 
)

Definition at line 2148 of file proxyodbc.c.

2149{
2150 SQLRETURN ret;
2151
2152 TRACE("(hstmt %p, irow %s, fOption %d, fLock %d)\n", hstmt, debugstr_sqlulen(irow), fOption, fLock);
2153
2154 if (!pSQLSetPos) return SQL_ERROR;
2155
2156 ret = pSQLSetPos(hstmt, irow, fOption, fLock);
2157 TRACE("Returning %d\n", ret);
2158 return ret;
2159}
static SQLRETURN(* pSQLSetPos)(SQLHSTMT, SQLSETPOSIROW, SQLUSMALLINT, SQLUSMALLINT)
Definition: proxyodbc.c:163

◆ ODBC32_SQLSetScrollOptions()

SQLRETURN WINAPI ODBC32_SQLSetScrollOptions ( SQLHSTMT  statement_handle,
SQLUSMALLINT  f_concurrency,
SQLLEN  crow_keyset,
SQLUSMALLINT  crow_rowset 
)

Definition at line 2257 of file proxyodbc.c.

2259{
2260 SQLRETURN ret;
2261
2262 TRACE("(statement_handle %p, f_concurrency %d, crow_keyset %s, crow_rowset %d)\n", statement_handle,
2263 f_concurrency, debugstr_sqllen(crow_keyset), crow_rowset);
2264
2265 if (!pSQLSetScrollOptions) return SQL_ERROR;
2266
2267 ret = pSQLSetScrollOptions(statement_handle, f_concurrency, crow_keyset, crow_rowset);
2268 TRACE("Returning %d\n", ret);
2269 return ret;
2270}
static SQLRETURN(* pSQLSetScrollOptions)(SQLHSTMT, SQLUSMALLINT, SQLLEN, SQLUSMALLINT)
Definition: proxyodbc.c:164

◆ ODBC32_SQLSetStmtAttr()

SQLRETURN WINAPI ODBC32_SQLSetStmtAttr ( SQLHSTMT  StatementHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  StringLength 
)

Definition at line 1747 of file proxyodbc.c.

1749{
1750 SQLRETURN ret;
1751
1752 TRACE("(StatementHandle %p, Attribute %d, Value %p, StringLength %d)\n", StatementHandle, Attribute, Value,
1753 StringLength);
1754
1755 if (!pSQLSetStmtAttr) return SQL_ERROR;
1756
1757 ret = pSQLSetStmtAttr(StatementHandle, Attribute, Value, StringLength);
1758 TRACE("Returning %d\n", ret);
1759 return ret;
1760}
static SQLRETURN(* pSQLSetStmtAttr)(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER)
Definition: proxyodbc.c:165

◆ ODBC32_SQLSetStmtAttrW()

SQLRETURN WINAPI ODBC32_SQLSetStmtAttrW ( SQLHSTMT  StatementHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  StringLength 
)

Definition at line 3087 of file proxyodbc.c.

3089{
3090 SQLRETURN ret;
3091
3092 TRACE("(StatementHandle %p, Attribute %d, Value %p, StringLength %d)\n", StatementHandle, Attribute, Value,
3093 StringLength);
3094
3095 if (!pSQLSetStmtAttrW) return SQL_ERROR;
3096
3097 ret = pSQLSetStmtAttrW(StatementHandle, Attribute, Value, StringLength);
3098 if (ret == SQL_ERROR && (Attribute == SQL_ROWSET_SIZE || Attribute == SQL_ATTR_ROW_ARRAY_SIZE))
3099 {
3100 TRACE("CHEAT: returning SQL_SUCCESS to ADO\n");
3101 return SQL_SUCCESS;
3102 }
3103
3104 TRACE("Returning %d\n", ret);
3105 return ret;
3106}
static SQLRETURN(* pSQLSetStmtAttrW)(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER)
Definition: proxyodbc.c:166
#define SQL_ROWSET_SIZE
Definition: sqlext.h:431

◆ ODBC32_SQLSetStmtOption()

SQLRETURN WINAPI ODBC32_SQLSetStmtOption ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  Option,
SQLULEN  Value 
)

Definition at line 1765 of file proxyodbc.c.

1766{
1767 SQLRETURN ret;
1768
1769 TRACE("(StatementHandle %p, Option %d, Value %s)\n", StatementHandle, Option, debugstr_sqlulen(Value));
1770
1771 if (!pSQLSetStmtOption) return SQL_ERROR;
1772
1773 ret = pSQLSetStmtOption(StatementHandle, Option, Value);
1774 TRACE("Returning %d\n", ret);
1775 return ret;
1776}
static SQLRETURN(* pSQLSetStmtOption)(SQLHSTMT, SQLUSMALLINT, SQLULEN)
Definition: proxyodbc.c:167

◆ ODBC32_SQLSpecialColumns()

SQLRETURN WINAPI ODBC32_SQLSpecialColumns ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  IdentifierType,
SQLCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLCHAR TableName,
SQLSMALLINT  NameLength3,
SQLUSMALLINT  Scope,
SQLUSMALLINT  Nullable 
)

Definition at line 1781 of file proxyodbc.c.

1785{
1786 SQLRETURN ret;
1787
1788 TRACE("(StatementHandle %p, IdentifierType %d, CatalogName %s, NameLength1 %d, SchemaName %s, NameLength2 %d,"
1789 " TableName %s, NameLength3 %d, Scope %d, Nullable %d)\n", StatementHandle, IdentifierType,
1790 debugstr_an((const char *)CatalogName, NameLength1), NameLength1,
1791 debugstr_an((const char *)SchemaName, NameLength2), NameLength2,
1792 debugstr_an((const char *)TableName, NameLength3), NameLength3, Scope, Nullable);
1793
1794 if (!pSQLSpecialColumns) return SQL_ERROR;
1795
1796 ret = pSQLSpecialColumns(StatementHandle, IdentifierType, CatalogName, NameLength1, SchemaName,
1797 NameLength2, TableName, NameLength3, Scope, Nullable);
1798 TRACE("Returning %d\n", ret);
1799 return ret;
1800}
static SQLRETURN(* pSQLSpecialColumns)(SQLHSTMT, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT)
Definition: proxyodbc.c:168

◆ ODBC32_SQLSpecialColumnsW()

SQLRETURN WINAPI ODBC32_SQLSpecialColumnsW ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  IdentifierType,
SQLWCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLWCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLWCHAR TableName,
SQLSMALLINT  NameLength3,
SQLUSMALLINT  Scope,
SQLUSMALLINT  Nullable 
)

Definition at line 2767 of file proxyodbc.c.

2771{
2772 SQLRETURN ret;
2773
2774 TRACE("(StatementHandle %p, IdentifierType %d, CatalogName %s, NameLength1 %d, SchemaName %s, NameLength2 %d,"
2775 " TableName %s, NameLength3 %d, Scope %d, Nullable %d)\n", StatementHandle, IdentifierType,
2776 debugstr_wn(CatalogName, NameLength1), NameLength1, debugstr_wn(SchemaName, NameLength2), NameLength2,
2777 debugstr_wn(TableName, NameLength3), NameLength3, Scope, Nullable);
2778
2779 if (!pSQLSpecialColumnsW) return SQL_ERROR;
2780
2781 ret = pSQLSpecialColumnsW(StatementHandle, IdentifierType, CatalogName, NameLength1, SchemaName,
2782 NameLength2, TableName, NameLength3, Scope, Nullable);
2783 TRACE("Returning %d\n", ret);
2784 return ret;
2785}
static SQLRETURN(* pSQLSpecialColumnsW)(SQLHSTMT, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT)
Definition: proxyodbc.c:169

◆ ODBC32_SQLStatistics()

SQLRETURN WINAPI ODBC32_SQLStatistics ( SQLHSTMT  StatementHandle,
SQLCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLCHAR TableName,
SQLSMALLINT  NameLength3,
SQLUSMALLINT  Unique,
SQLUSMALLINT  Reserved 
)

Definition at line 1805 of file proxyodbc.c.

1808{
1809 SQLRETURN ret;
1810
1811 TRACE("(StatementHandle %p, CatalogName %s, NameLength1 %d SchemaName %s, NameLength2 %d, TableName %s"
1812 " NameLength3 %d, Unique %d, Reserved %d)\n", StatementHandle,
1813 debugstr_an((const char *)CatalogName, NameLength1), NameLength1,
1814 debugstr_an((const char *)SchemaName, NameLength2), NameLength2,
1815 debugstr_an((const char *)TableName, NameLength3), NameLength3, Unique, Reserved);
1816
1817 if (!pSQLStatistics) return SQL_ERROR;
1818
1819 ret = pSQLStatistics(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName,
1820 NameLength3, Unique, Reserved);
1821 TRACE("Returning %d\n", ret);
1822 return ret;
1823}
static SQLRETURN(* pSQLStatistics)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT)
Definition: proxyodbc.c:170
_Reserved_ PVOID Reserved
Definition: winddi.h:3974

◆ ODBC32_SQLStatisticsW()

SQLRETURN WINAPI ODBC32_SQLStatisticsW ( SQLHSTMT  StatementHandle,
SQLWCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLWCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLWCHAR TableName,
SQLSMALLINT  NameLength3,
SQLUSMALLINT  Unique,
SQLUSMALLINT  Reserved 
)

Definition at line 2790 of file proxyodbc.c.

2793{
2794 SQLRETURN ret;
2795
2796 TRACE("(StatementHandle %p, CatalogName %s, NameLength1 %d SchemaName %s, NameLength2 %d, TableName %s"
2797 " NameLength3 %d, Unique %d, Reserved %d)\n", StatementHandle,
2798 debugstr_wn(CatalogName, NameLength1), NameLength1, debugstr_wn(SchemaName, NameLength2), NameLength2,
2799 debugstr_wn(TableName, NameLength3), NameLength3, Unique, Reserved);
2800
2801 if (!pSQLStatisticsW) return SQL_ERROR;
2802
2803 ret = pSQLStatisticsW(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName,
2804 NameLength3, Unique, Reserved);
2805 TRACE("Returning %d\n", ret);
2806 return ret;
2807}
static SQLRETURN(* pSQLStatisticsW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLUSMALLINT, SQLUSMALLINT)
Definition: proxyodbc.c:171

◆ ODBC32_SQLTablePrivileges()

SQLRETURN WINAPI ODBC32_SQLTablePrivileges ( SQLHSTMT  hstmt,
SQLCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLCHAR szTableName,
SQLSMALLINT  cbTableName 
)

Definition at line 2164 of file proxyodbc.c.

2167{
2168 SQLRETURN ret;
2169
2170 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szTableName %s,"
2171 " cbTableName %d)\n", hstmt,
2172 debugstr_an((const char *)szCatalogName, cbCatalogName), cbCatalogName,
2173 debugstr_an((const char *)szSchemaName, cbSchemaName), cbSchemaName,
2174 debugstr_an((const char *)szTableName, cbTableName), cbTableName);
2175
2176 if (!pSQLTablePrivileges) return SQL_ERROR;
2177
2178 ret = pSQLTablePrivileges(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName,
2179 cbTableName);
2180 TRACE("Returning %d\n", ret);
2181 return ret;
2182}
static SQLRETURN(* pSQLTablePrivileges)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:172

◆ ODBC32_SQLTablePrivilegesW()

SQLRETURN WINAPI ODBC32_SQLTablePrivilegesW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szTableName,
SQLSMALLINT  cbTableName 
)

Definition at line 3022 of file proxyodbc.c.

3025{
3026 SQLRETURN ret;
3027
3028 TRACE("(hstmt %p, szCatalogName %s, cbCatalogName %d, szSchemaName %s, cbSchemaName %d, szTableName %s,"
3029 " cbTableName %d)\n", hstmt, debugstr_wn(szCatalogName, cbCatalogName), cbCatalogName,
3030 debugstr_wn(szSchemaName, cbSchemaName), cbSchemaName, debugstr_wn(szTableName, cbTableName), cbTableName);
3031
3032 if (!pSQLTablePrivilegesW) return SQL_ERROR;
3033
3034 ret = pSQLTablePrivilegesW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName,
3035 cbTableName);
3036 TRACE("Returning %d\n", ret);
3037 return ret;
3038}
static SQLRETURN(* pSQLTablePrivilegesW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:173

◆ ODBC32_SQLTables()

SQLRETURN WINAPI ODBC32_SQLTables ( SQLHSTMT  StatementHandle,
SQLCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLCHAR TableName,
SQLSMALLINT  NameLength3,
SQLCHAR TableType,
SQLSMALLINT  NameLength4 
)

Definition at line 1828 of file proxyodbc.c.

1831{
1832 SQLRETURN ret;
1833
1834 TRACE("(StatementHandle %p, CatalogName %s, NameLength1 %d, SchemaName %s, NameLength2 %d, TableName %s,"
1835 " NameLength3 %d, TableType %s, NameLength4 %d)\n", StatementHandle,
1836 debugstr_an((const char *)CatalogName, NameLength1), NameLength1,
1837 debugstr_an((const char *)SchemaName, NameLength2), NameLength2,
1838 debugstr_an((const char *)TableName, NameLength3), NameLength3,
1839 debugstr_an((const char *)TableType, NameLength4), NameLength4);
1840
1841 if (!pSQLTables) return SQL_ERROR;
1842
1843 ret = pSQLTables(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName, NameLength3,
1844 TableType, NameLength4);
1845 TRACE("Returning %d\n", ret);
1846 return ret;
1847}
static SQLRETURN(* pSQLTables)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:174

◆ ODBC32_SQLTablesW()

SQLRETURN WINAPI ODBC32_SQLTablesW ( SQLHSTMT  StatementHandle,
SQLWCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLWCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLWCHAR TableName,
SQLSMALLINT  NameLength3,
SQLWCHAR TableType,
SQLSMALLINT  NameLength4 
)

Definition at line 2812 of file proxyodbc.c.

2815{
2816 SQLRETURN ret;
2817
2818 TRACE("(StatementHandle %p, CatalogName %s, NameLength1 %d, SchemaName %s, NameLength2 %d, TableName %s,"
2819 " NameLength3 %d, TableType %s, NameLength4 %d)\n", StatementHandle,
2820 debugstr_wn(CatalogName, NameLength1), NameLength1, debugstr_wn(SchemaName, NameLength2), NameLength2,
2821 debugstr_wn(TableName, NameLength3), NameLength3, debugstr_wn(TableType, NameLength4), NameLength4);
2822
2823 if (!pSQLTablesW) return SQL_ERROR;
2824
2825 ret = pSQLTablesW(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName, NameLength3,
2826 TableType, NameLength4);
2827 TRACE("Returning %d\n", ret);
2828 return ret;
2829}
static SQLRETURN(* pSQLTablesW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:175

◆ ODBC32_SQLTransact()

SQLRETURN WINAPI ODBC32_SQLTransact ( SQLHENV  EnvironmentHandle,
SQLHDBC  ConnectionHandle,
SQLUSMALLINT  CompletionType 
)

Definition at line 1852 of file proxyodbc.c.

1853{
1854 SQLRETURN ret;
1855
1856 TRACE("(EnvironmentHandle %p, ConnectionHandle %p, CompletionType %d)\n", EnvironmentHandle, ConnectionHandle,
1857 CompletionType);
1858
1859 if (!pSQLTransact) return SQL_ERROR;
1860
1861 ret = pSQLTransact(EnvironmentHandle, ConnectionHandle, CompletionType);
1862 TRACE("Returning %d\n", ret);
1863 return ret;
1864}
static SQLRETURN(* pSQLTransact)(SQLHENV, SQLHDBC, SQLUSMALLINT)
Definition: proxyodbc.c:176

◆ ODBC_LoadDMFunctions()

static BOOL ODBC_LoadDMFunctions ( void  )
static

Definition at line 554 of file proxyodbc.c.

555{
556 char error[256];
557
558 if (dmHandle == NULL)
559 return FALSE;
560
561#define LOAD_FUNC(name) \
562 if ((p##name = wine_dlsym( dmHandle, #name, error, sizeof(error) ))); \
563 else WARN( "Failed to load %s: %s\n", #name, error )
564
568 LOAD_FUNC(SQLAllocHandleStd);
575 LOAD_FUNC(SQLBulkOperations);
598 LOAD_FUNC(