ReactOS  0.4.15-dev-509-g96a357b
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 error(str)
Definition: mkdosfs.c:1605
#define WARN(fmt,...)
Definition: debug.h:112
void * wine_dlsym(void *handle, const char *symbol, char *error, size_t errorsize)
Definition: loader.c:48
static void * dmHandle
Definition: proxyodbc.c:184
Definition: name.c:38
GLfloat GLfloat p
Definition: glext.h:8902

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:271
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

Definition at line 844 of file proxyodbc.c.

845 {
846 #ifdef _WIN64
847  return wine_dbg_sprintf( "%lu", len );
848 #else
849  return wine_dbg_sprintf( "%u", len );
850 #endif
851 }
const char * wine_dbg_sprintf(const char *format,...)
Definition: compat.c:271
GLenum GLsizei len
Definition: glext.h:6722

Referenced by ODBC32_SQLBindParam(), ODBC32_SQLBindParameter(), ODBC32_SQLDescribeCol(), ODBC32_SQLDescribeColW(), ODBC32_SQLParamOptions(), ODBC32_SQLSetConnectOption(), ODBC32_SQLSetParam(), ODBC32_SQLSetPos(), and ODBC32_SQLSetStmtOption().

◆ 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  {
492  case DLL_PROCESS_ATTACH:
493  DisableThreadLibraryCalls(hinstDLL);
495  {
498  }
499  break;
500 
501  case DLL_PROCESS_DETACH:
502  if (reserved) break;
504  }
505 
506  return TRUE;
507 }
static BOOL ODBC_LoadDMFunctions(void)
Definition: proxyodbc.c:554
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
static BOOL ODBC_LoadDriverManager(void)
Definition: proxyodbc.c:519
static void * dmHandle
Definition: proxyodbc.c:184
r reserved
Definition: btrfs.c:2940
smooth NULL
Definition: ftsmooth.c:416
#define DLL_PROCESS_DETACH
Definition: compat.h:119
#define TRACE(s)
Definition: solgame.cpp:4
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
static void ODBC_ReplicateToRegistry(void)
Definition: proxyodbc.c:459
int wine_dlclose(void *handle, char *error, size_t errorsize)
Definition: loader.c:58

◆ ODBC32_SQLAllocConnect()

SQLRETURN WINAPI ODBC32_SQLAllocConnect ( SQLHENV  EnvironmentHandle,
SQLHDBC ConnectionHandle 
)

Definition at line 690 of file proxyodbc.c.

691 {
692  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_NULL_HDBC
Definition: sql.h:137
static SQLRETURN(* pSQLAllocConnect)(SQLHENV, SQLHDBC *)
Definition: proxyodbc.c:61
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ ODBC32_SQLAllocEnv()

SQLRETURN WINAPI ODBC32_SQLAllocEnv ( SQLHENV EnvironmentHandle)

Definition at line 711 of file proxyodbc.c.

712 {
713  SQLRETURN ret;
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 }
#define SQL_NULL_HENV
Definition: sql.h:138
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLAllocEnv)(SQLHENV *)
Definition: proxyodbc.c:62
int ret

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 {
734  SQLRETURN ret;
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 }
#define SQL_NULL_HENV
Definition: sql.h:138
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_NULL_HDBC
Definition: sql.h:137
HANDLE OutputHandle
Definition: apc.c:8
#define WARN(fmt,...)
Definition: debug.h:112
#define SQL_NULL_HSTMT
Definition: sql.h:139
#define SQL_ERROR
Definition: sql.h:68
#define ERROR_LIBRARY_NOT_FOUND
Definition: proxyodbc.c:182
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLAllocHandle)(SQLSMALLINT, SQLHANDLE, SQLHANDLE *)
Definition: proxyodbc.c:63
int ret
#define SQL_NULL_HDESC
Definition: sql.h:318
#define SQL_HANDLE_STMT
Definition: sql.h:306
HANDLE InputHandle
Definition: apc.c:9
#define SQL_HANDLE_ENV
Definition: sql.h:305
#define SQL_HANDLE_DBC
Definition: sql.h:303
#define SQL_HANDLE_DESC
Definition: sql.h:304
static int nErrorType
Definition: proxyodbc.c:185

◆ ODBC32_SQLAllocHandleStd()

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

Definition at line 785 of file proxyodbc.c.

