Commit b45deaa4 authored by Alexandre Julliard's avatar Alexandre Julliard

odbc32: Convert the Unix library to the __wine_unix_call interface.

parent e309bad9
MODULE = odbc32.dll
IMPORTLIB = odbc32
IMPORTS = advapi32
EXTRALIBS = -Wl,--subsystem,unixlib
EXTRADLLFLAGS = -mno-cygwin
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -49,6 +49,8 @@
WINE_DECLARE_DEBUG_CHANNEL(winediag);
static void *libodbc;
static SQLRETURN (*pSQLAllocConnect)(SQLHENV,SQLHDBC*);
static SQLRETURN (*pSQLAllocEnv)(SQLHENV*);
static SQLRETURN (*pSQLAllocHandle)(SQLSMALLINT,SQLHANDLE,SQLHANDLE*);
......@@ -168,769 +170,970 @@ static SQLRETURN (*pSQLTablesW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMAL
static SQLRETURN (*pSQLTransact)(SQLHENV,SQLHDBC,SQLUSMALLINT);
static SQLRETURN WINAPI wrap_SQLAllocConnect(SQLHENV EnvironmentHandle, SQLHDBC *ConnectionHandle)
static NTSTATUS load_odbc(void);
static NTSTATUS odbc_process_attach( void *args )
{
return pSQLAllocConnect(EnvironmentHandle, ConnectionHandle);
if (!load_odbc()) return STATUS_DLL_NOT_FOUND;
return STATUS_SUCCESS;
}
static SQLRETURN WINAPI wrap_SQLAllocEnv(SQLHENV *EnvironmentHandle)
static NTSTATUS odbc_process_detach( void *args )
{
return pSQLAllocEnv(EnvironmentHandle);
if (libodbc) dlclose( libodbc );
libodbc = NULL;
return STATUS_SUCCESS;
}
static SQLRETURN WINAPI wrap_SQLAllocHandle(SQLSMALLINT HandleType, SQLHANDLE InputHandle, SQLHANDLE *OutputHandle)
static NTSTATUS wrap_SQLAllocConnect( void *args )
{
return pSQLAllocHandle(HandleType, InputHandle, OutputHandle);
struct SQLAllocConnect_params *params = args;
return pSQLAllocConnect(params->EnvironmentHandle, params->ConnectionHandle);
}
static SQLRETURN WINAPI wrap_SQLAllocHandleStd(SQLSMALLINT HandleType, SQLHANDLE InputHandle, SQLHANDLE *OutputHandle)
static NTSTATUS wrap_SQLAllocEnv( void *args )
{
return pSQLAllocHandleStd(HandleType, InputHandle, OutputHandle);
struct SQLAllocEnv_params *params = args;
return pSQLAllocEnv(params->EnvironmentHandle);
}
static SQLRETURN WINAPI wrap_SQLAllocStmt(SQLHDBC ConnectionHandle, SQLHSTMT *StatementHandle)
static NTSTATUS wrap_SQLAllocHandle( void *args )
{
return pSQLAllocStmt(ConnectionHandle, StatementHandle);
struct SQLAllocHandle_params *params = args;
return pSQLAllocHandle(params->HandleType, params->InputHandle, params->OutputHandle);
}
static SQLRETURN WINAPI wrap_SQLBindCol(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType,
SQLPOINTER TargetValue, SQLLEN BufferLength, SQLLEN *StrLen_or_Ind)
static NTSTATUS wrap_SQLAllocHandleStd( void *args )
{
return pSQLBindCol(StatementHandle, ColumnNumber, TargetType, TargetValue, BufferLength, StrLen_or_Ind);
struct SQLAllocHandleStd_params *params = args;
return pSQLAllocHandleStd(params->HandleType, params->InputHandle, params->OutputHandle);
}
static SQLRETURN WINAPI wrap_SQLBindParam(SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT ValueType,
SQLSMALLINT ParameterType, SQLULEN LengthPrecision, SQLSMALLINT ParameterScale,
SQLPOINTER ParameterValue, SQLLEN *StrLen_or_Ind)
static NTSTATUS wrap_SQLAllocStmt( void *args )
{
return pSQLBindParam(StatementHandle, ParameterNumber, ValueType, ParameterType, LengthPrecision, ParameterScale,
ParameterValue, StrLen_or_Ind);
struct SQLAllocStmt_params *params = args;
return pSQLAllocStmt(params->ConnectionHandle, params->StatementHandle);
}
static SQLRETURN WINAPI wrap_SQLBindParameter(SQLHSTMT hstmt, SQLUSMALLINT ipar, SQLSMALLINT fParamType,
SQLSMALLINT fCType, SQLSMALLINT fSqlType, SQLULEN cbColDef,
SQLSMALLINT ibScale, SQLPOINTER rgbValue, SQLLEN cbValueMax,
SQLLEN *pcbValue)
static NTSTATUS wrap_SQLBindCol( void *args )
{
return pSQLBindParameter(hstmt, ipar, fParamType, fCType, fSqlType, cbColDef, ibScale, rgbValue, cbValueMax,
pcbValue);
struct SQLBindCol_params *params = args;
return pSQLBindCol(params->StatementHandle, params->ColumnNumber, params->TargetType,
params->TargetValue, params->BufferLength, params->StrLen_or_Ind);
}
static SQLRETURN WINAPI wrap_SQLBrowseConnect(SQLHDBC hdbc, SQLCHAR *szConnStrIn, SQLSMALLINT cbConnStrIn,
SQLCHAR *szConnStrOut, SQLSMALLINT cbConnStrOutMax,
SQLSMALLINT *pcbConnStrOut)
static NTSTATUS wrap_SQLBindParam( void *args )
{
return pSQLBrowseConnect(hdbc, szConnStrIn, cbConnStrIn, szConnStrOut, cbConnStrOutMax, pcbConnStrOut);
struct SQLBindParam_params *params = args;
return pSQLBindParam(params->StatementHandle, params->ParameterNumber, params->ValueType,
params->ParameterType, params->LengthPrecision, params->ParameterScale,
params->ParameterValue, params->StrLen_or_Ind);
}
static SQLRETURN WINAPI wrap_SQLBrowseConnectW(SQLHDBC hdbc, SQLWCHAR *szConnStrIn, SQLSMALLINT cbConnStrIn,
SQLWCHAR *szConnStrOut, SQLSMALLINT cbConnStrOutMax,
SQLSMALLINT *pcbConnStrOut)
static NTSTATUS wrap_SQLBindParameter( void *args )
{
return pSQLBrowseConnectW(hdbc, szConnStrIn, cbConnStrIn, szConnStrOut, cbConnStrOutMax, pcbConnStrOut);
struct SQLBindParameter_params *params = args;
return pSQLBindParameter(params->hstmt, params->ipar, params->fParamType, params->fCType,
params->fSqlType, params->cbColDef, params->ibScale, params->rgbValue,
params->cbValueMax, params->pcbValue);
}
static SQLRETURN WINAPI wrap_SQLBulkOperations(SQLHSTMT StatementHandle, SQLSMALLINT Operation)
static NTSTATUS wrap_SQLBrowseConnect( void *args )
{
return pSQLBulkOperations(StatementHandle, Operation);
struct SQLBrowseConnect_params *params = args;
return pSQLBrowseConnect(params->hdbc, params->szConnStrIn, params->cbConnStrIn, params->szConnStrOut,
params->cbConnStrOutMax, params->pcbConnStrOut);
}
static SQLRETURN WINAPI wrap_SQLCancel(SQLHSTMT StatementHandle)
static NTSTATUS wrap_SQLBrowseConnectW( void *args )
{
return pSQLCancel(StatementHandle);
struct SQLBrowseConnectW_params *params = args;
return pSQLBrowseConnectW(params->hdbc, params->szConnStrIn, params->cbConnStrIn, params->szConnStrOut,
params->cbConnStrOutMax, params->pcbConnStrOut);
}
static SQLRETURN WINAPI wrap_SQLCloseCursor(SQLHSTMT StatementHandle)
static NTSTATUS wrap_SQLBulkOperations( void *args )
{
return pSQLCloseCursor(StatementHandle);
struct SQLBulkOperations_params *params = args;
return pSQLBulkOperations(params->StatementHandle, params->Operation);
}
static SQLRETURN WINAPI wrap_SQLColAttribute(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber,
SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute,
SQLSMALLINT BufferLength, SQLSMALLINT *StringLength,
SQLLEN *NumericAttribute)
static NTSTATUS wrap_SQLCancel( void *args )
{
return pSQLColAttribute(StatementHandle, ColumnNumber, FieldIdentifier, CharacterAttribute, BufferLength,
StringLength, NumericAttribute);
struct SQLCancel_params *params = args;
return pSQLCancel(params->StatementHandle);
}
static SQLRETURN WINAPI wrap_SQLColAttributeW(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber,
SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute,
SQLSMALLINT BufferLength, SQLSMALLINT *StringLength,
SQLLEN *NumericAttribute)
static NTSTATUS wrap_SQLCloseCursor( void *args )
{
return pSQLColAttributeW(StatementHandle, ColumnNumber, FieldIdentifier, CharacterAttribute, BufferLength,
StringLength, NumericAttribute);
struct SQLCloseCursor_params *params = args;
return pSQLCloseCursor(params->StatementHandle);
}
static SQLRETURN WINAPI wrap_SQLColAttributes(SQLHSTMT hstmt, SQLUSMALLINT icol, SQLUSMALLINT fDescType,
SQLPOINTER rgbDesc, SQLSMALLINT cbDescMax, SQLSMALLINT *pcbDesc,
SQLLEN *pfDesc)
static NTSTATUS wrap_SQLColAttribute( void *args )
{
return pSQLColAttributes(hstmt, icol, fDescType, rgbDesc, cbDescMax, pcbDesc, pfDesc);
struct SQLColAttribute_params *params = args;
return pSQLColAttribute(params->StatementHandle, params->ColumnNumber, params->FieldIdentifier,
params->CharacterAttribute, params->BufferLength, params->StringLength,
params->NumericAttribute);
}
static SQLRETURN WINAPI wrap_SQLColAttributesW(SQLHSTMT hstmt, SQLUSMALLINT icol, SQLUSMALLINT fDescType,
SQLPOINTER rgbDesc, SQLSMALLINT cbDescMax, SQLSMALLINT *pcbDesc,
SQLLEN *pfDesc)
static NTSTATUS wrap_SQLColAttributeW( void *args )
{
return pSQLColAttributesW(hstmt, icol, fDescType, rgbDesc, cbDescMax, pcbDesc, pfDesc);
struct SQLColAttributeW_params *params = args;
return pSQLColAttributeW(params->StatementHandle, params->ColumnNumber, params->FieldIdentifier,
params->CharacterAttribute, params->BufferLength, params->StringLength,
params->NumericAttribute);
}
static SQLRETURN WINAPI wrap_SQLColumnPrivileges(SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szTableName,
SQLSMALLINT cbTableName, SQLCHAR *szColumnName, SQLSMALLINT cbColumnName)
static NTSTATUS wrap_SQLColAttributes( void *args )
{
return pSQLColumnPrivileges(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName,
szTableName, cbTableName, szColumnName, cbColumnName);
struct SQLColAttributes_params *params = args;
return pSQLColAttributes(params->hstmt, params->icol, params->fDescType, params->rgbDesc,
params->cbDescMax, params->pcbDesc, params->pfDesc);
}
static SQLRETURN WINAPI wrap_SQLColumnPrivilegesW(SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName,
SQLSMALLINT cbTableName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
static NTSTATUS wrap_SQLColAttributesW( void *args )
{
return pSQLColumnPrivilegesW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName,
cbTableName, szColumnName, cbColumnName);
struct SQLColAttributesW_params *params = args;
return pSQLColAttributesW(params->hstmt, params->icol, params->fDescType, params->rgbDesc,
params->cbDescMax, params->pcbDesc, params->pfDesc);
}
static SQLRETURN WINAPI wrap_SQLColumns(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1,
SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName,
SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
static NTSTATUS wrap_SQLColumnPrivileges( void *args )
{
return pSQLColumns(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName,
NameLength3, ColumnName, NameLength4);
struct SQLColumnPrivileges_params *params = args;
return pSQLColumnPrivileges(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName, params->szTableName,
params->cbTableName, params->szColumnName, params->cbColumnName);
}
static SQLRETURN WINAPI wrap_SQLColumnsW(SQLHSTMT StatementHandle, WCHAR *CatalogName, SQLSMALLINT NameLength1,
WCHAR *SchemaName, SQLSMALLINT NameLength2, WCHAR *TableName,
SQLSMALLINT NameLength3, WCHAR *ColumnName, SQLSMALLINT NameLength4)
static NTSTATUS wrap_SQLColumnPrivilegesW( void *args )
{
return pSQLColumnsW(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName, NameLength3,
ColumnName, NameLength4);
struct SQLColumnPrivilegesW_params *params = args;
return pSQLColumnPrivilegesW(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName, params->szTableName,
params->cbTableName, params->szColumnName, params->cbColumnName);
}
static SQLRETURN WINAPI wrap_SQLConnect(SQLHDBC ConnectionHandle, SQLCHAR *ServerName, SQLSMALLINT NameLength1,
SQLCHAR *UserName, SQLSMALLINT NameLength2, SQLCHAR *Authentication,
SQLSMALLINT NameLength3)
static NTSTATUS wrap_SQLColumns( void *args )
{
return pSQLConnect(ConnectionHandle, ServerName, NameLength1, UserName, NameLength2, Authentication, NameLength3);
struct SQLColumns_params *params = args;
return pSQLColumns(params->StatementHandle, params->CatalogName, params->NameLength1,
params->SchemaName, params->NameLength2, params->TableName, params->NameLength3,
params->ColumnName, params->NameLength4);
}
static SQLRETURN WINAPI wrap_SQLConnectW(SQLHDBC ConnectionHandle, WCHAR *ServerName, SQLSMALLINT NameLength1,
WCHAR *UserName, SQLSMALLINT NameLength2, WCHAR *Authentication,
SQLSMALLINT NameLength3)
static NTSTATUS wrap_SQLColumnsW( void *args )
{
return pSQLConnectW(ConnectionHandle, ServerName, NameLength1, UserName, NameLength2, Authentication, NameLength3);
struct SQLColumnsW_params *params = args;
return pSQLColumnsW(params->StatementHandle, params->CatalogName, params->NameLength1,
params->SchemaName, params->NameLength2, params->TableName, params->NameLength3,
params->ColumnName, params->NameLength4);
}
static SQLRETURN WINAPI wrap_SQLCopyDesc(SQLHDESC SourceDescHandle, SQLHDESC TargetDescHandle)
static NTSTATUS wrap_SQLConnect( void *args )
{
return pSQLCopyDesc(SourceDescHandle, TargetDescHandle);
struct SQLConnect_params *params = args;
return pSQLConnect(params->ConnectionHandle, params->ServerName, params->NameLength1, params->UserName,
params->NameLength2, params->Authentication, params->NameLength3);
}
static SQLRETURN WINAPI wrap_SQLDataSources(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *ServerName,
SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1, SQLCHAR *Description,
SQLSMALLINT BufferLength2, SQLSMALLINT *NameLength2)
static NTSTATUS wrap_SQLConnectW( void *args )
{
return pSQLDataSources(EnvironmentHandle, Direction, ServerName, BufferLength1, NameLength1, Description,
BufferLength2, NameLength2);
struct SQLConnectW_params *params = args;
return pSQLConnectW(params->ConnectionHandle, params->ServerName, params->NameLength1,
params->UserName, params->NameLength2, params->Authentication, params->NameLength3);
}
static SQLRETURN WINAPI wrap_SQLDataSourcesA(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *ServerName,
SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1, SQLCHAR *Description,
SQLSMALLINT BufferLength2, SQLSMALLINT *NameLength2)
static NTSTATUS wrap_SQLCopyDesc( void *args )
{
return pSQLDataSourcesA(EnvironmentHandle, Direction, ServerName, BufferLength1, NameLength1, Description,
BufferLength2, NameLength2);
struct SQLCopyDesc_params *params = args;
return pSQLCopyDesc(params->SourceDescHandle, params->TargetDescHandle);
}
static SQLRETURN WINAPI wrap_SQLDataSourcesW(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, WCHAR *ServerName,
SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1, WCHAR *Description,
SQLSMALLINT BufferLength2, SQLSMALLINT *NameLength2)
static NTSTATUS wrap_SQLDataSources( void *args )
{
return pSQLDataSourcesW(EnvironmentHandle, Direction, ServerName, BufferLength1, NameLength1, Description,
BufferLength2, NameLength2);
struct SQLDataSources_params *params = args;
return pSQLDataSources(params->EnvironmentHandle, params->Direction, params->ServerName,
params->BufferLength1, params->NameLength1, params->Description,
params->BufferLength2, params->NameLength2);
}
static SQLRETURN WINAPI wrap_SQLDescribeCol(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLCHAR *ColumnName,
SQLSMALLINT BufferLength, SQLSMALLINT *NameLength, SQLSMALLINT *DataType,
SQLULEN *ColumnSize, SQLSMALLINT *DecimalDigits, SQLSMALLINT *Nullable)
static NTSTATUS wrap_SQLDataSourcesA( void *args )
{
return pSQLDescribeCol(StatementHandle, ColumnNumber, ColumnName, BufferLength, NameLength, DataType, ColumnSize,
DecimalDigits, Nullable);
struct SQLDataSourcesA_params *params = args;
return pSQLDataSourcesA(params->EnvironmentHandle, params->Direction, params->ServerName,
params->BufferLength1, params->NameLength1, params->Description,
params->BufferLength2, params->NameLength2);
}
static SQLRETURN WINAPI wrap_SQLDescribeColW(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, WCHAR *ColumnName,
SQLSMALLINT BufferLength, SQLSMALLINT *NameLength, SQLSMALLINT *DataType,
SQLULEN *ColumnSize, SQLSMALLINT *DecimalDigits, SQLSMALLINT *Nullable)
static NTSTATUS wrap_SQLDataSourcesW( void *args )
{
return pSQLDescribeColW(StatementHandle, ColumnNumber, ColumnName, BufferLength, NameLength, DataType, ColumnSize,
DecimalDigits, Nullable);
struct SQLDataSourcesW_params *params = args;
return pSQLDataSourcesW(params->EnvironmentHandle, params->Direction, params->ServerName,
params->BufferLength1, params->NameLength1, params->Description,
params->BufferLength2, params->NameLength2);
}
static SQLRETURN WINAPI wrap_SQLDescribeParam(SQLHSTMT hstmt, SQLUSMALLINT ipar, SQLSMALLINT *pfSqlType,
SQLULEN *pcbParamDef, SQLSMALLINT *pibScale, SQLSMALLINT *pfNullable)
static NTSTATUS wrap_SQLDescribeCol( void *args )
{
return pSQLDescribeParam(hstmt, ipar, pfSqlType, pcbParamDef, pibScale, pfNullable);
struct SQLDescribeCol_params *params = args;
return pSQLDescribeCol(params->StatementHandle, params->ColumnNumber, params->ColumnName,
params->BufferLength, params->NameLength, params->DataType,
params->ColumnSize, params->DecimalDigits, params->Nullable);
}
static SQLRETURN WINAPI wrap_SQLDisconnect(SQLHDBC ConnectionHandle)
static NTSTATUS wrap_SQLDescribeColW( void *args )
{
return pSQLDisconnect(ConnectionHandle);
struct SQLDescribeColW_params *params = args;
return pSQLDescribeColW(params->StatementHandle, params->ColumnNumber, params->ColumnName,
params->BufferLength, params->NameLength, params->DataType,
params->ColumnSize, params->DecimalDigits, params->Nullable);
}
static SQLRETURN WINAPI wrap_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)
static NTSTATUS wrap_SQLDescribeParam( void *args )
{
return pSQLDriverConnect(hdbc, hwnd, ConnectionString, Length, conn_str_out, conn_str_out_max,
ptr_conn_str_out, driver_completion);
struct SQLDescribeParam_params *params = args;
return pSQLDescribeParam(params->hstmt, params->ipar, params->pfSqlType, params->pcbParamDef,
params->pibScale, params->pfNullable);
}
static SQLRETURN WINAPI wrap_SQLDriverConnectW(SQLHDBC ConnectionHandle, SQLHWND WindowHandle, WCHAR *InConnectionString,
SQLSMALLINT Length, WCHAR *OutConnectionString, SQLSMALLINT BufferLength,
SQLSMALLINT *Length2, SQLUSMALLINT DriverCompletion)
static NTSTATUS wrap_SQLDisconnect( void *args )
{
return pSQLDriverConnectW(ConnectionHandle, WindowHandle, InConnectionString, Length, OutConnectionString,
BufferLength, Length2, DriverCompletion);
struct SQLDisconnect_params *params = args;
return pSQLDisconnect(params->ConnectionHandle);
}
static SQLRETURN WINAPI wrap_SQLDrivers(SQLHENV EnvironmentHandle, SQLUSMALLINT fDirection, SQLCHAR *szDriverDesc,
SQLSMALLINT cbDriverDescMax, SQLSMALLINT *pcbDriverDesc,
SQLCHAR *szDriverAttributes, SQLSMALLINT cbDriverAttrMax,
SQLSMALLINT *pcbDriverAttr)
static NTSTATUS wrap_SQLDriverConnect( void *args )
{
return pSQLDrivers(EnvironmentHandle, fDirection, szDriverDesc, cbDriverDescMax, pcbDriverDesc,
szDriverAttributes, cbDriverAttrMax, pcbDriverAttr);
struct SQLDriverConnect_params *params = args;
return pSQLDriverConnect(params->hdbc, params->hwnd, params->ConnectionString, params->Length,
params->conn_str_out, params->conn_str_out_max,
params->ptr_conn_str_out, params->driver_completion);
}
static SQLRETURN WINAPI wrap_SQLDriversW(SQLHENV EnvironmentHandle, SQLUSMALLINT fDirection, SQLWCHAR *szDriverDesc,
SQLSMALLINT cbDriverDescMax, SQLSMALLINT *pcbDriverDesc,
SQLWCHAR *szDriverAttributes, SQLSMALLINT cbDriverAttrMax,
SQLSMALLINT *pcbDriverAttr)
static NTSTATUS wrap_SQLDriverConnectW( void *args )
{
return pSQLDriversW(EnvironmentHandle, fDirection, szDriverDesc, cbDriverDescMax, pcbDriverDesc,
szDriverAttributes, cbDriverAttrMax, pcbDriverAttr);
struct SQLDriverConnectW_params *params = args;
return pSQLDriverConnectW(params->ConnectionHandle, params->WindowHandle, params->InConnectionString,
params->Length, params->OutConnectionString, params->BufferLength,
params->Length2, params->DriverCompletion);
}
static SQLRETURN WINAPI wrap_SQLEndTran(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT CompletionType)
static NTSTATUS wrap_SQLDrivers( void *args )
{
return pSQLEndTran(HandleType, Handle, CompletionType);
struct SQLDrivers_params *params = args;
return pSQLDrivers(params->EnvironmentHandle, params->fDirection, params->szDriverDesc,
params->cbDriverDescMax, params->pcbDriverDesc, params->szDriverAttributes,
params->cbDriverAttrMax, params->pcbDriverAttr);
}
static SQLRETURN WINAPI wrap_SQLError(SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLHSTMT StatementHandle,
SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText,
SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
static NTSTATUS wrap_SQLDriversW( void *args )
{
return pSQLError(EnvironmentHandle, ConnectionHandle, StatementHandle, Sqlstate, NativeError, MessageText,
BufferLength, TextLength);
struct SQLDriversW_params *params = args;
return pSQLDriversW(params->EnvironmentHandle, params->fDirection, params->szDriverDesc,
params->cbDriverDescMax, params->pcbDriverDesc, params->szDriverAttributes,
params->cbDriverAttrMax, params->pcbDriverAttr);
}
static SQLRETURN WINAPI wrap_SQLErrorW(SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLHSTMT StatementHandle,
WCHAR *Sqlstate, SQLINTEGER *NativeError, WCHAR *MessageText,
SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
static NTSTATUS wrap_SQLEndTran( void *args )
{
return pSQLErrorW(EnvironmentHandle, ConnectionHandle, StatementHandle, Sqlstate, NativeError, MessageText,
BufferLength, TextLength);
struct SQLEndTran_params *params = args;
return pSQLEndTran(params->HandleType, params->Handle, params->CompletionType);
}
static SQLRETURN WINAPI wrap_SQLExecDirect(SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
static NTSTATUS wrap_SQLError( void *args )
{
return pSQLExecDirect(StatementHandle, StatementText, TextLength);
struct SQLError_params *params = args;
return pSQLError(params->EnvironmentHandle, params->ConnectionHandle, params->StatementHandle,
params->Sqlstate, params->NativeError, params->MessageText,
params->BufferLength, params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLExecDirectW(SQLHSTMT StatementHandle, WCHAR *StatementText, SQLINTEGER TextLength)
static NTSTATUS wrap_SQLErrorW( void *args )
{
return pSQLExecDirectW(StatementHandle, StatementText, TextLength);
struct SQLErrorW_params *params = args;
return pSQLErrorW(params->EnvironmentHandle, params->ConnectionHandle, params->StatementHandle,
params->Sqlstate, params->NativeError, params->MessageText,
params->BufferLength, params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLExecute(SQLHSTMT StatementHandle)
static NTSTATUS wrap_SQLExecDirect( void *args )
{
return pSQLExecute(StatementHandle);
struct SQLExecDirect_params *params = args;
return pSQLExecDirect(params->StatementHandle, params->StatementText, params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLExtendedFetch(SQLHSTMT hstmt, SQLUSMALLINT fFetchType, SQLLEN irow, SQLULEN *pcrow,
SQLUSMALLINT *rgfRowStatus)
static NTSTATUS wrap_SQLExecDirectW( void *args )
{
return pSQLExtendedFetch(hstmt, fFetchType, irow, pcrow, rgfRowStatus);
struct SQLExecDirectW_params *params = args;
return pSQLExecDirectW(params->StatementHandle, params->StatementText, params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLFetch(SQLHSTMT StatementHandle)
static NTSTATUS wrap_SQLExecute( void *args )
{
return pSQLFetch(StatementHandle);
struct SQLExecute_params *params = args;
return pSQLExecute(params->StatementHandle);
}
static SQLRETURN WINAPI wrap_SQLFetchScroll(SQLHSTMT StatementHandle, SQLSMALLINT FetchOrientation, SQLLEN FetchOffset)
static NTSTATUS wrap_SQLExtendedFetch( void *args )
{
return pSQLFetchScroll(StatementHandle, FetchOrientation, FetchOffset);
struct SQLExtendedFetch_params *params = args;
return pSQLExtendedFetch(params->hstmt, params->fFetchType, params->irow,
params->pcrow, params->rgfRowStatus);
}
static SQLRETURN WINAPI wrap_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)
static NTSTATUS wrap_SQLFetch( void *args )
{
return pSQLForeignKeys(hstmt, szPkCatalogName, cbPkCatalogName, szPkSchemaName, cbPkSchemaName, szPkTableName,
cbPkTableName, szFkCatalogName, cbFkCatalogName, szFkSchemaName, cbFkSchemaName,
szFkTableName, cbFkTableName);
struct SQLFetch_params *params = args;
return pSQLFetch(params->StatementHandle);
}
static SQLRETURN WINAPI wrap_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)
static NTSTATUS wrap_SQLFetchScroll( void *args )
{
return pSQLForeignKeysW(hstmt, szPkCatalogName, cbPkCatalogName, szPkSchemaName, cbPkSchemaName, szPkTableName,
cbPkTableName, szFkCatalogName, cbFkCatalogName, szFkSchemaName, cbFkSchemaName,
szFkTableName, cbFkTableName);
struct SQLFetchScroll_params *params = args;
return pSQLFetchScroll(params->StatementHandle, params->FetchOrientation, params->FetchOffset);
}
static SQLRETURN WINAPI wrap_SQLFreeConnect(SQLHDBC ConnectionHandle)
static NTSTATUS wrap_SQLForeignKeys( void *args )
{
return pSQLFreeConnect(ConnectionHandle);
struct SQLForeignKeys_params *params = args;
return pSQLForeignKeys(params->hstmt, params->szPkCatalogName, params->cbPkCatalogName,
params->szPkSchemaName, params->cbPkSchemaName, params->szPkTableName,
params->cbPkTableName, params->szFkCatalogName, params->cbFkCatalogName,
params->szFkSchemaName, params->cbFkSchemaName, params->szFkTableName,
params->cbFkTableName);
}
static SQLRETURN WINAPI wrap_SQLFreeEnv(SQLHENV EnvironmentHandle)
static NTSTATUS wrap_SQLForeignKeysW( void *args )
{
return pSQLFreeEnv(EnvironmentHandle);
struct SQLForeignKeysW_params *params = args;
return pSQLForeignKeysW(params->hstmt, params->szPkCatalogName, params->cbPkCatalogName,
params->szPkSchemaName, params->cbPkSchemaName, params->szPkTableName,
params->cbPkTableName, params->szFkCatalogName, params->cbFkCatalogName,
params->szFkSchemaName, params->cbFkSchemaName, params->szFkTableName,
params->cbFkTableName);
}
static SQLRETURN WINAPI wrap_SQLFreeHandle(SQLSMALLINT HandleType, SQLHANDLE Handle)
static NTSTATUS wrap_SQLFreeConnect( void *args )
{
return pSQLFreeHandle(HandleType, Handle);
struct SQLFreeConnect_params *params = args;
return pSQLFreeConnect(params->ConnectionHandle);
}
static SQLRETURN WINAPI wrap_SQLFreeStmt(SQLHSTMT StatementHandle, SQLUSMALLINT Option)
static NTSTATUS wrap_SQLFreeEnv( void *args )
{
return pSQLFreeStmt(StatementHandle, Option);
struct SQLFreeEnv_params *params = args;
return pSQLFreeEnv(params->EnvironmentHandle);
}
static SQLRETURN WINAPI wrap_SQLGetConnectAttr(SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER BufferLength, SQLINTEGER *StringLength)
static NTSTATUS wrap_SQLFreeHandle( void *args )
{
return pSQLGetConnectAttr(ConnectionHandle, Attribute, Value, BufferLength, StringLength);
struct SQLFreeHandle_params *params = args;
return pSQLFreeHandle(params->HandleType, params->Handle);
}
static SQLRETURN WINAPI wrap_SQLGetConnectAttrW(SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER BufferLength, SQLINTEGER *StringLength)
static NTSTATUS wrap_SQLFreeStmt( void *args )
{
return pSQLGetConnectAttrW(ConnectionHandle, Attribute, Value, BufferLength, StringLength);
struct SQLFreeStmt_params *params = args;
return pSQLFreeStmt(params->StatementHandle, params->Option);
}
static SQLRETURN WINAPI wrap_SQLGetConnectOption(SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLPOINTER Value)
static NTSTATUS wrap_SQLGetConnectAttr( void *args )
{
return pSQLGetConnectOption(ConnectionHandle, Option, Value);
struct SQLGetConnectAttr_params *params = args;
return pSQLGetConnectAttr(params->ConnectionHandle, params->Attribute, params->Value,
params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetConnectOptionW(SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLPOINTER Value)
static NTSTATUS wrap_SQLGetConnectAttrW( void *args )
{
return pSQLGetConnectOptionW(ConnectionHandle, Option, Value);
struct SQLGetConnectAttrW_params *params = args;
return pSQLGetConnectAttrW(params->ConnectionHandle, params->Attribute, params->Value,
params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetCursorName(SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT BufferLength,
SQLSMALLINT *NameLength)
static NTSTATUS wrap_SQLGetConnectOption( void *args )
{
return pSQLGetCursorName(StatementHandle, CursorName, BufferLength, NameLength);
struct SQLGetConnectOption_params *params = args;
return pSQLGetConnectOption(params->ConnectionHandle, params->Option, params->Value);
}
static SQLRETURN WINAPI wrap_SQLGetCursorNameW(SQLHSTMT StatementHandle, WCHAR *CursorName, SQLSMALLINT BufferLength,
SQLSMALLINT *NameLength)
static NTSTATUS wrap_SQLGetConnectOptionW( void *args )
{
return pSQLGetCursorNameW(StatementHandle, CursorName, BufferLength, NameLength);
struct SQLGetConnectOptionW_params *params = args;
return pSQLGetConnectOptionW(params->ConnectionHandle, params->Option, params->Value);
}
static SQLRETURN WINAPI wrap_SQLGetData(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType,
SQLPOINTER TargetValue, SQLLEN BufferLength, SQLLEN *StrLen_or_Ind)
static NTSTATUS wrap_SQLGetCursorName( void *args )
{
return pSQLGetData(StatementHandle, ColumnNumber, TargetType, TargetValue, BufferLength, StrLen_or_Ind);
struct SQLGetCursorName_params *params = args;
return pSQLGetCursorName(params->StatementHandle, params->CursorName, params->BufferLength,
params->NameLength);
}
static SQLRETURN WINAPI wrap_SQLGetDescField(SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier,
SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
static NTSTATUS wrap_SQLGetCursorNameW( void *args )
{
return pSQLGetDescField(DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength, StringLength);
struct SQLGetCursorNameW_params *params = args;
return pSQLGetCursorNameW(params->StatementHandle, params->CursorName, params->BufferLength,
params->NameLength);
}
static SQLRETURN WINAPI wrap_SQLGetDescFieldW(SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier,
SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
static NTSTATUS wrap_SQLGetData( void *args )
{
return pSQLGetDescFieldW(DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength, StringLength);
struct SQLGetData_params *params = args;
return pSQLGetData(params->StatementHandle, params->ColumnNumber, params->TargetType,
params->TargetValue, params->BufferLength, params->StrLen_or_Ind);
}
static SQLRETURN WINAPI wrap_SQLGetDescRec(SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLCHAR *Name,
SQLSMALLINT BufferLength, SQLSMALLINT *StringLength, SQLSMALLINT *Type,
SQLSMALLINT *SubType, SQLLEN *Length, SQLSMALLINT *Precision,
SQLSMALLINT *Scale, SQLSMALLINT *Nullable)
static NTSTATUS wrap_SQLGetDescField( void *args )
{
return pSQLGetDescRec(DescriptorHandle, RecNumber, Name, BufferLength, StringLength, Type, SubType, Length,
Precision, Scale, Nullable);
struct SQLGetDescField_params *params = args;
return pSQLGetDescField(params->DescriptorHandle, params->RecNumber, params->FieldIdentifier,
params->Value, params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetDescRecW(SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, WCHAR *Name,
SQLSMALLINT BufferLength, SQLSMALLINT *StringLength, SQLSMALLINT *Type,
SQLSMALLINT *SubType, SQLLEN *Length, SQLSMALLINT *Precision,
SQLSMALLINT *Scale, SQLSMALLINT *Nullable)
static NTSTATUS wrap_SQLGetDescFieldW( void *args )
{
return pSQLGetDescRecW(DescriptorHandle, RecNumber, Name, BufferLength, StringLength, Type, SubType, Length,
Precision, Scale, Nullable);
struct SQLGetDescFieldW_params *params = args;
return pSQLGetDescFieldW(params->DescriptorHandle, params->RecNumber, params->FieldIdentifier,
params->Value, params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetDiagField(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber,
SQLSMALLINT DiagIdentifier, SQLPOINTER DiagInfo, SQLSMALLINT BufferLength,
SQLSMALLINT *StringLength)
static NTSTATUS wrap_SQLGetDescRec( void *args )
{
return pSQLGetDiagField(HandleType, Handle, RecNumber, DiagIdentifier, DiagInfo, BufferLength, StringLength);
struct SQLGetDescRec_params *params = args;
return pSQLGetDescRec(params->DescriptorHandle, params->RecNumber, params->Name, params->BufferLength,
params->StringLength, params->Type, params->SubType, params->Length,
params->Precision, params->Scale, params->Nullable);
}
static SQLRETURN WINAPI wrap_SQLGetDiagFieldW(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber,
SQLSMALLINT DiagIdentifier, SQLPOINTER DiagInfo, SQLSMALLINT BufferLength,
SQLSMALLINT *StringLength)
static NTSTATUS wrap_SQLGetDescRecW( void *args )
{
return pSQLGetDiagFieldW(HandleType, Handle, RecNumber, DiagIdentifier, DiagInfo, BufferLength, StringLength);
struct SQLGetDescRecW_params *params = args;
return pSQLGetDescRecW(params->DescriptorHandle, params->RecNumber, params->Name, params->BufferLength,
params->StringLength, params->Type, params->SubType, params->Length,
params->Precision, params->Scale, params->Nullable);
}
static SQLRETURN WINAPI wrap_SQLGetDiagRec(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber,
SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText,
SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
static NTSTATUS wrap_SQLGetDiagField( void *args )
{
return pSQLGetDiagRec(HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength, TextLength);
struct SQLGetDiagField_params *params = args;
return pSQLGetDiagField(params->HandleType, params->Handle, params->RecNumber, params->DiagIdentifier,
params->DiagInfo, params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetDiagRecA(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber,
SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText,
SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
static NTSTATUS wrap_SQLGetDiagFieldW( void *args )
{
return pSQLGetDiagRecA(HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength, TextLength);
struct SQLGetDiagFieldW_params *params = args;
return pSQLGetDiagFieldW(params->HandleType, params->Handle, params->RecNumber, params->DiagIdentifier,
params->DiagInfo, params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetDiagRecW(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber,
WCHAR *Sqlstate, SQLINTEGER *NativeError, WCHAR *MessageText,
SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
static NTSTATUS wrap_SQLGetDiagRec( void *args )
{
return pSQLGetDiagRecW(HandleType, Handle, RecNumber, Sqlstate, NativeError, MessageText, BufferLength, TextLength);
struct SQLGetDiagRec_params *params = args;
return pSQLGetDiagRec(params->HandleType, params->Handle, params->RecNumber, params->Sqlstate,
params->NativeError, params->MessageText, params->BufferLength,
params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLGetEnvAttr(SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER BufferLength, SQLINTEGER *StringLength)
static NTSTATUS wrap_SQLGetDiagRecA( void *args )
{
return pSQLGetEnvAttr(EnvironmentHandle, Attribute, Value, BufferLength, StringLength);
struct SQLGetDiagRecA_params *params = args;
return pSQLGetDiagRecA(params->HandleType, params->Handle, params->RecNumber, params->Sqlstate,
params->NativeError, params->MessageText, params->BufferLength,
params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLGetFunctions(SQLHDBC ConnectionHandle, SQLUSMALLINT FunctionId, SQLUSMALLINT *Supported)
static NTSTATUS wrap_SQLGetDiagRecW( void *args )
{
return pSQLGetFunctions(ConnectionHandle, FunctionId, Supported);
struct SQLGetDiagRecW_params *params = args;
return pSQLGetDiagRecW(params->HandleType, params->Handle, params->RecNumber, params->Sqlstate,
params->NativeError, params->MessageText, params->BufferLength,
params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLGetInfo(SQLHDBC ConnectionHandle, SQLUSMALLINT InfoType, SQLPOINTER InfoValue,
SQLSMALLINT BufferLength, SQLSMALLINT *StringLength)
static NTSTATUS wrap_SQLGetEnvAttr( void *args )
{
return pSQLGetInfo(ConnectionHandle, InfoType, InfoValue, BufferLength, StringLength);
struct SQLGetEnvAttr_params *params = args;
return pSQLGetEnvAttr(params->EnvironmentHandle, params->Attribute, params->Value,
params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetInfoW(SQLHDBC ConnectionHandle, SQLUSMALLINT InfoType, SQLPOINTER InfoValue,
SQLSMALLINT BufferLength, SQLSMALLINT *StringLength)
static NTSTATUS wrap_SQLGetFunctions( void *args )
{
return pSQLGetInfoW(ConnectionHandle, InfoType, InfoValue, BufferLength, StringLength);
struct SQLGetFunctions_params *params = args;
return pSQLGetFunctions(params->ConnectionHandle, params->FunctionId, params->Supported);
}
static SQLRETURN WINAPI wrap_SQLGetStmtAttr(SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER BufferLength, SQLINTEGER *StringLength)
static NTSTATUS wrap_SQLGetInfo( void *args )
{
return pSQLGetStmtAttr(StatementHandle, Attribute, Value, BufferLength, StringLength);
struct SQLGetInfo_params *params = args;
return pSQLGetInfo(params->ConnectionHandle, params->InfoType, params->InfoValue,
params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetStmtAttrW(SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER BufferLength, SQLINTEGER *StringLength)
static NTSTATUS wrap_SQLGetInfoW( void *args )
{
return pSQLGetStmtAttrW(StatementHandle, Attribute, Value, BufferLength, StringLength);
struct SQLGetInfoW_params *params = args;
return pSQLGetInfoW(params->ConnectionHandle, params->InfoType, params->InfoValue,
params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetStmtOption(SQLHSTMT StatementHandle, SQLUSMALLINT Option, SQLPOINTER Value)
static NTSTATUS wrap_SQLGetStmtAttr( void *args )
{
return pSQLGetStmtOption(StatementHandle, Option, Value);
struct SQLGetStmtAttr_params *params = args;
return pSQLGetStmtAttr(params->StatementHandle, params->Attribute, params->Value,
params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetTypeInfo(SQLHSTMT StatementHandle, SQLSMALLINT DataType)
static NTSTATUS wrap_SQLGetStmtAttrW( void *args )
{
return pSQLGetTypeInfo(StatementHandle, DataType);
struct SQLGetStmtAttrW_params *params = args;
return pSQLGetStmtAttrW(params->StatementHandle, params->Attribute, params->Value,
params->BufferLength, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLGetTypeInfoW(SQLHSTMT StatementHandle, SQLSMALLINT DataType)
static NTSTATUS wrap_SQLGetStmtOption( void *args )
{
return pSQLGetTypeInfoW(StatementHandle, DataType);
struct SQLGetStmtOption_params *params = args;
return pSQLGetStmtOption(params->StatementHandle, params->Option, params->Value);
}
static NTSTATUS wrap_SQLGetTypeInfo( void *args )
{
struct SQLGetTypeInfo_params *params = args;
return pSQLGetTypeInfo(params->StatementHandle, params->DataType);
}
static NTSTATUS wrap_SQLGetTypeInfoW( void *args )
{
struct SQLGetTypeInfoW_params *params = args;
return pSQLGetTypeInfoW(params->StatementHandle, params->DataType);
}
static SQLRETURN WINAPI wrap_SQLMoreResults(SQLHSTMT StatementHandle)
static NTSTATUS wrap_SQLMoreResults( void *args )
{
return pSQLMoreResults(StatementHandle);
struct SQLMoreResults_params *params = args;
return pSQLMoreResults(params->StatementHandle);
}
static SQLRETURN WINAPI wrap_SQLNativeSql(SQLHDBC hdbc, SQLCHAR *szSqlStrIn, SQLINTEGER cbSqlStrIn, SQLCHAR *szSqlStr,
SQLINTEGER cbSqlStrMax, SQLINTEGER *pcbSqlStr)
static NTSTATUS wrap_SQLNativeSql( void *args )
{
return pSQLNativeSql(hdbc, szSqlStrIn, cbSqlStrIn, szSqlStr, cbSqlStrMax, pcbSqlStr);
struct SQLNativeSql_params *params = args;
return pSQLNativeSql(params->hdbc, params->szSqlStrIn, params->cbSqlStrIn, params->szSqlStr,
params->cbSqlStrMax, params->pcbSqlStr);
}
static SQLRETURN WINAPI wrap_SQLNativeSqlW(SQLHDBC hdbc, SQLWCHAR *szSqlStrIn, SQLINTEGER cbSqlStrIn, SQLWCHAR *szSqlStr,
SQLINTEGER cbSqlStrMax, SQLINTEGER *pcbSqlStr)
static NTSTATUS wrap_SQLNativeSqlW( void *args )
{
return pSQLNativeSqlW(hdbc, szSqlStrIn, cbSqlStrIn, szSqlStr, cbSqlStrMax, pcbSqlStr);
struct SQLNativeSqlW_params *params = args;
return pSQLNativeSqlW(params->hdbc, params->szSqlStrIn, params->cbSqlStrIn, params->szSqlStr,
params->cbSqlStrMax, params->pcbSqlStr);
}
static SQLRETURN WINAPI wrap_SQLNumParams(SQLHSTMT hstmt, SQLSMALLINT *pcpar)
static NTSTATUS wrap_SQLNumParams( void *args )
{
return pSQLNumParams(hstmt, pcpar);
struct SQLNumParams_params *params = args;
return pSQLNumParams(params->hstmt, params->pcpar);
}
static SQLRETURN WINAPI wrap_SQLNumResultCols(SQLHSTMT StatementHandle, SQLSMALLINT *ColumnCount)
static NTSTATUS wrap_SQLNumResultCols( void *args )
{
return pSQLNumResultCols(StatementHandle, ColumnCount);
struct SQLNumResultCols_params *params = args;
return pSQLNumResultCols(params->StatementHandle, params->ColumnCount);
}
static SQLRETURN WINAPI wrap_SQLParamData(SQLHSTMT StatementHandle, SQLPOINTER *Value)
static NTSTATUS wrap_SQLParamData( void *args )
{
return pSQLParamData(StatementHandle, Value);
struct SQLParamData_params *params = args;
return pSQLParamData(params->StatementHandle, params->Value);
}
static SQLRETURN WINAPI wrap_SQLParamOptions(SQLHSTMT hstmt, SQLULEN crow, SQLULEN *pirow)
static NTSTATUS wrap_SQLParamOptions( void *args )
{
return pSQLParamOptions(hstmt, crow, pirow);
struct SQLParamOptions_params *params = args;
return pSQLParamOptions(params->hstmt, params->crow, params->pirow);
}
static SQLRETURN WINAPI wrap_SQLPrepare(SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
static NTSTATUS wrap_SQLPrepare( void *args )
{
return pSQLPrepare(StatementHandle, StatementText, TextLength);
struct SQLPrepare_params *params = args;
return pSQLPrepare(params->StatementHandle, params->StatementText, params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLPrepareW(SQLHSTMT StatementHandle, WCHAR *StatementText, SQLINTEGER TextLength)
static NTSTATUS wrap_SQLPrepareW( void *args )
{
return pSQLPrepareW(StatementHandle, StatementText, TextLength);
struct SQLPrepareW_params *params = args;
return pSQLPrepareW(params->StatementHandle, params->StatementText, params->TextLength);
}
static SQLRETURN WINAPI wrap_SQLPrimaryKeys(SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szTableName,
SQLSMALLINT cbTableName)
static NTSTATUS wrap_SQLPrimaryKeys( void *args )
{
return pSQLPrimaryKeys(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName, cbTableName);
struct SQLPrimaryKeys_params *params = args;
return pSQLPrimaryKeys(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName,
params->szTableName, params->cbTableName);
}
static SQLRETURN WINAPI wrap_SQLPrimaryKeysW(SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName,
SQLSMALLINT cbTableName)
static NTSTATUS wrap_SQLPrimaryKeysW( void *args )
{
return pSQLPrimaryKeysW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName, cbTableName);
struct SQLPrimaryKeysW_params *params = args;
return pSQLPrimaryKeysW(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName,
params->szTableName, params->cbTableName);
}
static SQLRETURN WINAPI wrap_SQLProcedureColumns(SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szProcName,
SQLSMALLINT cbProcName, SQLCHAR *szColumnName, SQLSMALLINT cbColumnName)
static NTSTATUS wrap_SQLProcedureColumns( void *args )
{
return pSQLProcedureColumns(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szProcName,
cbProcName, szColumnName, cbColumnName);
struct SQLProcedureColumns_params *params = args;
return pSQLProcedureColumns(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName, params->szProcName,
params->cbProcName, params->szColumnName, params->cbColumnName);
}
static SQLRETURN WINAPI wrap_SQLProcedureColumnsW(SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szProcName,
SQLSMALLINT cbProcName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
static NTSTATUS wrap_SQLProcedureColumnsW( void *args )
{
return pSQLProcedureColumnsW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szProcName,
cbProcName, szColumnName, cbColumnName);
struct SQLProcedureColumnsW_params *params = args;
return pSQLProcedureColumnsW(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName, params->szProcName,
params->cbProcName, params->szColumnName, params->cbColumnName);
}
static SQLRETURN WINAPI wrap_SQLProcedures(SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szProcName,
SQLSMALLINT cbProcName)
static NTSTATUS wrap_SQLProcedures( void *args )
{
return pSQLProcedures(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szProcName, cbProcName);
struct SQLProcedures_params *params = args;
return pSQLProcedures(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName, params->szProcName,
params->cbProcName);
}
static SQLRETURN WINAPI wrap_SQLProceduresW(SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szProcName,
SQLSMALLINT cbProcName)
static NTSTATUS wrap_SQLProceduresW( void *args )
{
return pSQLProceduresW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szProcName, cbProcName);
struct SQLProceduresW_params *params = args;
return pSQLProceduresW(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName, params->szProcName,
params->cbProcName);
}
static SQLRETURN WINAPI wrap_SQLPutData(SQLHSTMT StatementHandle, SQLPOINTER Data, SQLLEN StrLen_or_Ind)
static NTSTATUS wrap_SQLPutData( void *args )
{
return pSQLPutData(StatementHandle, Data, StrLen_or_Ind);
struct SQLPutData_params *params = args;
return pSQLPutData(params->StatementHandle, params->Data, params->StrLen_or_Ind);
}
static SQLRETURN WINAPI wrap_SQLRowCount(SQLHSTMT StatementHandle, SQLLEN *RowCount)
static NTSTATUS wrap_SQLRowCount( void *args )
{
return pSQLRowCount(StatementHandle, RowCount);
struct SQLRowCount_params *params = args;
return pSQLRowCount(params->StatementHandle, params->RowCount);
}
static SQLRETURN WINAPI wrap_SQLSetConnectAttr(SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER StringLength)
static NTSTATUS wrap_SQLSetConnectAttr( void *args )
{
return pSQLSetConnectAttr(ConnectionHandle, Attribute, Value, StringLength);
struct SQLSetConnectAttr_params *params = args;
return pSQLSetConnectAttr(params->ConnectionHandle, params->Attribute, params->Value,
params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLSetConnectAttrW(SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER StringLength)
static NTSTATUS wrap_SQLSetConnectAttrW( void *args )
{
return pSQLSetConnectAttrW(ConnectionHandle, Attribute, Value, StringLength);
struct SQLSetConnectAttrW_params *params = args;
return pSQLSetConnectAttrW(params->ConnectionHandle, params->Attribute, params->Value,
params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLSetConnectOption(SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLULEN Value)
static NTSTATUS wrap_SQLSetConnectOption( void *args )
{
return pSQLSetConnectOption(ConnectionHandle, Option, Value);
struct SQLSetConnectOption_params *params = args;
return pSQLSetConnectOption(params->ConnectionHandle, params->Option, params->Value);
}
static SQLRETURN WINAPI wrap_SQLSetConnectOptionW(SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLULEN Value)
static NTSTATUS wrap_SQLSetConnectOptionW( void *args )
{
return pSQLSetConnectOptionW(ConnectionHandle, Option, Value);
struct SQLSetConnectOptionW_params *params = args;
return pSQLSetConnectOptionW(params->ConnectionHandle, params->Option, params->Value);
}
static SQLRETURN WINAPI wrap_SQLSetCursorName(SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT NameLength)
static NTSTATUS wrap_SQLSetCursorName( void *args )
{
return pSQLSetCursorName(StatementHandle, CursorName, NameLength);
struct SQLSetCursorName_params *params = args;
return pSQLSetCursorName(params->StatementHandle, params->CursorName, params->NameLength);
}
static SQLRETURN WINAPI wrap_SQLSetCursorNameW(SQLHSTMT StatementHandle, WCHAR *CursorName, SQLSMALLINT NameLength)
static NTSTATUS wrap_SQLSetCursorNameW( void *args )
{
return pSQLSetCursorNameW(StatementHandle, CursorName, NameLength);
struct SQLSetCursorNameW_params *params = args;
return pSQLSetCursorNameW(params->StatementHandle, params->CursorName, params->NameLength);
}
static SQLRETURN WINAPI wrap_SQLSetDescField(SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier,
SQLPOINTER Value, SQLINTEGER BufferLength)
static NTSTATUS wrap_SQLSetDescField( void *args )
{
return pSQLSetDescField(DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength);
struct SQLSetDescField_params *params = args;
return pSQLSetDescField(params->DescriptorHandle, params->RecNumber, params->FieldIdentifier,
params->Value, params->BufferLength);
}
static SQLRETURN WINAPI wrap_SQLSetDescFieldW(SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier,
SQLPOINTER Value, SQLINTEGER BufferLength)
static NTSTATUS wrap_SQLSetDescFieldW( void *args )
{
return pSQLSetDescFieldW(DescriptorHandle, RecNumber, FieldIdentifier, Value, BufferLength);
struct SQLSetDescFieldW_params *params = args;
return pSQLSetDescFieldW(params->DescriptorHandle, params->RecNumber, params->FieldIdentifier,
params->Value, params->BufferLength);
}
static SQLRETURN WINAPI wrap_SQLSetDescRec(SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT Type,
SQLSMALLINT SubType, SQLLEN Length, SQLSMALLINT Precision, SQLSMALLINT Scale,
SQLPOINTER Data, SQLLEN *StringLength, SQLLEN *Indicator)
static NTSTATUS wrap_SQLSetDescRec( void *args )
{
return pSQLSetDescRec(DescriptorHandle, RecNumber, Type, SubType, Length, Precision, Scale, Data,
StringLength, Indicator);
struct SQLSetDescRec_params *params = args;
return pSQLSetDescRec(params->DescriptorHandle, params->RecNumber, params->Type, params->SubType,
params->Length, params->Precision, params->Scale, params->Data,
params->StringLength, params->Indicator);
}
static SQLRETURN WINAPI wrap_SQLSetEnvAttr(SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER StringLength)
static NTSTATUS wrap_SQLSetEnvAttr( void *args )
{
return pSQLSetEnvAttr(EnvironmentHandle, Attribute, Value, StringLength);
struct SQLSetEnvAttr_params *params = args;
return pSQLSetEnvAttr(params->EnvironmentHandle, params->Attribute, params->Value, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLSetParam(SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT ValueType,
SQLSMALLINT ParameterType, SQLULEN LengthPrecision, SQLSMALLINT ParameterScale,
SQLPOINTER ParameterValue, SQLLEN *StrLen_or_Ind)
static NTSTATUS wrap_SQLSetParam( void *args )
{
return pSQLSetParam(StatementHandle, ParameterNumber, ValueType, ParameterType, LengthPrecision,
ParameterScale, ParameterValue, StrLen_or_Ind);
struct SQLSetParam_params *params = args;
return pSQLSetParam(params->StatementHandle, params->ParameterNumber, params->ValueType,
params->ParameterType, params->LengthPrecision, params->ParameterScale,
params->ParameterValue, params->StrLen_or_Ind);
}
static SQLRETURN WINAPI wrap_SQLSetPos(SQLHSTMT hstmt, SQLSETPOSIROW irow, SQLUSMALLINT fOption, SQLUSMALLINT fLock)
static NTSTATUS wrap_SQLSetPos( void *args )
{
return pSQLSetPos(hstmt, irow, fOption, fLock);
struct SQLSetPos_params *params = args;
return pSQLSetPos(params->hstmt, params->irow, params->fOption, params->fLock);
}
static SQLRETURN WINAPI wrap_SQLSetScrollOptions(SQLHSTMT statement_handle, SQLUSMALLINT f_concurrency, SQLLEN crow_keyset,
SQLUSMALLINT crow_rowset)
static NTSTATUS wrap_SQLSetScrollOptions( void *args )
{
return pSQLSetScrollOptions(statement_handle, f_concurrency, crow_keyset, crow_rowset);
struct SQLSetScrollOptions_params *params = args;
return pSQLSetScrollOptions(params->statement_handle, params->f_concurrency,
params->crow_keyset, params->crow_rowset);
}
static SQLRETURN WINAPI wrap_SQLSetStmtAttr(SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER StringLength)
static NTSTATUS wrap_SQLSetStmtAttr( void *args )
{
return pSQLSetStmtAttr(StatementHandle, Attribute, Value, StringLength);
struct SQLSetStmtAttr_params *params = args;
return pSQLSetStmtAttr(params->StatementHandle, params->Attribute, params->Value, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLSetStmtAttrW(SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value,
SQLINTEGER StringLength)
static NTSTATUS wrap_SQLSetStmtAttrW( void *args )
{
return pSQLSetStmtAttrW(StatementHandle, Attribute, Value, StringLength);
struct SQLSetStmtAttrW_params *params = args;
return pSQLSetStmtAttrW(params->StatementHandle, params->Attribute, params->Value, params->StringLength);
}
static SQLRETURN WINAPI wrap_SQLSetStmtOption(SQLHSTMT StatementHandle, SQLUSMALLINT Option, SQLULEN Value)
static NTSTATUS wrap_SQLSetStmtOption( void *args )
{
return pSQLSetStmtOption(StatementHandle, Option, Value);
struct SQLSetStmtOption_params *params = args;
return pSQLSetStmtOption(params->StatementHandle, params->Option, params->Value);
}
static SQLRETURN WINAPI wrap_SQLSpecialColumns(SQLHSTMT StatementHandle, SQLUSMALLINT IdentifierType, SQLCHAR *CatalogName,
SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2,
SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Scope,
SQLUSMALLINT Nullable)
static NTSTATUS wrap_SQLSpecialColumns( void *args )
{
return pSQLSpecialColumns(StatementHandle, IdentifierType, CatalogName, NameLength1, SchemaName,
NameLength2, TableName, NameLength3, Scope, Nullable);
struct SQLSpecialColumns_params *params = args;
return pSQLSpecialColumns(params->StatementHandle, params->IdentifierType, params->CatalogName,
params->NameLength1, params->SchemaName, params->NameLength2,
params->TableName, params->NameLength3, params->Scope, params->Nullable);
}
static SQLRETURN WINAPI wrap_SQLSpecialColumnsW(SQLHSTMT StatementHandle, SQLUSMALLINT IdentifierType,
SQLWCHAR *CatalogName, SQLSMALLINT NameLength1, SQLWCHAR *SchemaName,
SQLSMALLINT NameLength2, SQLWCHAR *TableName, SQLSMALLINT NameLength3,
SQLUSMALLINT Scope, SQLUSMALLINT Nullable)
static NTSTATUS wrap_SQLSpecialColumnsW( void *args )
{
return pSQLSpecialColumnsW(StatementHandle, IdentifierType, CatalogName, NameLength1, SchemaName,
NameLength2, TableName, NameLength3, Scope, Nullable);
struct SQLSpecialColumnsW_params *params = args;
return pSQLSpecialColumnsW(params->StatementHandle, params->IdentifierType, params->CatalogName,
params->NameLength1, params->SchemaName, params->NameLength2,
params->TableName, params->NameLength3, params->Scope, params->Nullable);
}
static SQLRETURN WINAPI wrap_SQLStatistics(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1,
SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName,
SQLSMALLINT NameLength3, SQLUSMALLINT Unique, SQLUSMALLINT Reserved)
static NTSTATUS wrap_SQLStatistics( void *args )
{
return pSQLStatistics(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName,
NameLength3, Unique, Reserved);
struct SQLStatistics_params *params = args;
return pSQLStatistics(params->StatementHandle, params->CatalogName, params->NameLength1,
params->SchemaName, params->NameLength2, params->TableName,
params->NameLength3, params->Unique, params->Reserved);
}
static SQLRETURN WINAPI wrap_SQLStatisticsW(SQLHSTMT StatementHandle, SQLWCHAR *CatalogName, SQLSMALLINT NameLength1,
SQLWCHAR *SchemaName, SQLSMALLINT NameLength2, SQLWCHAR *TableName,
SQLSMALLINT NameLength3, SQLUSMALLINT Unique, SQLUSMALLINT Reserved)
static NTSTATUS wrap_SQLStatisticsW( void *args )
{
return pSQLStatisticsW(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName,
NameLength3, Unique, Reserved);
struct SQLStatisticsW_params *params = args;
return pSQLStatisticsW(params->StatementHandle, params->CatalogName, params->NameLength1,
params->SchemaName, params->NameLength2, params->TableName,
params->NameLength3, params->Unique, params->Reserved);
}
static SQLRETURN WINAPI wrap_SQLTablePrivileges(SQLHSTMT hstmt, SQLCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLCHAR *szTableName,
SQLSMALLINT cbTableName)
static NTSTATUS wrap_SQLTablePrivileges( void *args )
{
return pSQLTablePrivileges(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName,
cbTableName);
struct SQLTablePrivileges_params *params = args;
return pSQLTablePrivileges(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName, params->szTableName,
params->cbTableName);
}
static SQLRETURN WINAPI wrap_SQLTablePrivilegesW(SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName,
SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName,
SQLSMALLINT cbTableName)
static NTSTATUS wrap_SQLTablePrivilegesW( void *args )
{
return pSQLTablePrivilegesW(hstmt, szCatalogName, cbCatalogName, szSchemaName, cbSchemaName, szTableName,
cbTableName);
struct SQLTablePrivilegesW_params *params = args;
return pSQLTablePrivilegesW(params->hstmt, params->szCatalogName, params->cbCatalogName,
params->szSchemaName, params->cbSchemaName, params->szTableName,
params->cbTableName);
}
static SQLRETURN WINAPI wrap_SQLTables(SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1,
SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName,
SQLSMALLINT NameLength3, SQLCHAR *TableType, SQLSMALLINT NameLength4)
static NTSTATUS wrap_SQLTables( void *args )
{
return pSQLTables(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName, NameLength3,
TableType, NameLength4);
struct SQLTables_params *params = args;
return pSQLTables(params->StatementHandle, params->CatalogName, params->NameLength1,
params->SchemaName, params->NameLength2, params->TableName,
params->NameLength3, params->TableType, params->NameLength4);
}
static SQLRETURN WINAPI wrap_SQLTablesW(SQLHSTMT StatementHandle, SQLWCHAR *CatalogName, SQLSMALLINT NameLength1,
SQLWCHAR *SchemaName, SQLSMALLINT NameLength2, SQLWCHAR *TableName,
SQLSMALLINT NameLength3, SQLWCHAR *TableType, SQLSMALLINT NameLength4)
static NTSTATUS wrap_SQLTablesW( void *args )
{
return pSQLTablesW(StatementHandle, CatalogName, NameLength1, SchemaName, NameLength2, TableName, NameLength3,
TableType, NameLength4);
struct SQLTablesW_params *params = args;
return pSQLTablesW(params->StatementHandle, params->CatalogName, params->NameLength1,
params->SchemaName, params->NameLength2, params->TableName,
params->NameLength3, params->TableType, params->NameLength4);
}
static SQLRETURN WINAPI wrap_SQLTransact(SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLUSMALLINT CompletionType)
static NTSTATUS wrap_SQLTransact( void *args )
{
return pSQLTransact(EnvironmentHandle, ConnectionHandle, CompletionType);
struct SQLTransact_params *params = args;
return pSQLTransact(params->EnvironmentHandle, params->ConnectionHandle, params->CompletionType);
}
static void *libodbc;
unixlib_entry_t __wine_unix_call_funcs[NB_ODBC_FUNCS] =
{
odbc_process_attach,
odbc_process_detach,
};
static NTSTATUS error_func( void *args )
{
return SQL_ERROR;
}
static NTSTATUS load_odbc( struct sql_funcs *funcs )
static NTSTATUS load_odbc(void)
{
const char *s = getenv("LIB_ODBC_DRIVER_MANAGER");
......@@ -943,7 +1146,8 @@ static NTSTATUS load_odbc( struct sql_funcs *funcs )
return STATUS_DLL_NOT_FOUND;
}
#define LOAD_FUNC(name) if ((p##name = dlsym( libodbc, #name ))) funcs->p##name = wrap_##name
#define LOAD_FUNC(name) \
__wine_unix_call_funcs[unix_##name] = (p##name = dlsym( libodbc, #name )) ? wrap_##name : error_func
LOAD_FUNC(SQLAllocConnect);
LOAD_FUNC(SQLAllocEnv);
......@@ -1065,18 +1269,3 @@ static NTSTATUS load_odbc( struct sql_funcs *funcs )
#undef LOAD_FUNC
return STATUS_SUCCESS;
}
NTSTATUS CDECL __wine_init_unix_lib( HMODULE module, DWORD reason, const void *ptr_in, void *ptr_out )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
if (!load_odbc( ptr_out )) return STATUS_DLL_NOT_FOUND;
break;
case DLL_PROCESS_DETACH:
if (libodbc) dlclose( libodbc );
libodbc = NULL;
break;
}
return STATUS_SUCCESS;
}
......@@ -33,123 +33,246 @@
#include "sqltypes.h"
#include "sqlext.h"
struct sql_funcs
#include "wine/unixlib.h"
enum sql_funcs
{
SQLRETURN (WINAPI *pSQLAllocConnect)(SQLHENV,SQLHDBC*);
SQLRETURN (WINAPI *pSQLAllocEnv)(SQLHENV*);
SQLRETURN (WINAPI *pSQLAllocHandle)(SQLSMALLINT,SQLHANDLE,SQLHANDLE*);
SQLRETURN (WINAPI *pSQLAllocHandleStd)(SQLSMALLINT,SQLHANDLE,SQLHANDLE*);
SQLRETURN (WINAPI *pSQLAllocStmt)(SQLHDBC,SQLHSTMT*);
SQLRETURN (WINAPI *pSQLBindCol)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLPOINTER,SQLLEN,SQLLEN*);
SQLRETURN (WINAPI *pSQLBindParam)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLULEN,SQLSMALLINT,SQLPOINTER,SQLLEN*);
SQLRETURN (WINAPI *pSQLBindParameter)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLULEN,SQLSMALLINT,SQLPOINTER,SQLLEN,SQLLEN*);
SQLRETURN (WINAPI *pSQLBrowseConnect)(SQLHDBC,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLBrowseConnectW)(SQLHDBC,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLBulkOperations)(SQLHSTMT,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLCancel)(SQLHSTMT);
SQLRETURN (WINAPI *pSQLCloseCursor)(SQLHSTMT);
SQLRETURN (WINAPI *pSQLColAttribute)(SQLHSTMT,SQLUSMALLINT,SQLUSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*,SQLLEN*);
SQLRETURN (WINAPI *pSQLColAttributeW)(SQLHSTMT,SQLUSMALLINT,SQLUSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*,SQLLEN*);
SQLRETURN (WINAPI *pSQLColAttributes)(SQLHSTMT,SQLUSMALLINT,SQLUSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*,SQLLEN*);
SQLRETURN (WINAPI *pSQLColAttributesW)(SQLHSTMT,SQLUSMALLINT,SQLUSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*,SQLLEN*);
SQLRETURN (WINAPI *pSQLColumnPrivileges)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLColumnPrivilegesW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLColumns)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLColumnsW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLConnect)(SQLHDBC,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLConnectW)(SQLHDBC,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLCopyDesc)(SQLHDESC,SQLHDESC);
SQLRETURN (WINAPI *pSQLDataSources)(SQLHENV,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLDataSourcesA)(SQLHENV,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLDataSourcesW)(SQLHENV,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLDescribeCol)(SQLHSTMT,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLULEN*,SQLSMALLINT*,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLDescribeColW)(SQLHSTMT,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLULEN*,SQLSMALLINT*,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLDescribeParam)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT*,SQLULEN*,SQLSMALLINT*,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLDisconnect)(SQLHDBC);
SQLRETURN (WINAPI *pSQLDriverConnect)(SQLHDBC,SQLHWND,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLDriverConnectW)(SQLHDBC,SQLHWND,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLDrivers)(SQLHENV,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLDriversW)(SQLHENV,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLEndTran)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLError)(SQLHENV,SQLHDBC,SQLHSTMT,SQLCHAR*,SQLINTEGER*,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLErrorW)(SQLHENV,SQLHDBC,SQLHSTMT,SQLWCHAR*,SQLINTEGER*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLExecDirect)(SQLHSTMT,SQLCHAR*,SQLINTEGER);
SQLRETURN (WINAPI *pSQLExecDirectW)(SQLHSTMT,SQLWCHAR*,SQLINTEGER);
SQLRETURN (WINAPI *pSQLExecute)(SQLHSTMT);
SQLRETURN (WINAPI *pSQLExtendedFetch)(SQLHSTMT,SQLUSMALLINT,SQLLEN,SQLULEN*,SQLUSMALLINT*);
SQLRETURN (WINAPI *pSQLFetch)(SQLHSTMT);
SQLRETURN (WINAPI *pSQLFetchScroll)(SQLHSTMT,SQLSMALLINT,SQLLEN);
SQLRETURN (WINAPI *pSQLForeignKeys)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLForeignKeysW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLFreeConnect)(SQLHDBC);
SQLRETURN (WINAPI *pSQLFreeEnv)(SQLHENV);
SQLRETURN (WINAPI *pSQLFreeHandle)(SQLSMALLINT,SQLHANDLE);
SQLRETURN (WINAPI *pSQLFreeStmt)(SQLHSTMT,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLGetConnectAttr)(SQLHDBC,SQLINTEGER,SQLPOINTER,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLGetConnectAttrW)(SQLHDBC,SQLINTEGER,SQLPOINTER,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLGetConnectOption)(SQLHDBC,SQLUSMALLINT,SQLPOINTER);
SQLRETURN (WINAPI *pSQLGetConnectOptionW)(SQLHDBC,SQLUSMALLINT,SQLPOINTER);
SQLRETURN (WINAPI *pSQLGetCursorName)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetCursorNameW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetData)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLPOINTER,SQLLEN,SQLLEN*);
SQLRETURN (WINAPI *pSQLGetDescField)(SQLHDESC,SQLSMALLINT,SQLSMALLINT,SQLPOINTER,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLGetDescFieldW)(SQLHDESC,SQLSMALLINT,SQLSMALLINT,SQLPOINTER,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLGetDescRec)(SQLHDESC,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLSMALLINT*,SQLLEN*,SQLSMALLINT*,SQLSMALLINT*,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetDescRecW)(SQLHDESC,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLSMALLINT*,SQLLEN*,SQLSMALLINT*,SQLSMALLINT*,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetDiagField)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT,SQLSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetDiagFieldW)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT,SQLSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetDiagRec)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT,SQLCHAR*,SQLINTEGER*,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetDiagRecA)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT,SQLCHAR*,SQLINTEGER*, SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetDiagRecW)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT,SQLWCHAR*,SQLINTEGER*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetEnvAttr)(SQLHENV,SQLINTEGER,SQLPOINTER,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLGetFunctions)(SQLHDBC,SQLUSMALLINT,SQLUSMALLINT*);
SQLRETURN (WINAPI *pSQLGetInfo)(SQLHDBC,SQLUSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetInfoW)(SQLHDBC,SQLUSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLGetStmtAttr)(SQLHSTMT,SQLINTEGER,SQLPOINTER,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLGetStmtAttrW)(SQLHSTMT,SQLINTEGER,SQLPOINTER,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLGetStmtOption)(SQLHSTMT,SQLUSMALLINT,SQLPOINTER);
SQLRETURN (WINAPI *pSQLGetTypeInfo)(SQLHSTMT,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLGetTypeInfoW)(SQLHSTMT,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLMoreResults)(SQLHSTMT);
SQLRETURN (WINAPI *pSQLNativeSql)(SQLHDBC,SQLCHAR*,SQLINTEGER,SQLCHAR*,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLNativeSqlW)(SQLHDBC,SQLWCHAR*,SQLINTEGER,SQLWCHAR*,SQLINTEGER,SQLINTEGER*);
SQLRETURN (WINAPI *pSQLNumParams)(SQLHSTMT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLNumResultCols)(SQLHSTMT,SQLSMALLINT*);
SQLRETURN (WINAPI *pSQLParamData)(SQLHSTMT,SQLPOINTER*);
SQLRETURN (WINAPI *pSQLParamOptions)(SQLHSTMT,SQLULEN,SQLULEN*);
SQLRETURN (WINAPI *pSQLPrepare)(SQLHSTMT,SQLCHAR*,SQLINTEGER);
SQLRETURN (WINAPI *pSQLPrepareW)(SQLHSTMT,SQLWCHAR*,SQLINTEGER);
SQLRETURN (WINAPI *pSQLPrimaryKeys)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLPrimaryKeysW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLProcedureColumns)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLProcedureColumnsW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLProcedures)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLProceduresW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLPutData)(SQLHSTMT,SQLPOINTER,SQLLEN);
SQLRETURN (WINAPI *pSQLRowCount)(SQLHSTMT,SQLLEN*);
SQLRETURN (WINAPI *pSQLSetConnectAttr)(SQLHDBC,SQLINTEGER,SQLPOINTER,SQLINTEGER);
SQLRETURN (WINAPI *pSQLSetConnectAttrW)(SQLHDBC,SQLINTEGER,SQLPOINTER,SQLINTEGER);
SQLRETURN (WINAPI *pSQLSetConnectOption)(SQLHDBC,SQLUSMALLINT,SQLULEN);
SQLRETURN (WINAPI *pSQLSetConnectOptionW)(SQLHDBC,SQLUSMALLINT,SQLULEN);
SQLRETURN (WINAPI *pSQLSetCursorName)(SQLHSTMT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLSetCursorNameW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLSetDescField)(SQLHDESC,SQLSMALLINT,SQLSMALLINT,SQLPOINTER,SQLINTEGER);
SQLRETURN (WINAPI *pSQLSetDescFieldW)(SQLHDESC,SQLSMALLINT,SQLSMALLINT,SQLPOINTER,SQLINTEGER);
SQLRETURN (WINAPI *pSQLSetDescRec)(SQLHDESC,SQLSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLLEN,SQLSMALLINT,SQLSMALLINT,SQLPOINTER,SQLLEN*,SQLLEN*);
SQLRETURN (WINAPI *pSQLSetEnvAttr)(SQLHENV,SQLINTEGER,SQLPOINTER,SQLINTEGER);
SQLRETURN (WINAPI *pSQLSetParam)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLULEN,SQLSMALLINT,SQLPOINTER,SQLLEN*);
SQLRETURN (WINAPI *pSQLSetPos)(SQLHSTMT,SQLSETPOSIROW,SQLUSMALLINT,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLSetScrollOptions)(SQLHSTMT,SQLUSMALLINT,SQLLEN,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLSetStmtAttr)(SQLHSTMT,SQLINTEGER,SQLPOINTER,SQLINTEGER);
SQLRETURN (WINAPI *pSQLSetStmtAttrW)(SQLHSTMT,SQLINTEGER,SQLPOINTER,SQLINTEGER);
SQLRETURN (WINAPI *pSQLSetStmtOption)(SQLHSTMT,SQLUSMALLINT,SQLULEN);
SQLRETURN (WINAPI *pSQLSpecialColumns)(SQLHSTMT,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLUSMALLINT,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLSpecialColumnsW)(SQLHSTMT,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLUSMALLINT,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLStatistics)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLUSMALLINT,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLStatisticsW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLUSMALLINT,SQLUSMALLINT);
SQLRETURN (WINAPI *pSQLTablePrivileges)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLTablePrivilegesW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLTables)(SQLHSTMT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLTablesW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
SQLRETURN (WINAPI *pSQLTransact)(SQLHENV,SQLHDBC,SQLUSMALLINT);
process_attach,
process_detach,
unix_SQLAllocConnect,
unix_SQLAllocEnv,
unix_SQLAllocHandle,
unix_SQLAllocHandleStd,
unix_SQLAllocStmt,
unix_SQLBindCol,
unix_SQLBindParam,
unix_SQLBindParameter,
unix_SQLBrowseConnect,
unix_SQLBrowseConnectW,
unix_SQLBulkOperations,
unix_SQLCancel,
unix_SQLCloseCursor,
unix_SQLColAttribute,
unix_SQLColAttributeW,
unix_SQLColAttributes,
unix_SQLColAttributesW,
unix_SQLColumnPrivileges,
unix_SQLColumnPrivilegesW,
unix_SQLColumns,
unix_SQLColumnsW,
unix_SQLConnect,
unix_SQLConnectW,
unix_SQLCopyDesc,
unix_SQLDataSources,
unix_SQLDataSourcesA,
unix_SQLDataSourcesW,
unix_SQLDescribeCol,
unix_SQLDescribeColW,
unix_SQLDescribeParam,
unix_SQLDisconnect,
unix_SQLDriverConnect,
unix_SQLDriverConnectW,
unix_SQLDrivers,
unix_SQLDriversW,
unix_SQLEndTran,
unix_SQLError,
unix_SQLErrorW,
unix_SQLExecDirect,
unix_SQLExecDirectW,
unix_SQLExecute,
unix_SQLExtendedFetch,
unix_SQLFetch,
unix_SQLFetchScroll,
unix_SQLForeignKeys,
unix_SQLForeignKeysW,
unix_SQLFreeConnect,
unix_SQLFreeEnv,
unix_SQLFreeHandle,
unix_SQLFreeStmt,
unix_SQLGetConnectAttr,
unix_SQLGetConnectAttrW,
unix_SQLGetConnectOption,
unix_SQLGetConnectOptionW,
unix_SQLGetCursorName,
unix_SQLGetCursorNameW,
unix_SQLGetData,
unix_SQLGetDescField,
unix_SQLGetDescFieldW,
unix_SQLGetDescRec,
unix_SQLGetDescRecW,
unix_SQLGetDiagField,
unix_SQLGetDiagFieldW,
unix_SQLGetDiagRec,
unix_SQLGetDiagRecA,
unix_SQLGetDiagRecW,
unix_SQLGetEnvAttr,
unix_SQLGetFunctions,
unix_SQLGetInfo,
unix_SQLGetInfoW,
unix_SQLGetStmtAttr,
unix_SQLGetStmtAttrW,
unix_SQLGetStmtOption,
unix_SQLGetTypeInfo,
unix_SQLGetTypeInfoW,
unix_SQLMoreResults,
unix_SQLNativeSql,
unix_SQLNativeSqlW,
unix_SQLNumParams,
unix_SQLNumResultCols,
unix_SQLParamData,
unix_SQLParamOptions,
unix_SQLPrepare,
unix_SQLPrepareW,
unix_SQLPrimaryKeys,
unix_SQLPrimaryKeysW,
unix_SQLProcedureColumns,
unix_SQLProcedureColumnsW,
unix_SQLProcedures,
unix_SQLProceduresW,
unix_SQLPutData,
unix_SQLRowCount,
unix_SQLSetConnectAttr,
unix_SQLSetConnectAttrW,
unix_SQLSetConnectOption,
unix_SQLSetConnectOptionW,
unix_SQLSetCursorName,
unix_SQLSetCursorNameW,
unix_SQLSetDescField,
unix_SQLSetDescFieldW,
unix_SQLSetDescRec,
unix_SQLSetEnvAttr,
unix_SQLSetParam,
unix_SQLSetPos,
unix_SQLSetScrollOptions,
unix_SQLSetStmtAttr,
unix_SQLSetStmtAttrW,
unix_SQLSetStmtOption,
unix_SQLSpecialColumns,
unix_SQLSpecialColumnsW,
unix_SQLStatistics,
unix_SQLStatisticsW,
unix_SQLTablePrivileges,
unix_SQLTablePrivilegesW,
unix_SQLTables,
unix_SQLTablesW,
unix_SQLTransact,
NB_ODBC_FUNCS
};
struct SQLAllocConnect_params { SQLHENV EnvironmentHandle; SQLHDBC *ConnectionHandle; };
struct SQLAllocEnv_params { SQLHENV *EnvironmentHandle; };
struct SQLAllocHandle_params { SQLSMALLINT HandleType; SQLHANDLE InputHandle; SQLHANDLE *OutputHandle; };
struct SQLAllocHandleStd_params { SQLSMALLINT HandleType; SQLHANDLE InputHandle; SQLHANDLE *OutputHandle; };
struct SQLAllocStmt_params { SQLHDBC ConnectionHandle; SQLHSTMT *StatementHandle; };
struct SQLBindCol_params { SQLHSTMT StatementHandle; SQLUSMALLINT ColumnNumber; SQLSMALLINT TargetType; SQLPOINTER TargetValue; SQLLEN BufferLength; SQLLEN *StrLen_or_Ind; };
struct SQLBindParam_params { SQLHSTMT StatementHandle; SQLUSMALLINT ParameterNumber; SQLSMALLINT ValueType; SQLSMALLINT ParameterType; SQLULEN LengthPrecision; SQLSMALLINT ParameterScale; SQLPOINTER ParameterValue; SQLLEN *StrLen_or_Ind; };
struct SQLBindParameter_params { SQLHSTMT hstmt; SQLUSMALLINT ipar; SQLSMALLINT fParamType; SQLSMALLINT fCType; SQLSMALLINT fSqlType; SQLULEN cbColDef; SQLSMALLINT ibScale; SQLPOINTER rgbValue; SQLLEN cbValueMax; SQLLEN *pcbValue; };
struct SQLBrowseConnect_params { SQLHDBC hdbc; SQLCHAR *szConnStrIn; SQLSMALLINT cbConnStrIn; SQLCHAR *szConnStrOut; SQLSMALLINT cbConnStrOutMax; SQLSMALLINT *pcbConnStrOut; };
struct SQLBrowseConnectW_params { SQLHDBC hdbc; SQLWCHAR *szConnStrIn; SQLSMALLINT cbConnStrIn; SQLWCHAR *szConnStrOut; SQLSMALLINT cbConnStrOutMax; SQLSMALLINT *pcbConnStrOut; };
struct SQLBulkOperations_params { SQLHSTMT StatementHandle; SQLSMALLINT Operation; };
struct SQLCancel_params { SQLHSTMT StatementHandle; };
struct SQLCloseCursor_params { SQLHSTMT StatementHandle; };
struct SQLColAttribute_params { SQLHSTMT StatementHandle; SQLUSMALLINT ColumnNumber; SQLUSMALLINT FieldIdentifier; SQLPOINTER CharacterAttribute; SQLSMALLINT BufferLength; SQLSMALLINT *StringLength; SQLLEN *NumericAttribute; };
struct SQLColAttributeW_params { SQLHSTMT StatementHandle; SQLUSMALLINT ColumnNumber; SQLUSMALLINT FieldIdentifier; SQLPOINTER CharacterAttribute; SQLSMALLINT BufferLength; SQLSMALLINT *StringLength; SQLLEN *NumericAttribute; };
struct SQLColAttributes_params { SQLHSTMT hstmt; SQLUSMALLINT icol; SQLUSMALLINT fDescType; SQLPOINTER rgbDesc; SQLSMALLINT cbDescMax; SQLSMALLINT *pcbDesc; SQLLEN *pfDesc; };
struct SQLColAttributesW_params { SQLHSTMT hstmt; SQLUSMALLINT icol; SQLUSMALLINT fDescType; SQLPOINTER rgbDesc; SQLSMALLINT cbDescMax; SQLSMALLINT *pcbDesc; SQLLEN *pfDesc; };
struct SQLColumnPrivileges_params { SQLHSTMT hstmt; SQLCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLCHAR *szTableName; SQLSMALLINT cbTableName; SQLCHAR *szColumnName; SQLSMALLINT cbColumnName; };
struct SQLColumnPrivilegesW_params { SQLHSTMT hstmt; SQLWCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLWCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLWCHAR *szTableName; SQLSMALLINT cbTableName; SQLWCHAR *szColumnName; SQLSMALLINT cbColumnName; };
struct SQLColumns_params { SQLHSTMT StatementHandle; SQLCHAR *CatalogName; SQLSMALLINT NameLength1; SQLCHAR *SchemaName; SQLSMALLINT NameLength2; SQLCHAR *TableName; SQLSMALLINT NameLength3; SQLCHAR *ColumnName; SQLSMALLINT NameLength4; };
struct SQLColumnsW_params { SQLHSTMT StatementHandle; WCHAR *CatalogName; SQLSMALLINT NameLength1; WCHAR *SchemaName; SQLSMALLINT NameLength2; WCHAR *TableName; SQLSMALLINT NameLength3; WCHAR *ColumnName; SQLSMALLINT NameLength4; };
struct SQLConnect_params { SQLHDBC ConnectionHandle; SQLCHAR *ServerName; SQLSMALLINT NameLength1; SQLCHAR *UserName; SQLSMALLINT NameLength2; SQLCHAR *Authentication; SQLSMALLINT NameLength3; };
struct SQLConnectW_params { SQLHDBC ConnectionHandle; WCHAR *ServerName; SQLSMALLINT NameLength1; WCHAR *UserName; SQLSMALLINT NameLength2; WCHAR *Authentication; SQLSMALLINT NameLength3; };
struct SQLCopyDesc_params { SQLHDESC SourceDescHandle; SQLHDESC TargetDescHandle; };
struct SQLDataSources_params { SQLHENV EnvironmentHandle; SQLUSMALLINT Direction; SQLCHAR *ServerName; SQLSMALLINT BufferLength1; SQLSMALLINT *NameLength1; SQLCHAR *Description; SQLSMALLINT BufferLength2; SQLSMALLINT *NameLength2; };
struct SQLDataSourcesA_params { SQLHENV EnvironmentHandle; SQLUSMALLINT Direction; SQLCHAR *ServerName; SQLSMALLINT BufferLength1; SQLSMALLINT *NameLength1; SQLCHAR *Description; SQLSMALLINT BufferLength2; SQLSMALLINT *NameLength2; };
struct SQLDataSourcesW_params { SQLHENV EnvironmentHandle; SQLUSMALLINT Direction; WCHAR *ServerName; SQLSMALLINT BufferLength1; SQLSMALLINT *NameLength1; WCHAR *Description; SQLSMALLINT BufferLength2; SQLSMALLINT *NameLength2; };
struct SQLDescribeCol_params { SQLHSTMT StatementHandle; SQLUSMALLINT ColumnNumber; SQLCHAR *ColumnName; SQLSMALLINT BufferLength; SQLSMALLINT *NameLength; SQLSMALLINT *DataType; SQLULEN *ColumnSize; SQLSMALLINT *DecimalDigits; SQLSMALLINT *Nullable; };
struct SQLDescribeColW_params { SQLHSTMT StatementHandle; SQLUSMALLINT ColumnNumber; WCHAR *ColumnName; SQLSMALLINT BufferLength; SQLSMALLINT *NameLength; SQLSMALLINT *DataType; SQLULEN *ColumnSize; SQLSMALLINT *DecimalDigits; SQLSMALLINT *Nullable; };
struct SQLDescribeParam_params { SQLHSTMT hstmt; SQLUSMALLINT ipar; SQLSMALLINT *pfSqlType; SQLULEN *pcbParamDef; SQLSMALLINT *pibScale; SQLSMALLINT *pfNullable; };
struct SQLDisconnect_params { SQLHDBC ConnectionHandle; };
struct SQLDriverConnect_params { 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; };
struct SQLDriverConnectW_params { SQLHDBC ConnectionHandle; SQLHWND WindowHandle; WCHAR *InConnectionString; SQLSMALLINT Length; WCHAR *OutConnectionString; SQLSMALLINT BufferLength; SQLSMALLINT *Length2; SQLUSMALLINT DriverCompletion; };
struct SQLDrivers_params { SQLHENV EnvironmentHandle; SQLUSMALLINT fDirection; SQLCHAR *szDriverDesc; SQLSMALLINT cbDriverDescMax; SQLSMALLINT *pcbDriverDesc; SQLCHAR *szDriverAttributes; SQLSMALLINT cbDriverAttrMax; SQLSMALLINT *pcbDriverAttr; };
struct SQLDriversW_params { SQLHENV EnvironmentHandle; SQLUSMALLINT fDirection; SQLWCHAR *szDriverDesc; SQLSMALLINT cbDriverDescMax; SQLSMALLINT *pcbDriverDesc; SQLWCHAR *szDriverAttributes; SQLSMALLINT cbDriverAttrMax; SQLSMALLINT *pcbDriverAttr; };
struct SQLEndTran_params { SQLSMALLINT HandleType; SQLHANDLE Handle; SQLSMALLINT CompletionType; };
struct SQLError_params { SQLHENV EnvironmentHandle; SQLHDBC ConnectionHandle; SQLHSTMT StatementHandle; SQLCHAR *Sqlstate; SQLINTEGER *NativeError; SQLCHAR *MessageText; SQLSMALLINT BufferLength; SQLSMALLINT *TextLength; };
struct SQLErrorW_params { SQLHENV EnvironmentHandle; SQLHDBC ConnectionHandle; SQLHSTMT StatementHandle; WCHAR *Sqlstate; SQLINTEGER *NativeError; WCHAR *MessageText; SQLSMALLINT BufferLength; SQLSMALLINT *TextLength; };
struct SQLExecDirect_params { SQLHSTMT StatementHandle; SQLCHAR *StatementText; SQLINTEGER TextLength; };
struct SQLExecDirectW_params { SQLHSTMT StatementHandle; WCHAR *StatementText; SQLINTEGER TextLength; };
struct SQLExecute_params { SQLHSTMT StatementHandle; };
struct SQLExtendedFetch_params { SQLHSTMT hstmt; SQLUSMALLINT fFetchType; SQLLEN irow; SQLULEN *pcrow; SQLUSMALLINT *rgfRowStatus; };
struct SQLFetch_params { SQLHSTMT StatementHandle; };
struct SQLFetchScroll_params { SQLHSTMT StatementHandle; SQLSMALLINT FetchOrientation; SQLLEN FetchOffset; };
struct SQLForeignKeys_params { 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; };
struct SQLForeignKeysW_params { 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; };
struct SQLFreeConnect_params { SQLHDBC ConnectionHandle; };
struct SQLFreeEnv_params { SQLHENV EnvironmentHandle; };
struct SQLFreeHandle_params { SQLSMALLINT HandleType; SQLHANDLE Handle; };
struct SQLFreeStmt_params { SQLHSTMT StatementHandle; SQLUSMALLINT Option; };
struct SQLGetConnectAttr_params { SQLHDBC ConnectionHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER BufferLength; SQLINTEGER *StringLength; };
struct SQLGetConnectAttrW_params { SQLHDBC ConnectionHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER BufferLength; SQLINTEGER *StringLength; };
struct SQLGetConnectOption_params { SQLHDBC ConnectionHandle; SQLUSMALLINT Option; SQLPOINTER Value; };
struct SQLGetConnectOptionW_params { SQLHDBC ConnectionHandle; SQLUSMALLINT Option; SQLPOINTER Value; };
struct SQLGetCursorName_params { SQLHSTMT StatementHandle; SQLCHAR *CursorName; SQLSMALLINT BufferLength; SQLSMALLINT *NameLength; };
struct SQLGetCursorNameW_params { SQLHSTMT StatementHandle; WCHAR *CursorName; SQLSMALLINT BufferLength; SQLSMALLINT *NameLength; };
struct SQLGetData_params { SQLHSTMT StatementHandle; SQLUSMALLINT ColumnNumber; SQLSMALLINT TargetType; SQLPOINTER TargetValue; SQLLEN BufferLength; SQLLEN *StrLen_or_Ind; };
struct SQLGetDescField_params { SQLHDESC DescriptorHandle; SQLSMALLINT RecNumber; SQLSMALLINT FieldIdentifier; SQLPOINTER Value; SQLINTEGER BufferLength; SQLINTEGER *StringLength; };
struct SQLGetDescFieldW_params { SQLHDESC DescriptorHandle; SQLSMALLINT RecNumber; SQLSMALLINT FieldIdentifier; SQLPOINTER Value; SQLINTEGER BufferLength; SQLINTEGER *StringLength; };
struct SQLGetDescRec_params { SQLHDESC DescriptorHandle; SQLSMALLINT RecNumber; SQLCHAR *Name; SQLSMALLINT BufferLength; SQLSMALLINT *StringLength; SQLSMALLINT *Type; SQLSMALLINT *SubType; SQLLEN *Length; SQLSMALLINT *Precision; SQLSMALLINT *Scale; SQLSMALLINT *Nullable; };
struct SQLGetDescRecW_params { SQLHDESC DescriptorHandle; SQLSMALLINT RecNumber; WCHAR *Name; SQLSMALLINT BufferLength; SQLSMALLINT *StringLength; SQLSMALLINT *Type; SQLSMALLINT *SubType; SQLLEN *Length; SQLSMALLINT *Precision; SQLSMALLINT *Scale; SQLSMALLINT *Nullable; };
struct SQLGetDiagField_params { SQLSMALLINT HandleType; SQLHANDLE Handle; SQLSMALLINT RecNumber; SQLSMALLINT DiagIdentifier; SQLPOINTER DiagInfo; SQLSMALLINT BufferLength; SQLSMALLINT *StringLength; };
struct SQLGetDiagFieldW_params { SQLSMALLINT HandleType; SQLHANDLE Handle; SQLSMALLINT RecNumber; SQLSMALLINT DiagIdentifier; SQLPOINTER DiagInfo; SQLSMALLINT BufferLength; SQLSMALLINT *StringLength; };
struct SQLGetDiagRec_params { SQLSMALLINT HandleType; SQLHANDLE Handle; SQLSMALLINT RecNumber; SQLCHAR *Sqlstate; SQLINTEGER *NativeError; SQLCHAR *MessageText; SQLSMALLINT BufferLength; SQLSMALLINT *TextLength; };
struct SQLGetDiagRecA_params { SQLSMALLINT HandleType; SQLHANDLE Handle; SQLSMALLINT RecNumber; SQLCHAR *Sqlstate; SQLINTEGER *NativeError; SQLCHAR *MessageText; SQLSMALLINT BufferLength; SQLSMALLINT *TextLength; };
struct SQLGetDiagRecW_params { SQLSMALLINT HandleType; SQLHANDLE Handle; SQLSMALLINT RecNumber; WCHAR *Sqlstate; SQLINTEGER *NativeError; WCHAR *MessageText; SQLSMALLINT BufferLength; SQLSMALLINT *TextLength; };
struct SQLGetEnvAttr_params { SQLHENV EnvironmentHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER BufferLength; SQLINTEGER *StringLength; };
struct SQLGetFunctions_params { SQLHDBC ConnectionHandle; SQLUSMALLINT FunctionId; SQLUSMALLINT *Supported; };
struct SQLGetInfo_params { SQLHDBC ConnectionHandle; SQLUSMALLINT InfoType; SQLPOINTER InfoValue; SQLSMALLINT BufferLength; SQLSMALLINT *StringLength; };
struct SQLGetInfoW_params { SQLHDBC ConnectionHandle; SQLUSMALLINT InfoType; SQLPOINTER InfoValue; SQLSMALLINT BufferLength; SQLSMALLINT *StringLength; };
struct SQLGetStmtAttr_params { SQLHSTMT StatementHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER BufferLength; SQLINTEGER *StringLength; };
struct SQLGetStmtAttrW_params { SQLHSTMT StatementHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER BufferLength; SQLINTEGER *StringLength; };
struct SQLGetStmtOption_params { SQLHSTMT StatementHandle; SQLUSMALLINT Option; SQLPOINTER Value; };
struct SQLGetTypeInfo_params { SQLHSTMT StatementHandle; SQLSMALLINT DataType; };
struct SQLGetTypeInfoW_params { SQLHSTMT StatementHandle; SQLSMALLINT DataType; };
struct SQLMoreResults_params { SQLHSTMT StatementHandle; };
struct SQLNativeSql_params { SQLHDBC hdbc; SQLCHAR *szSqlStrIn; SQLINTEGER cbSqlStrIn; SQLCHAR *szSqlStr; SQLINTEGER cbSqlStrMax; SQLINTEGER *pcbSqlStr; };
struct SQLNativeSqlW_params { SQLHDBC hdbc; SQLWCHAR *szSqlStrIn; SQLINTEGER cbSqlStrIn; SQLWCHAR *szSqlStr; SQLINTEGER cbSqlStrMax; SQLINTEGER *pcbSqlStr; };
struct SQLNumParams_params { SQLHSTMT hstmt; SQLSMALLINT *pcpar; };
struct SQLNumResultCols_params { SQLHSTMT StatementHandle; SQLSMALLINT *ColumnCount; };
struct SQLParamData_params { SQLHSTMT StatementHandle; SQLPOINTER *Value; };
struct SQLParamOptions_params { SQLHSTMT hstmt; SQLULEN crow; SQLULEN *pirow; };
struct SQLPrepare_params { SQLHSTMT StatementHandle; SQLCHAR *StatementText; SQLINTEGER TextLength; };
struct SQLPrepareW_params { SQLHSTMT StatementHandle; WCHAR *StatementText; SQLINTEGER TextLength; };
struct SQLPrimaryKeys_params { SQLHSTMT hstmt; SQLCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLCHAR *szTableName; SQLSMALLINT cbTableName; };
struct SQLPrimaryKeysW_params { SQLHSTMT hstmt; SQLWCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLWCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLWCHAR *szTableName; SQLSMALLINT cbTableName; };
struct SQLProcedureColumns_params { SQLHSTMT hstmt; SQLCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLCHAR *szProcName; SQLSMALLINT cbProcName; SQLCHAR *szColumnName; SQLSMALLINT cbColumnName; };
struct SQLProcedureColumnsW_params { SQLHSTMT hstmt; SQLWCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLWCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLWCHAR *szProcName; SQLSMALLINT cbProcName; SQLWCHAR *szColumnName; SQLSMALLINT cbColumnName; };
struct SQLProcedures_params { SQLHSTMT hstmt; SQLCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLCHAR *szProcName; SQLSMALLINT cbProcName; };
struct SQLProceduresW_params { SQLHSTMT hstmt; SQLWCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLWCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLWCHAR *szProcName; SQLSMALLINT cbProcName; };
struct SQLPutData_params { SQLHSTMT StatementHandle; SQLPOINTER Data; SQLLEN StrLen_or_Ind; };
struct SQLRowCount_params { SQLHSTMT StatementHandle; SQLLEN *RowCount; };
struct SQLSetConnectAttr_params { SQLHDBC ConnectionHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER StringLength; };
struct SQLSetConnectAttrW_params { SQLHDBC ConnectionHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER StringLength; };
struct SQLSetConnectOption_params { SQLHDBC ConnectionHandle; SQLUSMALLINT Option; SQLULEN Value; };
struct SQLSetConnectOptionW_params { SQLHDBC ConnectionHandle; SQLUSMALLINT Option; SQLULEN Value; };
struct SQLSetCursorName_params { SQLHSTMT StatementHandle; SQLCHAR *CursorName; SQLSMALLINT NameLength; };
struct SQLSetCursorNameW_params { SQLHSTMT StatementHandle; WCHAR *CursorName; SQLSMALLINT NameLength; };
struct SQLSetDescField_params { SQLHDESC DescriptorHandle; SQLSMALLINT RecNumber; SQLSMALLINT FieldIdentifier; SQLPOINTER Value; SQLINTEGER BufferLength; };
struct SQLSetDescFieldW_params { SQLHDESC DescriptorHandle; SQLSMALLINT RecNumber; SQLSMALLINT FieldIdentifier; SQLPOINTER Value; SQLINTEGER BufferLength; };
struct SQLSetDescRec_params { SQLHDESC DescriptorHandle; SQLSMALLINT RecNumber; SQLSMALLINT Type; SQLSMALLINT SubType; SQLLEN Length; SQLSMALLINT Precision; SQLSMALLINT Scale; SQLPOINTER Data; SQLLEN *StringLength; SQLLEN *Indicator; };
struct SQLSetEnvAttr_params { SQLHENV EnvironmentHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER StringLength; };
struct SQLSetParam_params { SQLHSTMT StatementHandle; SQLUSMALLINT ParameterNumber; SQLSMALLINT ValueType; SQLSMALLINT ParameterType; SQLULEN LengthPrecision; SQLSMALLINT ParameterScale; SQLPOINTER ParameterValue; SQLLEN *StrLen_or_Ind; };
struct SQLSetPos_params { SQLHSTMT hstmt; SQLSETPOSIROW irow; SQLUSMALLINT fOption; SQLUSMALLINT fLock; };
struct SQLSetScrollOptions_params { SQLHSTMT statement_handle; SQLUSMALLINT f_concurrency; SQLLEN crow_keyset; SQLUSMALLINT crow_rowset; };
struct SQLSetStmtAttr_params { SQLHSTMT StatementHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER StringLength; };
struct SQLSetStmtAttrW_params { SQLHSTMT StatementHandle; SQLINTEGER Attribute; SQLPOINTER Value; SQLINTEGER StringLength; };
struct SQLSetStmtOption_params { SQLHSTMT StatementHandle; SQLUSMALLINT Option; SQLULEN Value; };
struct SQLSpecialColumns_params { SQLHSTMT StatementHandle; SQLUSMALLINT IdentifierType; SQLCHAR *CatalogName; SQLSMALLINT NameLength1; SQLCHAR *SchemaName; SQLSMALLINT NameLength2; SQLCHAR *TableName; SQLSMALLINT NameLength3; SQLUSMALLINT Scope; SQLUSMALLINT Nullable; };
struct SQLSpecialColumnsW_params { SQLHSTMT StatementHandle; SQLUSMALLINT IdentifierType; SQLWCHAR *CatalogName; SQLSMALLINT NameLength1; SQLWCHAR *SchemaName; SQLSMALLINT NameLength2; SQLWCHAR *TableName; SQLSMALLINT NameLength3; SQLUSMALLINT Scope; SQLUSMALLINT Nullable; };
struct SQLStatistics_params { SQLHSTMT StatementHandle; SQLCHAR *CatalogName; SQLSMALLINT NameLength1; SQLCHAR *SchemaName; SQLSMALLINT NameLength2; SQLCHAR *TableName; SQLSMALLINT NameLength3; SQLUSMALLINT Unique; SQLUSMALLINT Reserved; };
struct SQLStatisticsW_params { SQLHSTMT StatementHandle; SQLWCHAR *CatalogName; SQLSMALLINT NameLength1; SQLWCHAR *SchemaName; SQLSMALLINT NameLength2; SQLWCHAR *TableName; SQLSMALLINT NameLength3; SQLUSMALLINT Unique; SQLUSMALLINT Reserved; };
struct SQLTablePrivileges_params { SQLHSTMT hstmt; SQLCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLCHAR *szTableName; SQLSMALLINT cbTableName; };
struct SQLTablePrivilegesW_params { SQLHSTMT hstmt; SQLWCHAR *szCatalogName; SQLSMALLINT cbCatalogName; SQLWCHAR *szSchemaName; SQLSMALLINT cbSchemaName; SQLWCHAR *szTableName; SQLSMALLINT cbTableName; };
struct SQLTables_params { SQLHSTMT StatementHandle; SQLCHAR *CatalogName; SQLSMALLINT NameLength1; SQLCHAR *SchemaName; SQLSMALLINT NameLength2; SQLCHAR *TableName; SQLSMALLINT NameLength3; SQLCHAR *TableType; SQLSMALLINT NameLength4; };
struct SQLTablesW_params { SQLHSTMT StatementHandle; SQLWCHAR *CatalogName; SQLSMALLINT NameLength1; SQLWCHAR *SchemaName; SQLSMALLINT NameLength2; SQLWCHAR *TableName; SQLSMALLINT NameLength3; SQLWCHAR *TableType; SQLSMALLINT NameLength4; };
struct SQLTransact_params { SQLHENV EnvironmentHandle; SQLHDBC ConnectionHandle; SQLUSMALLINT CompletionType; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment