Products Support Documentation Download
sqlucode.h File Reference

Header for Unicode specific definition in ODBC. More...

#include "sqltypes.h"
Include dependency graph for sqlucode.h:

Go to the source code of this file.

Macros

#define SQL_WCHAR   (-8)
 
#define SQL_WVARCHAR   (-9)
 
#define SQL_WLONGVARCHAR   (-10)
 
#define SQL_C_WCHAR   SQL_WCHAR
 
#define SQL_C_TCHAR   SQL_C_CHAR
 
#define SQL_SQLSTATE_SIZEW   10 /* size of SQLSTATE for unicode */
 

Functions

RDBC_EXPORT SQLRETURN SQLColAttributeW (SQLHSTMT hstmt, SQLUSMALLINT iCol, SQLUSMALLINT iField, SQLPOINTER pCharAttr, SQLSMALLINT cbCharAttrMax, SQLSMALLINT *pcbCharAttr, SQLINTEGER *pNumAttr)
 Unicode versions of the API. More...
 
RDBC_EXPORT SQLRETURN SQLColumnPrivilegesW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
 
RDBC_EXPORT SQLRETURN SQLColumnsW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
 
RDBC_EXPORT SQLRETURN SQLConnectW (SQLHDBC hdbc, const SQLWCHAR *szDSN, SQLSMALLINT cbDSN, const SQLWCHAR *szUID, SQLSMALLINT cbUID, const SQLWCHAR *szAuthStr, SQLSMALLINT cbAuthStr)
 
RDBC_EXPORT SQLRETURN SQLDescribeColW (SQLHSTMT hstmt, SQLUSMALLINT icol, SQLWCHAR *szColName, SQLSMALLINT cbColNameMax, SQLSMALLINT *pcbColName, SQLSMALLINT *pfSqlType, SQLUINTEGER *pcbColDef, SQLSMALLINT *pibScale, SQLSMALLINT *pfNullable)
 
RDBC_EXPORT SQLRETURN SQLDriverConnectW (SQLHDBC ConnectionHandle, SQLHWND WindowHandle, const SQLWCHAR *InConnectionString, SQLSMALLINT StringLength1, SQLWCHAR *OutConnectionString, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength2Ptr, SQLUSMALLINT DriverCompletion)
 
RDBC_EXPORT SQLRETURN SQLExecDirectW (SQLHSTMT hstmt, const SQLWCHAR *szSqlStr, SQLINTEGER cbSqlStr)
 
RDBC_EXPORT SQLRETURN 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)
 
RDBC_EXPORT SQLRETURN SQLGetConnectAttrW (SQLHDBC hdbc, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValueMax, SQLINTEGER *pcbValue)
 
RDBC_EXPORT SQLRETURN SQLGetCursorNameW (SQLHSTMT hstmt, SQLWCHAR *szCursor, SQLSMALLINT cbCursorMax, SQLSMALLINT *pcbCursor)
 
RDBC_EXPORT SQLRETURN SQLGetDescFieldW (SQLHDESC hdesc, SQLSMALLINT iRecord, SQLSMALLINT iField, SQLPOINTER rgbValue, SQLINTEGER cbValueMax, SQLINTEGER *pcbValue)
 
RDBC_EXPORT SQLRETURN SQLGetDescRecW (SQLHDESC hdesc, SQLSMALLINT iRecord, SQLWCHAR *szName, SQLSMALLINT cbNameMax, SQLSMALLINT *pcbName, SQLSMALLINT *pfType, SQLSMALLINT *pfSubType, SQLINTEGER *pLength, SQLSMALLINT *pPrecision, SQLSMALLINT *pScale, SQLSMALLINT *pNullable)
 
RDBC_EXPORT SQLRETURN SQLGetDiagFieldW (SQLSMALLINT fHandleType, SQLHANDLE handle, SQLSMALLINT iRecord, SQLSMALLINT fDiagField, SQLPOINTER rgbDiagInfo, SQLSMALLINT cbDiagInfoMax, SQLSMALLINT *pcbDiagInfo)
 
RDBC_EXPORT SQLRETURN SQLGetDiagRecW (SQLSMALLINT fHandleType, SQLHANDLE handle, SQLSMALLINT iRecord, SQLWCHAR *szSqlState, SQLINTEGER *pfNativeError, SQLWCHAR *szErrorMsg, SQLSMALLINT cbErrorMsgMax, SQLSMALLINT *pcbErrorMsg)
 
