125 lines
2.5 KiB
C
125 lines
2.5 KiB
C
|
|
#include "enduserpch.h"
|
|
#pragma hdrstop
|
|
|
|
#include <sql.h>
|
|
#include <sqlext.h>
|
|
#include <sqltypes.h>
|
|
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLDisconnect(SQLHDBC ConnectionHandle)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLExecute(SQLHSTMT StatementHandle)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLAllocHandle(SQLSMALLINT HandleType,
|
|
SQLHANDLE InputHandle, SQLHANDLE *OutputHandle)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLFreeHandle(SQLSMALLINT HandleType, SQLHANDLE Handle)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLSetConnectAttr(SQLHDBC ConnectionHandle,
|
|
SQLINTEGER Attribute, SQLPOINTER Value,
|
|
SQLINTEGER StringLength)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLBindParameter(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT ipar,
|
|
SQLSMALLINT fParamType,
|
|
SQLSMALLINT fCType,
|
|
SQLSMALLINT fSqlType,
|
|
SQLULEN cbColDef,
|
|
SQLSMALLINT ibScale,
|
|
SQLPOINTER rgbValue,
|
|
SQLLEN cbValueMax,
|
|
SQLLEN *pcbValue)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLSetEnvAttr(SQLHENV EnvironmentHandle,
|
|
SQLINTEGER Attribute, SQLPOINTER Value,
|
|
SQLINTEGER StringLength)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLErrorW(
|
|
SQLHENV henv,
|
|
SQLHDBC hdbc,
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szSqlState,
|
|
SQLINTEGER *pfNativeError,
|
|
SQLWCHAR *szErrorMsg,
|
|
SQLSMALLINT cbErrorMsgMax,
|
|
SQLSMALLINT *pcbErrorMsg)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLPrepareW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szSqlStr,
|
|
SQLINTEGER cbSqlStr)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
static
|
|
SQLRETURN SQL_API SQLDriverConnectW(
|
|
SQLHDBC hdbc,
|
|
SQLHWND hwnd,
|
|
SQLWCHAR *szConnStrIn,
|
|
SQLSMALLINT cbConnStrIn,
|
|
SQLWCHAR *szConnStrOut,
|
|
SQLSMALLINT cbConnStrOutMax,
|
|
SQLSMALLINT *pcbConnStrOut,
|
|
SQLUSMALLINT fDriverCompletion)
|
|
{
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
|
|
|
|
//
|
|
// !! WARNING !! The entries below must be in order by ORDINAL
|
|
//
|
|
|
|
DEFINE_ORDINAL_ENTRIES(odbc32)
|
|
{
|
|
DLOENTRY(9,SQLDisconnect)
|
|
DLOENTRY(12,SQLExecute)
|
|
DLOENTRY(24,SQLAllocHandle)
|
|
DLOENTRY(31,SQLFreeHandle)
|
|
DLOENTRY(39,SQLSetConnectAttr)
|
|
DLOENTRY(72,SQLBindParameter)
|
|
DLOENTRY(75,SQLSetEnvAttr)
|
|
DLOENTRY(110,SQLErrorW)
|
|
DLOENTRY(119,SQLPrepareW)
|
|
DLOENTRY(141,SQLDriverConnectW)
|
|
};
|
|
|
|
DEFINE_ORDINAL_MAP(odbc32)
|