786 {
787  SQLRETURN ret;
788 
789  TRACE("(HandleType %d, InputHandle %p, OutputHandle %p)\n", HandleType, InputHandle, OutputHandle);
790 
791  if (!pSQLAllocHandleStd)
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 }
#define SQL_NULL_HENV
Definition: sql.h:138
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLAllocHandleStd)(SQLSMALLINT, SQLHANDLE, SQLHANDLE *)
Definition: proxyodbc.c:64
#define SQL_NULL_HDBC
Definition: sql.h:137
HANDLE OutputHandle
Definition: apc.c:8
#define WARN(fmt,...)
Definition: debug.h:112
#define SQL_NULL_HSTMT
Definition: sql.h:139
#define SQL_ERROR
Definition: sql.h:68
#define ERROR_LIBRARY_NOT_FOUND
Definition: proxyodbc.c:182
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define SQL_NULL_HDESC
Definition: sql.h:318
#define SQL_HANDLE_STMT
Definition: sql.h:306
HANDLE InputHandle
Definition: apc.c:9
#define SQL_HANDLE_ENV
Definition: sql.h:305
#define SQL_HANDLE_DBC
Definition: sql.h:303
#define SQL_HANDLE_DESC
Definition: sql.h:304
static int nErrorType
Definition: proxyodbc.c:185

◆ ODBC32_SQLAllocStmt()

SQLRETURN WINAPI ODBC32_SQLAllocStmt ( SQLHDBC  ConnectionHandle,
SQLHSTMT StatementHandle 
)

Definition at line 764 of file proxyodbc.c.