RDBC_EXPORT SQLRETURN SQLGetInfoW (SQLHDBC hdbc, SQLUSMALLINT fInfoType, SQLPOINTER rgbInfoValue, SQLSMALLINT cbInfoValueMax, SQLSMALLINT *pcbInfoValue)
 
RDBC_EXPORT SQLRETURN SQLGetStmtAttrW (SQLHSTMT hstmt, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValueMax, SQLINTEGER *pcbValue)
 
RDBC_EXPORT SQLRETURN SQLGetTypeInfoW (SQLHSTMT hstmt, SQLSMALLINT fDataType)
 
RDBC_EXPORT SQLRETURN SQLNativeSqlW (SQLHDBC hdbc, const SQLWCHAR *szSqlStrIn, SQLINTEGER cbSqlStrIn, SQLWCHAR *szSqlStr, SQLINTEGER cbSqlStrMax, SQLINTEGER *pcbSqlStr)
 
RDBC_EXPORT SQLRETURN SQLPrepareW (SQLHSTMT hstmt, const SQLWCHAR *szSqlStr, SQLINTEGER cbSqlStr)
 
RDBC_EXPORT SQLRETURN SQLPrimaryKeysW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName)
 
RDBC_EXPORT SQLRETURN SQLProcedureColumnsW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szProcName, SQLSMALLINT cbProcName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
 
RDBC_EXPORT SQLRETURN SQLProceduresW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szProcName, SQLSMALLINT cbProcName)
 
RDBC_EXPORT SQLRETURN SQLSetConnectAttrW (SQLHDBC hdbc, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValue)
 
RDBC_EXPORT SQLRETURN SQLSetCursorNameW (SQLHSTMT hstmt, const SQLWCHAR *szCursor, SQLSMALLINT cbCursor)
 
RDBC_EXPORT SQLRETURN SQLSetDescFieldW (SQLHDESC hdesc, SQLSMALLINT iRecord, SQLSMALLINT iField, SQLPOINTER rgbValue, SQLINTEGER cbvalueMax)
 
RDBC_EXPORT SQLRETURN SQLSetStmtAttrW (SQLHSTMT hstmt, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValueMax)
 
RDBC_EXPORT SQLRETURN SQLSpecialColumnsW (SQLHSTMT hstmt, SQLUSMALLINT fColType, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLUSMALLINT fScope, SQLUSMALLINT fNullable)
 
RDBC_EXPORT SQLRETURN SQLStatisticsW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLUSMALLINT fUnique, SQLUSMALLINT fAccuracy)
 
RDBC_EXPORT SQLRETURN SQLTablePrivilegesW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName)
 
RDBC_EXPORT SQLRETURN SQLTablesW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLWCHAR *szTableType, SQLSMALLINT cbTableType)
 

Detailed Description

Header for Unicode specific definition in ODBC.

Definition in file sqlucode.h.

Macro Definition Documentation

◆ SQL_C_TCHAR

#define SQL_C_TCHAR   SQL_C_CHAR

Definition at line 30 of file sqlucode.h.

◆ SQL_C_WCHAR

#define SQL_C_WCHAR   SQL_WCHAR

Definition at line 25 of file sqlucode.h.

◆ SQL_SQLSTATE_SIZEW

#define SQL_SQLSTATE_SIZEW   10 /* size of SQLSTATE for unicode */

Definition at line 33 of file sqlucode.h.

◆ SQL_WCHAR

#define SQL_WCHAR   (-8)

Definition at line 22 of file sqlucode.h.

◆ SQL_WLONGVARCHAR

#define SQL_WLONGVARCHAR   (-10)

Definition at line 24 of file sqlucode.h.

◆ SQL_WVARCHAR

#define SQL_WVARCHAR   (-9)

Definition at line 23 of file sqlucode.h.

Function Documentation

◆ SQLColAttributeW()

RDBC_EXPORT SQLRETURN SQLColAttributeW ( SQLHSTMT  hstmt,
SQLUSMALLINT  iCol,
SQLUSMALLINT  iField,
SQLPOINTER  pCharAttr,
SQLSMALLINT  cbCharAttrMax,
SQLSMALLINT pcbCharAttr,
SQLINTEGER pNumAttr 
)

Unicode versions of the API.

◆ SQLColumnPrivilegesW()

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

◆ SQLColumnsW()

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

◆ SQLConnectW()

RDBC_EXPORT SQLRETURN SQLConnectW ( SQLHDBC  hdbc,
const SQLWCHAR szDSN,
SQLSMALLINT  cbDSN,
const SQLWCHAR szUID,
SQLSMALLINT  cbUID,
const SQLWCHAR szAuthStr,
SQLSMALLINT  cbAuthStr 
)

◆ SQLDescribeColW()

RDBC_EXPORT SQLRETURN SQLDescribeColW ( SQLHSTMT  hstmt,
SQLUSMALLINT  icol,
SQLWCHAR szColName,
SQLSMALLINT  cbColNameMax,
SQLSMALLINT pcbColName,
SQLSMALLINT pfSqlType,
SQLUINTEGER pcbColDef,
SQLSMALLINT pibScale,
SQLSMALLINT pfNullable 
)

◆ SQLDriverConnectW()

RDBC_EXPORT SQLRETURN SQLDriverConnectW ( SQLHDBC  ConnectionHandle,
SQLHWND  WindowHandle,
const SQLWCHAR InConnectionString,
SQLSMALLINT  StringLength1,
SQLWCHAR OutConnectionString,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength2Ptr,
SQLUSMALLINT  DriverCompletion 
)

◆ SQLExecDirectW()

RDBC_EXPORT SQLRETURN SQLExecDirectW ( SQLHSTMT  hstmt,
const SQLWCHAR szSqlStr,
SQLINTEGER  cbSqlStr 
)

◆ SQLForeignKeysW()

RDBC_EXPORT SQLRETURN 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 
)

◆ SQLGetConnectAttrW()

RDBC_EXPORT SQLRETURN SQLGetConnectAttrW ( SQLHDBC  hdbc,
SQLINTEGER  fAttribute,
SQLPOINTER  rgbValue,
SQLINTEGER  cbValueMax,
SQLINTEGER pcbValue 
)

◆ SQLGetCursorNameW()

RDBC_EXPORT SQLRETURN SQLGetCursorNameW ( SQLHSTMT  hstmt,
SQLWCHAR szCursor,
SQLSMALLINT  cbCursorMax,
SQLSMALLINT pcbCursor 
)

◆ SQLGetDescFieldW()

RDBC_EXPORT SQLRETURN SQLGetDescFieldW ( SQLHDESC  hdesc,
SQLSMALLINT  iRecord,
SQLSMALLINT  iField,
SQLPOINTER  rgbValue,
SQLINTEGER  cbValueMax,
SQLINTEGER pcbValue 
)

◆ SQLGetDescRecW()

RDBC_EXPORT SQLRETURN SQLGetDescRecW ( SQLHDESC  hdesc,
SQLSMALLINT  iRecord,
SQLWCHAR szName,
SQLSMALLINT  cbNameMax,
SQLSMALLINT pcbName,
SQLSMALLINT pfType,
SQLSMALLINT pfSubType,
SQLINTEGER pLength,
SQLSMALLINT pPrecision,
SQLSMALLINT pScale,
SQLSMALLINT pNullable 
)

◆ SQLGetDiagFieldW()

RDBC_EXPORT SQLRETURN SQLGetDiagFieldW ( SQLSMALLINT  fHandleType,
SQLHANDLE  handle,
SQLSMALLINT  iRecord,
SQLSMALLINT  fDiagField,
SQLPOINTER  rgbDiagInfo,
SQLSMALLINT  cbDiagInfoMax,
SQLSMALLINT pcbDiagInfo 
)

◆ SQLGetDiagRecW()

RDBC_EXPORT SQLRETURN SQLGetDiagRecW ( SQLSMALLINT  fHandleType,
SQLHANDLE  handle,
SQLSMALLINT  iRecord,
SQLWCHAR szSqlState,
SQLINTEGER pfNativeError,
SQLWCHAR szErrorMsg,
SQLSMALLINT  cbErrorMsgMax,
SQLSMALLINT pcbErrorMsg 
)