765 {
766  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_NULL_HSTMT
Definition: sql.h:139
#define SQL_ERROR
Definition: sql.h:68
static SQLRETURN(* pSQLAllocStmt)(SQLHDBC, SQLHSTMT *)
Definition: proxyodbc.c:65
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 {
828  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static const char * debugstr_sqllen(SQLLEN len)
Definition: proxyodbc.c:813
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static SQLRETURN(* pSQLBindCol)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
Definition: proxyodbc.c:66

◆ 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 {
860  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
_In_ PCWSTR _In_z_ PCWSTR _In_ ULONG ValueType
Definition: rtlfuncs.h:4062
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_CONFIGURATION_PARAMETER _In_ NDIS_HANDLE _In_ PNDIS_STRING _In_ NDIS_PARAMETER_TYPE ParameterType
Definition: ndis.h:4413
static SQLRETURN(* pSQLBindParam)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN *)
Definition: proxyodbc.c:67
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
_In_opt_ PWSTR _In_ PWSTR _Inout_ PULONG ParameterValue
Definition: classpnp.h:1209
int ret
static const char * debugstr_sqlulen(SQLULEN len)
Definition: proxyodbc.c:844

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLBindParameter)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
Definition: proxyodbc.c:68
static const char * debugstr_sqllen(SQLLEN len)
Definition: proxyodbc.c:813
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static const char * debugstr_sqlulen(SQLULEN len)
Definition: proxyodbc.c:844

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLBrowseConnect)(SQLHDBC, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:69
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47

◆ 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 }
static SQLRETURN(* pSQLBrowseConnectW)(SQLHDBC, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:70
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static SQLRETURN(* pSQLBulkOperations)(SQLHSTMT, SQLSMALLINT)
Definition: proxyodbc.c:71
_In_ FLT_SET_CONTEXT_OPERATION Operation
Definition: fltkernel.h:1468

◆ ODBC32_SQLCancel()

SQLRETURN WINAPI ODBC32_SQLCancel ( SQLHSTMT  StatementHandle)

Definition at line 877 of file proxyodbc.c.

878 {
879  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLCancel)(SQLHSTMT)
Definition: proxyodbc.c:72
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ ODBC32_SQLCloseCursor()

SQLRETURN WINAPI ODBC32_SQLCloseCursor ( SQLHSTMT  StatementHandle)

Definition at line 893 of file proxyodbc.c.

894 {
895  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 {
914  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLColAttribute)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
Definition: proxyodbc.c:74
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static BOOL SQLColAttributes_KnownStringAttribute(SQLUSMALLINT fDescType)
Definition: proxyodbc.c:2272
#define lstrlenW
Definition: compat.h:416
#define SQL_SUCCESS
Definition: sql.h:163
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static SQLRETURN(* pSQLColAttributesW)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
Definition: proxyodbc.c:77

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static BOOL SQLColAttributes_KnownStringAttribute(SQLUSMALLINT fDescType)
Definition: proxyodbc.c:2272
#define lstrlenW
Definition: compat.h:416
static SQLRETURN(* pSQLColAttributeW)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
Definition: proxyodbc.c:75
#define SQL_SUCCESS
Definition: sql.h:163
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLColumnPrivilegesW)(SQLHSTMT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:79
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33

◆ 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 {
935  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
static SQLRETURN(* pSQLColumns)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:80
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33
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 {
959  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536
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
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ ODBC32_SQLCopyDesc()

SQLRETURN WINAPI ODBC32_SQLCopyDesc ( SQLHDESC  SourceDescHandle,
SQLHDESC  TargetDescHandle 
)

Definition at line 977 of file proxyodbc.c.

978 {
979  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLCopyDesc)(SQLHDESC, SQLHDESC)
Definition: proxyodbc.c:84
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 {
997  SQLRETURN ret;
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static const WCHAR Description[]
Definition: oid.c:1266
static SQLRETURN(* pSQLDataSources)(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:85
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
_Inout_ PSIZE_T _In_opt_ PMDLX _In_ MM_ROTATE_DIRECTION Direction
Definition: mmfuncs.h:773
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
#define TRACE_ON(x)
Definition: compat.h:65

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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static const WCHAR Description[]
Definition: oid.c:1266
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
_Inout_ PSIZE_T _In_opt_ PMDLX _In_ MM_ROTATE_DIRECTION Direction
Definition: mmfuncs.h:773
static SQLRETURN(* pSQLDataSourcesA)(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:86
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
#define TRACE_ON(x)
Definition: compat.h:65

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static const WCHAR Description[]
Definition: oid.c:1266
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
_Inout_ PSIZE_T _In_opt_ PMDLX _In_ MM_ROTATE_DIRECTION Direction
Definition: mmfuncs.h:773
int ret
#define debugstr_wn
Definition: kernel32.h:33
static SQLRETURN(* pSQLDataSourcesW)(SQLHENV, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:87
#define TRACE_ON(x)
Definition: compat.h:65

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLDescribeCol)(SQLHSTMT, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:88
SWORD SQLSMALLINT
Definition: sqltypes.h:31
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
static const char * debugstr_sqlulen(SQLULEN len)
Definition: proxyodbc.c:844
unsigned char dummy
Definition: maze.c:118
_In_ ULONG DataType
Definition: iotypes.h:790

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
SWORD SQLSMALLINT
Definition: sqltypes.h:31
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLDescribeColW)(SQLHSTMT, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:89
int ret
static const char * debugstr_sqlulen(SQLULEN len)
Definition: proxyodbc.c:844
#define debugstr_wn
Definition: kernel32.h:33
unsigned char dummy
Definition: maze.c:118
_In_ ULONG DataType
Definition: iotypes.h:790

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLDisconnect)(SQLHDBC)
Definition: proxyodbc.c:91
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLDriverConnect)(SQLHDBC, SQLHWND, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLUSMALLINT)
Definition: proxyodbc.c:92
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
INT Length2
Definition: FsRtlDissect.c:16
static SQLRETURN(* pSQLDriverConnectW)(SQLHDBC, SQLHWND, SQLWCHAR *, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLUSMALLINT)
Definition: proxyodbc.c:93
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
int ret
#define debugstr_wn
Definition: kernel32.h:33
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLDrivers)(SQLHENV, SQLUSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:94
#define SQL_NO_DATA
Definition: sql.h:315
#define ERR_(ch,...)
Definition: debug.h:156
#define SQL_FETCH_FIRST
Definition: sql.h:77
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static const WCHAR szDriverAttributes[]
Definition: provider.c:80

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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_NO_DATA
Definition: sql.h:315
#define ERR_(ch,...)
Definition: debug.h:156
#define SQL_FETCH_FIRST
Definition: sql.h:77
static SQLRETURN(* pSQLDriversW)(SQLHENV, SQLUSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:95
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static const WCHAR szDriverAttributes[]
Definition: provider.c:80

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
_In_ HANDLE Handle
Definition: extypes.h:390
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_SUCCESS
Definition: sql.h:163
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
static SQLRETURN(* pSQLError)(SQLHENV, SQLHDBC, SQLHSTMT, SQLCHAR *, SQLINTEGER *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:97
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_SUCCESS
Definition: sql.h:163
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLErrorW)(SQLHENV, SQLHDBC, SQLHSTMT, SQLWCHAR *, SQLINTEGER *, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:98
int ret
#define debugstr_wn
Definition: kernel32.h:33
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLExecDirect)(SQLHSTMT, SQLCHAR *, SQLINTEGER)
Definition: proxyodbc.c:99
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLExecDirectW)(SQLHSTMT, SQLWCHAR *, SQLINTEGER)
Definition: proxyodbc.c:100
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33

◆ 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
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static const char * debugstr_sqllen(SQLLEN len)
Definition: proxyodbc.c:813
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLFetch)(SQLHSTMT)
Definition: proxyodbc.c:103
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static const char * debugstr_sqllen(SQLLEN len)
Definition: proxyodbc.c:813
static SQLRETURN(* pSQLFetchScroll)(SQLHSTMT, SQLSMALLINT, SQLLEN)
Definition: proxyodbc.c:104
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
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
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLFreeConnect)(SQLHDBC)
Definition: proxyodbc.c:107
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLFreeEnv)(SQLHENV)
Definition: proxyodbc.c:108
int ret

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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
_In_ HANDLE Handle
Definition: extypes.h:390
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
IN UCHAR Value
Definition: halp.h:394
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static SQLRETURN(* pSQLGetConnectAttr)(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:111
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
IN UCHAR Value
Definition: halp.h:394
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static SQLRETURN(* pSQLGetConnectAttrW)(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:112
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLGetConnectOption)(SQLHDBC, SQLUSMALLINT, SQLPOINTER)
Definition: proxyodbc.c:113
IN UCHAR Value
Definition: halp.h:394
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
IN UCHAR Value
Definition: halp.h:394
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static const char * debugstr_sqllen(SQLLEN len)
Definition: proxyodbc.c:813
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
IN UCHAR Value
Definition: halp.h:394
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
IN UCHAR Value
Definition: halp.h:394
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
static SQLRETURN(* pSQLGetDescRec)(SQLHDESC, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *, SQLLEN *, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:120
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
Type
Definition: Type.h:6
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
Type
Definition: Type.h:6
static SQLRETURN(* pSQLGetDescRecW)(SQLHDESC, SQLSMALLINT, SQLWCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *, SQLLEN *, SQLSMALLINT *, SQLSMALLINT *, SQLSMALLINT *)
Definition: proxyodbc.c:121
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
_In_ HANDLE Handle
Definition: extypes.h:390
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLGetDiagField)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:122
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
_In_ HANDLE Handle
Definition: extypes.h:390
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
_In_ HANDLE Handle
Definition: extypes.h:390
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
static SQLRETURN(* pSQLGetDiagRecA)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLCHAR *, SQLINTEGER *, SQLCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:177
_In_ HANDLE Handle
Definition: extypes.h:390
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
_In_ HANDLE Handle
Definition: extypes.h:390
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
IN UCHAR Value
Definition: halp.h:394
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 
1448  ret = pSQLGetFunctions(ConnectionHandle, FunctionId, Supported);
1449  TRACE("Returning %d\n", ret);
1450  return ret;
1451 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static SQLRETURN(* pSQLGetFunctions)(SQLHDBC, SQLUSMALLINT, SQLUSMALLINT *)
Definition: proxyodbc.c:127
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define WARN(fmt,...)
Definition: debug.h:112
static SQLRETURN(* pSQLGetInfo)(SQLHDBC, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:128
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define WARN(fmt,...)
Definition: debug.h:112
static SQLRETURN(* pSQLGetInfoW)(SQLHDBC, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *)
Definition: proxyodbc.c:129
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
Definition: ks.h:4536

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define WARN(fmt,...)
Definition: debug.h:112
IN UCHAR Value
Definition: halp.h:394
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLGetStmtAttr)(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:130
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define WARN(fmt,...)
Definition: debug.h:112
IN UCHAR Value
Definition: halp.h:394
_In_ ULONG BufferLength
Definition: usbdlib.h:225
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
static SQLRETURN(* pSQLGetStmtAttrW)(SQLHSTMT, SQLINTEGER, SQLPOINTER, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:131
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
IN UCHAR Value
Definition: halp.h:394
#define SQL_ERROR
Definition: sql.h:68
static SQLRETURN(* pSQLGetStmtOption)(SQLHSTMT, SQLUSMALLINT, SQLPOINTER)
Definition: proxyodbc.c:132
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ ULONG DataType
Definition: iotypes.h:790
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static SQLRETURN(* pSQLGetTypeInfoW)(SQLHSTMT, SQLSMALLINT)
Definition: proxyodbc.c:134
_In_ ULONG DataType
Definition: iotypes.h:790

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLMoreResults)(SQLHSTMT)
Definition: proxyodbc.c:135
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLNativeSql)(SQLHDBC, SQLCHAR *, SQLINTEGER, SQLCHAR *, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:136
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLNativeSqlW)(SQLHDBC, SQLWCHAR *, SQLINTEGER, SQLWCHAR *, SQLINTEGER, SQLINTEGER *)
Definition: proxyodbc.c:137
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLNumResultCols)(SQLHSTMT, SQLSMALLINT *)
Definition: proxyodbc.c:139
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLParamData)(SQLHSTMT, SQLPOINTER *)
Definition: proxyodbc.c:140
IN UCHAR Value
Definition: halp.h:394
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret

◆ 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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static const char * debugstr_sqlulen(SQLULEN len)
Definition: proxyodbc.c:844
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define debugstr_wn
Definition: kernel32.h:33
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 }
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
static SQLRETURN(* pSQLProcedureColumns)(SQLHSTMT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT, SQLCHAR *, SQLSMALLINT)
Definition: proxyodbc.c:146
#define SQL_ERROR
Definition: sql.h:68
#define TRACE(s)
Definition: solgame.cpp:4
int ret
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47

◆ 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;