◆ SQLGetInfoW()

RDBC_EXPORT SQLRETURN SQLGetInfoW ( SQLHDBC  hdbc,
SQLUSMALLINT  fInfoType,
SQLPOINTER  rgbInfoValue,
SQLSMALLINT  cbInfoValueMax,
SQLSMALLINT pcbInfoValue 
)

◆ SQLGetStmtAttrW()

RDBC_EXPORT SQLRETURN SQLGetStmtAttrW ( SQLHSTMT  hstmt,
SQLINTEGER  fAttribute,
SQLPOINTER  rgbValue,
SQLINTEGER  cbValueMax,
SQLINTEGER pcbValue 
)

◆ SQLGetTypeInfoW()

RDBC_EXPORT SQLRETURN SQLGetTypeInfoW ( SQLHSTMT  hstmt,
SQLSMALLINT  fDataType 
)

◆ SQLNativeSqlW()

RDBC_EXPORT SQLRETURN SQLNativeSqlW ( SQLHDBC  hdbc,
const SQLWCHAR szSqlStrIn,
SQLINTEGER  cbSqlStrIn,
SQLWCHAR szSqlStr,
SQLINTEGER  cbSqlStrMax,
SQLINTEGER pcbSqlStr 
)

◆ SQLPrepareW()

RDBC_EXPORT SQLRETURN SQLPrepareW ( SQLHSTMT  hstmt,
const SQLWCHAR szSqlStr,
SQLINTEGER  cbSqlStr 
)

◆ SQLPrimaryKeysW()

RDBC_EXPORT SQLRETURN SQLPrimaryKeysW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szTableName,
SQLSMALLINT  cbTableName 
)

◆ SQLProcedureColumnsW()

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

◆ SQLProceduresW()

RDBC_EXPORT SQLRETURN SQLProceduresW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szProcName,
SQLSMALLINT  cbProcName 
)

◆ SQLSetConnectAttrW()

RDBC_EXPORT SQLRETURN SQLSetConnectAttrW ( SQLHDBC  hdbc,
SQLINTEGER  fAttribute,
SQLPOINTER  rgbValue,
SQLINTEGER  cbValue 
)

◆ SQLSetCursorNameW()

RDBC_EXPORT SQLRETURN SQLSetCursorNameW ( SQLHSTMT  hstmt,
const SQLWCHAR szCursor,
SQLSMALLINT  cbCursor 
)

◆ SQLSetDescFieldW()

RDBC_EXPORT SQLRETURN SQLSetDescFieldW ( SQLHDESC  hdesc,
SQLSMALLINT  iRecord,
SQLSMALLINT  iField,
SQLPOINTER  rgbValue,
SQLINTEGER  cbvalueMax 
)

◆ SQLSetStmtAttrW()

RDBC_EXPORT SQLRETURN SQLSetStmtAttrW ( SQLHSTMT  hstmt,
SQLINTEGER  fAttribute,
SQLPOINTER  rgbValue,
SQLINTEGER  cbValueMax 
)

◆ SQLSpecialColumnsW()

RDBC_EXPORT SQLRETURN SQLSpecialColumnsW ( SQLHSTMT  hstmt,
SQLUSMALLINT  fColType,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szTableName,
SQLSMALLINT  cbTableName,
SQLUSMALLINT  fScope,
SQLUSMALLINT  fNullable 
)

◆ SQLStatisticsW()

RDBC_EXPORT SQLRETURN SQLStatisticsW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szTableName,
SQLSMALLINT  cbTableName,
SQLUSMALLINT  fUnique,
SQLUSMALLINT  fAccuracy 
)

◆ SQLTablePrivilegesW()

RDBC_EXPORT SQLRETURN SQLTablePrivilegesW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szTableName,
SQLSMALLINT  cbTableName 
)

◆ SQLTablesW()

RDBC_EXPORT SQLRETURN SQLTablesW ( SQLHSTMT  hstmt,
SQLWCHAR szCatalogName,
SQLSMALLINT  cbCatalogName,
SQLWCHAR szSchemaName,
SQLSMALLINT  cbSchemaName,
SQLWCHAR szTableName,
SQLSMALLINT  cbTableName,
SQLWCHAR szTableType,
SQLSMALLINT  cbTableType 
)