odbtp.h   odbtp.h 
/* $Id: odbtp.h,v 1.33 2004/08/15 02:06:18 rtwitty Exp $ */ /* $Id: odbtp.h,v 1.36 2005/01/18 15:36:27 rtwitty Exp $ */
/* /*
odbtp - ODBTP client library odbtp - ODBTP client library
Copyright (C) 2002-2004 Robert E. Twitty <rtwitty@users.sourceforge.net > Copyright (C) 2002-2004 Robert E. Twitty <rtwitty@users.sourceforge.net >
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. version 2.1 of the License, or (at your option) any later version.
skipping to change at line 27 skipping to change at line 27
You should have received a copy of the GNU Lesser General Public You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 U SA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 U SA
*/ */
#ifndef _ODBTP_H_ #ifndef _ODBTP_H_
#define _ODBTP_H_ #define _ODBTP_H_
/* The below line must be uncommented for 64-bit systems, such as Tru64. */ /* The below line must be uncommented for 64-bit systems, such as Tru64. */
/* #define _C_LONG_64_ 1 */ /* #define _C_LONG_64_ 1 */
#define ODBTP_LIB_VERSION "1.1.2" #define ODBTP_LIB_VERSION "1.1.3"
#ifdef ODBTP_DLL /* Using odbtp.dll */
#ifdef ODBTP_DLL_BUILD
#define _odbdecl __declspec(dllexport)
#else
#define _odbdecl __declspec(dllimport)
#endif
#else /* Not Using odbtp.dll */
#define _odbdecl
#endif
/* ODBTP Connection Level Request Codes */ /* ODBTP Connection Level Request Codes */
#define ODBTP_LOGIN 0x01 #define ODBTP_LOGIN 0x01
#define ODBTP_LOGOUT 0x02 #define ODBTP_LOGOUT 0x02
#define ODBTP_GETCONNID 0x03 #define ODBTP_GETCONNID 0x03
#define ODBTP_GETATTR 0x04 #define ODBTP_GETATTR 0x04
#define ODBTP_SETATTR 0x05 #define ODBTP_SETATTR 0x05
#define ODBTP_COMMIT 0x06 #define ODBTP_COMMIT 0x06
#define ODBTP_ROLLBACK 0x07 #define ODBTP_ROLLBACK 0x07
#define ODBTP_CANCELREQ 0x1F #define ODBTP_CANCELREQ 0x1F
skipping to change at line 151 skipping to change at line 160
#define ODB_ATTR_DATABASENAME (8|ODB_ATTR_STRING) #define ODB_ATTR_DATABASENAME (8|ODB_ATTR_STRING)
/* ODB ODBC Driver types */ /* ODB ODBC Driver types */
#define ODB_DRIVER_UNKNOWN 0 #define ODB_DRIVER_UNKNOWN 0
#define ODB_DRIVER_MSSQL 1 #define ODB_DRIVER_MSSQL 1
#define ODB_DRIVER_JET 2 #define ODB_DRIVER_JET 2
#define ODB_DRIVER_FOXPRO 3 #define ODB_DRIVER_FOXPRO 3
#define ODB_DRIVER_ORACLE 4 #define ODB_DRIVER_ORACLE 4
#define ODB_DRIVER_SYBASE 5 #define ODB_DRIVER_SYBASE 5
#define ODB_DRIVER_MYSQL 6 #define ODB_DRIVER_MYSQL 6
#define ODB_DRIVER_DB2 7
/* ODB Transaction Types */ /* ODB Transaction Types */
#define ODB_TXN_NONE 0 #define ODB_TXN_NONE 0
#define ODB_TXN_READUNCOMMITTED 1 #define ODB_TXN_READUNCOMMITTED 1
#define ODB_TXN_READCOMMITTED 2 #define ODB_TXN_READCOMMITTED 2
#define ODB_TXN_REPEATABLEREAD 3 #define ODB_TXN_REPEATABLEREAD 3
#define ODB_TXN_SERIALIZABLE 4 #define ODB_TXN_SERIALIZABLE 4
#define ODB_TXN_DEFAULT 255 #define ODB_TXN_DEFAULT 255
/* ODB ODBC Interface Conformace Levels */ /* ODB ODBC Interface Conformace Levels */
skipping to change at line 356 skipping to change at line 366
odbSHORT sYear; odbSHORT sYear;
odbUSHORT usMonth; odbUSHORT usMonth;
odbUSHORT usDay; odbUSHORT usDay;
odbUSHORT usHour; odbUSHORT usHour;
odbUSHORT usMinute; odbUSHORT usMinute;
odbUSHORT usSecond; odbUSHORT usSecond;
odbULONG ulFraction; odbULONG ulFraction;
} }
odbTIMESTAMP; odbTIMESTAMP;
typedef struct
{
odbULONG ulData1;
odbUSHORT usData2;
odbUSHORT usData3;
odbBYTE byData4[8];
}
odbGUID;
typedef odbBOOL* odbPBOOL; typedef odbBOOL* odbPBOOL;
typedef odbCHAR* odbPSTR; typedef odbCHAR* odbPSTR;
typedef odbBYTE* odbPBYTE; typedef odbBYTE* odbPBYTE;
typedef const odbCHAR* odbPCSTR; typedef const odbCHAR* odbPCSTR;
typedef odbSHORT* odbPSHORT; typedef odbSHORT* odbPSHORT;
typedef odbUSHORT* odbPUSHORT; typedef odbUSHORT* odbPUSHORT;
typedef odbLONG* odbPLONG; typedef odbLONG* odbPLONG;
typedef odbULONG* odbPULONG; typedef odbULONG* odbPULONG;
typedef odbLONGLONG* odbPLONGLONG; typedef odbLONGLONG* odbPLONGLONG;
typedef odbULONGLONG* odbPULONGLONG; typedef odbULONGLONG* odbPULONGLONG;
typedef odbFLOAT* odbPFLOAT; typedef odbFLOAT* odbPFLOAT;
typedef odbDOUBLE* odbPDOUBLE; typedef odbDOUBLE* odbPDOUBLE;
typedef odbTIMESTAMP* odbPTIMESTAMP; typedef odbTIMESTAMP* odbPTIMESTAMP;
typedef odbGUID* odbPGUID;
typedef void* odbPVOID; typedef void* odbPVOID;
typedef struct typedef struct
{ {
void* x; void* x;
} }
odbHANDLE_s; odbHANDLE_s;
typedef odbHANDLE_s* odbHANDLE; typedef odbHANDLE_s* odbHANDLE;
typedef odbHANDLE* odbPHANDLE; typedef odbHANDLE* odbPHANDLE;
/* Odbtp Lib Functions */ /* Odbtp Lib Functions */
_odbdecl
odbHANDLE odbAllocate( odbHANDLE hCon ); odbHANDLE odbAllocate( odbHANDLE hCon );
_odbdecl
odbBOOL odbBindCol( odbHANDLE hQry, odbUSHORT usCol, odbSHORT sDataTy pe, odbBOOL odbBindCol( odbHANDLE hQry, odbUSHORT usCol, odbSHORT sDataTy pe,
odbLONG lDataLen, odbBOOL bFinal ); odbLONG lDataLen, odbBOOL bFinal );
_odbdecl
odbBOOL odbBindInOutParam( odbHANDLE hQry, odbBOOL odbBindInOutParam( odbHANDLE hQry,
odbUSHORT usParam, odbSHORT sDataType, odbUSHORT usParam, odbSHORT sDataType,
odbLONG lDataLen, odbBOOL bFinal ); odbLONG lDataLen, odbBOOL bFinal );
_odbdecl
odbBOOL odbBindInputParam( odbHANDLE hQry, odbBOOL odbBindInputParam( odbHANDLE hQry,
odbUSHORT usParam, odbSHORT sDataType, odbUSHORT usParam, odbSHORT sDataType,
odbLONG lDataLen, odbBOOL bFinal ); odbLONG lDataLen, odbBOOL bFinal );
_odbdecl
odbBOOL odbBindOutputParam( odbHANDLE hQry, odbBOOL odbBindOutputParam( odbHANDLE hQry,
odbUSHORT usParam, odbSHORT sDataType, odbUSHORT usParam, odbSHORT sDataType,
odbLONG lDataLen, odbBOOL bFinal ); odbLONG lDataLen, odbBOOL bFinal );
_odbdecl
odbBOOL odbBindParam( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbBindParam( odbHANDLE hQry, odbUSHORT usParam,
odbUSHORT usType, odbSHORT sDataType, odbUSHORT usType, odbSHORT sDataType,
odbLONG lDataLen, odbBOOL bFinal ); odbLONG lDataLen, odbBOOL bFinal );
_odbdecl
odbBOOL odbBindParamEx( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbBindParamEx( odbHANDLE hQry, odbUSHORT usParam,
odbUSHORT usType, odbSHORT sDataType, odbUSHORT usType, odbSHORT sDataType,
odbLONG lDataLen, odbSHORT sSqlType, odbLONG lDataLen, odbSHORT sSqlType,
odbULONG ulColSize, odbSHORT sDecDigits, odbULONG ulColSize, odbSHORT sDecDigits,
odbBOOL bFinal ); odbBOOL bFinal );
_odbdecl
odbLONG odbColActualLen( odbHANDLE hQry, odbUSHORT usCol ); odbLONG odbColActualLen( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPCSTR odbColBaseName( odbHANDLE hQry, odbUSHORT usCol ); odbPCSTR odbColBaseName( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPCSTR odbColBaseTable( odbHANDLE hQry, odbUSHORT usCol ); odbPCSTR odbColBaseTable( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPCSTR odbColCatalog( odbHANDLE hQry, odbUSHORT usCol ); odbPCSTR odbColCatalog( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPVOID odbColData( odbHANDLE hQry, odbUSHORT usCol ); odbPVOID odbColData( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbBYTE odbColDataByte( odbHANDLE hQry, odbUSHORT usCol ); odbBYTE odbColDataByte( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbDOUBLE odbColDataDouble( odbHANDLE hQry, odbUSHORT usCol ); odbDOUBLE odbColDataDouble( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbFLOAT odbColDataFloat( odbHANDLE hQry, odbUSHORT usCol ); odbFLOAT odbColDataFloat( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPGUID odbColDataGuid( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbLONG odbColDataLen( odbHANDLE hQry, odbUSHORT usCol ); odbLONG odbColDataLen( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbULONG odbColDataLong( odbHANDLE hQry, odbUSHORT usCol ); odbULONG odbColDataLong( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbULONGLONG odbColDataLongLong( odbHANDLE hQry, odbUSHORT usCol ); odbULONGLONG odbColDataLongLong( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbUSHORT odbColDataShort( odbHANDLE hQry, odbUSHORT usCol ); odbUSHORT odbColDataShort( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPSTR odbColDataText( odbHANDLE hQry, odbUSHORT usCol ); odbPSTR odbColDataText( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPTIMESTAMP odbColDataTimestamp( odbHANDLE hQry, odbUSHORT usCol ); odbPTIMESTAMP odbColDataTimestamp( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbSHORT odbColDataType( odbHANDLE hQry, odbUSHORT usCol ); odbSHORT odbColDataType( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbSHORT odbColDecDigits( odbHANDLE hQry, odbUSHORT usCol ); odbSHORT odbColDecDigits( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbSHORT odbColDefaultDataType( odbHANDLE hQry, odbUSHORT usCol ); odbSHORT odbColDefaultDataType( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbULONG odbColFlags( odbHANDLE hQry, odbUSHORT usCol ); odbULONG odbColFlags( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPCSTR odbColName( odbHANDLE hQry, odbUSHORT usCol ); odbPCSTR odbColName( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbUSHORT odbColNum( odbHANDLE hQry, odbPCSTR pszName ); odbUSHORT odbColNum( odbHANDLE hQry, odbPCSTR pszName );
_odbdecl
odbPCSTR odbColSchema( odbHANDLE hQry, odbUSHORT usCol ); odbPCSTR odbColSchema( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbULONG odbColSize( odbHANDLE hQry, odbUSHORT usCol ); odbULONG odbColSize( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbSHORT odbColSqlType( odbHANDLE hQry, odbUSHORT usCol ); odbSHORT odbColSqlType( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPCSTR odbColSqlTypeName( odbHANDLE hQry, odbUSHORT usCol ); odbPCSTR odbColSqlTypeName( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPCSTR odbColTable( odbHANDLE hQry, odbUSHORT usCol ); odbPCSTR odbColTable( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbBOOL odbColTruncated( odbHANDLE hQry, odbUSHORT usCol ); odbBOOL odbColTruncated( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbPVOID odbColUserData( odbHANDLE hQry, odbUSHORT usCol ); odbPVOID odbColUserData( odbHANDLE hQry, odbUSHORT usCol );
_odbdecl
odbBOOL odbCommit( odbHANDLE hCon ); odbBOOL odbCommit( odbHANDLE hCon );
_odbdecl
odbBOOL odbConvertAll( odbHANDLE hCon, odbBOOL bConvert ); odbBOOL odbConvertAll( odbHANDLE hCon, odbBOOL bConvert );
_odbdecl
odbBOOL odbConvertDatetime( odbHANDLE hCon, odbBOOL bConvert ); odbBOOL odbConvertDatetime( odbHANDLE hCon, odbBOOL bConvert );
_odbdecl
odbBOOL odbConvertGuid( odbHANDLE hCon, odbBOOL bConvert );
_odbdecl
void odbCTimeToTimestamp( odbPTIMESTAMP ptsTime, odbLONG lTime ); void odbCTimeToTimestamp( odbPTIMESTAMP ptsTime, odbLONG lTime );
_odbdecl
odbBOOL odbDescribeSqlType( odbHANDLE hCon, odbBOOL odbDescribeSqlType( odbHANDLE hCon,
odbPCSTR pszSqlTypeName, odbPSHORT psSqlT ype, odbPCSTR pszSqlTypeName, odbPSHORT psSqlT ype,
odbPULONG pulColSize, odbPSHORT psDecDigi ts ); odbPULONG pulColSize, odbPSHORT psDecDigi ts );
_odbdecl
odbBOOL odbDetachQry( odbHANDLE hQry ); odbBOOL odbDetachQry( odbHANDLE hQry );
_odbdecl
odbBOOL odbDoRowOperation( odbHANDLE hQry, odbUSHORT usRowOp ); odbBOOL odbDoRowOperation( odbHANDLE hQry, odbUSHORT usRowOp );
_odbdecl
odbBOOL odbDropQry( odbHANDLE hQry ); odbBOOL odbDropQry( odbHANDLE hQry );
_odbdecl
odbBOOL odbExecute( odbHANDLE hQry, odbPCSTR pszSQL ); odbBOOL odbExecute( odbHANDLE hQry, odbPCSTR pszSQL );
_odbdecl
odbBOOL odbFetchNextResult( odbHANDLE hQry ); odbBOOL odbFetchNextResult( odbHANDLE hQry );
_odbdecl
odbBOOL odbFetchRow( odbHANDLE hQry ); odbBOOL odbFetchRow( odbHANDLE hQry );
_odbdecl
odbBOOL odbFetchRowEx( odbHANDLE hQry, odbUSHORT usFetchType, odbBOOL odbFetchRowEx( odbHANDLE hQry, odbUSHORT usFetchType,
odbLONG lFetchParam ); odbLONG lFetchParam );
_odbdecl
odbBOOL odbFetchRowsIntoCache( odbHANDLE hQry ); odbBOOL odbFetchRowsIntoCache( odbHANDLE hQry );
_odbdecl
odbBOOL odbFinalizeRequest( odbHANDLE hOdb ); odbBOOL odbFinalizeRequest( odbHANDLE hOdb );
_odbdecl
void odbFree( odbHANDLE hOdb ); void odbFree( odbHANDLE hOdb );
_odbdecl
odbBOOL odbGetAttrLong( odbHANDLE hCon, odbLONG lAttr, odbBOOL odbGetAttrLong( odbHANDLE hCon, odbLONG lAttr,
odbPULONG pulVal ); odbPULONG pulVal );
_odbdecl
odbBOOL odbGetAttrText( odbHANDLE hCon, odbLONG lAttr, odbBOOL odbGetAttrText( odbHANDLE hCon, odbLONG lAttr,
odbPSTR pszVal, odbULONG ulValLen ); odbPSTR pszVal, odbULONG ulValLen );
_odbdecl
odbHANDLE odbGetConnection( odbHANDLE hQry ); odbHANDLE odbGetConnection( odbHANDLE hQry );
_odbdecl
odbPCSTR odbGetConnectionId( odbHANDLE hCon ); odbPCSTR odbGetConnectionId( odbHANDLE hCon );
_odbdecl
odbULONG odbGetError( odbHANDLE hOdb ); odbULONG odbGetError( odbHANDLE hOdb );
_odbdecl
odbPCSTR odbGetErrorText( odbHANDLE hOdb ); odbPCSTR odbGetErrorText( odbHANDLE hOdb );
_odbdecl
odbHANDLE odbGetFirstQuery( odbHANDLE hCon ); odbHANDLE odbGetFirstQuery( odbHANDLE hCon );
_odbdecl
odbHANDLE odbGetNextQuery( odbHANDLE hCon ); odbHANDLE odbGetNextQuery( odbHANDLE hCon );
_odbdecl
odbBOOL odbGetOutputParams( odbHANDLE hQry ); odbBOOL odbGetOutputParams( odbHANDLE hQry );
_odbdecl
odbBOOL odbGetParam( odbHANDLE hQry, odbUSHORT usParam, odbBOOL bFina l ); odbBOOL odbGetParam( odbHANDLE hQry, odbUSHORT usParam, odbBOOL bFina l );
_odbdecl
odbHANDLE odbGetQuery( odbHANDLE hCon, odbULONG ulQryId ); odbHANDLE odbGetQuery( odbHANDLE hCon, odbULONG ulQryId );
_odbdecl
odbULONG odbGetQueryId( odbHANDLE hQry ); odbULONG odbGetQueryId( odbHANDLE hQry );
_odbdecl
odbPVOID odbGetResponse( odbHANDLE hOdb ); odbPVOID odbGetResponse( odbHANDLE hOdb );
_odbdecl
odbULONG odbGetResponseCode( odbHANDLE hOdb ); odbULONG odbGetResponseCode( odbHANDLE hOdb );
_odbdecl
odbULONG odbGetResponseSize( odbHANDLE hOdb ); odbULONG odbGetResponseSize( odbHANDLE hOdb );
_odbdecl
odbULONG odbGetRowCacheSize( odbHANDLE hCon ); odbULONG odbGetRowCacheSize( odbHANDLE hCon );
_odbdecl
odbLONG odbGetRowCount( odbHANDLE hQry ); odbLONG odbGetRowCount( odbHANDLE hQry );
_odbdecl
odbULONG odbGetRowStatus( odbHANDLE hQry ); odbULONG odbGetRowStatus( odbHANDLE hQry );
_odbdecl
odbLONG odbGetSockError( odbHANDLE hOdb ); odbLONG odbGetSockError( odbHANDLE hOdb );
_odbdecl
odbPCSTR odbGetSockErrorText( odbHANDLE hOdb ); odbPCSTR odbGetSockErrorText( odbHANDLE hOdb );
_odbdecl
odbUSHORT odbGetTotalCols( odbHANDLE hQry ); odbUSHORT odbGetTotalCols( odbHANDLE hQry );
_odbdecl
odbUSHORT odbGetTotalParams( odbHANDLE hQry ); odbUSHORT odbGetTotalParams( odbHANDLE hQry );
_odbdecl
odbLONG odbGetTotalRows( odbHANDLE hQry ); odbLONG odbGetTotalRows( odbHANDLE hQry );
_odbdecl
odbPVOID odbGetUserData( odbHANDLE hOdb ); odbPVOID odbGetUserData( odbHANDLE hOdb );
_odbdecl
odbULONG odbGetUserDataLong( odbHANDLE hOdb ); odbULONG odbGetUserDataLong( odbHANDLE hOdb );
_odbdecl
odbPCSTR odbGetVersion( odbHANDLE hCon ); odbPCSTR odbGetVersion( odbHANDLE hCon );
_odbdecl
odbBOOL odbGotParam( odbHANDLE hQry, odbUSHORT usParam ); odbBOOL odbGotParam( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbPSTR odbGuidToStr( odbPSTR pszStr, odbPGUID pguidVal );
_odbdecl
odbBOOL odbIsConnected( odbHANDLE hOdb ); odbBOOL odbIsConnected( odbHANDLE hOdb );
_odbdecl
odbBOOL odbIsConnection( odbHANDLE hOdb ); odbBOOL odbIsConnection( odbHANDLE hOdb );
_odbdecl
odbBOOL odbIsTextAttr( odbLONG lAttr ); odbBOOL odbIsTextAttr( odbLONG lAttr );
_odbdecl
odbBOOL odbIsUsingRowCache( odbHANDLE hCon ); odbBOOL odbIsUsingRowCache( odbHANDLE hCon );
_odbdecl
odbBOOL odbLoadDataTypes( odbHANDLE hCon ); odbBOOL odbLoadDataTypes( odbHANDLE hCon );
_odbdecl
odbBOOL odbLogin( odbHANDLE hCon, odbPCSTR pszServer, odbUSHORT usPor t, odbBOOL odbLogin( odbHANDLE hCon, odbPCSTR pszServer, odbUSHORT usPor t,
odbUSHORT usType, odbPCSTR pszDBConnect ); odbUSHORT usType, odbPCSTR pszDBConnect );
_odbdecl
odbBOOL odbLoginInterface( odbHANDLE hCon, odbPCSTR pszFile, odbBOOL odbLoginInterface( odbHANDLE hCon, odbPCSTR pszFile,
odbPCSTR pszInterface, odbPCSTR pszUsername , odbPCSTR pszInterface, odbPCSTR pszUsername ,
odbPCSTR pszPassword, odbPCSTR pszDatabase, odbPCSTR pszPassword, odbPCSTR pszDatabase,
odbUSHORT usType ); odbUSHORT usType );
_odbdecl
odbBOOL odbLogout( odbHANDLE hCon, odbBOOL bDisconnectDb ); odbBOOL odbLogout( odbHANDLE hCon, odbBOOL bDisconnectDb );
_odbdecl
odbPSTR odbLongLongToStr( odbLONGLONG llVal, odbPSTR pszStrEnd ); odbPSTR odbLongLongToStr( odbLONGLONG llVal, odbPSTR pszStrEnd );
_odbdecl
odbBOOL odbNoData( odbHANDLE hQry ); odbBOOL odbNoData( odbHANDLE hQry );
_odbdecl
odbLONG odbParamActualLen( odbHANDLE hQry, odbUSHORT usParam ); odbLONG odbParamActualLen( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbPVOID odbParamData( odbHANDLE hQry, odbUSHORT usParam ); odbPVOID odbParamData( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbBYTE odbParamDataByte( odbHANDLE hQry, odbUSHORT usParam ); odbBYTE odbParamDataByte( odbHANDLE hQry, odbUSHORT usParam );
odbDOUBLE odbParamDataDouble( odbHANDLE hQry, odbUSHORT usCol ); _odbdecl
odbFLOAT odbParamDataFloat( odbHANDLE hQry, odbUSHORT usCol ); odbDOUBLE odbParamDataDouble( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbFLOAT odbParamDataFloat( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbPGUID odbParamDataGuid( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbLONG odbParamDataLen( odbHANDLE hQry, odbUSHORT usParam ); odbLONG odbParamDataLen( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbULONG odbParamDataLong( odbHANDLE hQry, odbUSHORT usParam ); odbULONG odbParamDataLong( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbULONGLONG odbParamDataLongLong( odbHANDLE hQry, odbUSHORT usParam ); odbULONGLONG odbParamDataLongLong( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbUSHORT odbParamDataShort( odbHANDLE hQry, odbUSHORT usParam ); odbUSHORT odbParamDataShort( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbPSTR odbParamDataText( odbHANDLE hQry, odbUSHORT usParam ); odbPSTR odbParamDataText( odbHANDLE hQry, odbUSHORT usParam );
odbPTIMESTAMP odbParamDataTimestamp( odbHANDLE hQry, odbUSHORT usCol ); _odbdecl
odbPTIMESTAMP odbParamDataTimestamp( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbSHORT odbParamDataType( odbHANDLE hQry, odbUSHORT usParam ); odbSHORT odbParamDataType( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbSHORT odbParamDecDigits( odbHANDLE hQry, odbUSHORT usParam ); odbSHORT odbParamDecDigits( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbSHORT odbParamDefaultDataType( odbHANDLE hQry, odbUSHORT usParam ); odbSHORT odbParamDefaultDataType( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbPCSTR odbParamName( odbHANDLE hQry, odbUSHORT usParam ); odbPCSTR odbParamName( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbUSHORT odbParamNum( odbHANDLE hQry, odbPCSTR pszName ); odbUSHORT odbParamNum( odbHANDLE hQry, odbPCSTR pszName );
_odbdecl
odbULONG odbParamSize( odbHANDLE hQry, odbUSHORT usParam ); odbULONG odbParamSize( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbSHORT odbParamSqlType( odbHANDLE hQry, odbUSHORT usParam ); odbSHORT odbParamSqlType( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbPCSTR odbParamSqlTypeName( odbHANDLE hQry, odbUSHORT usParam ); odbPCSTR odbParamSqlTypeName( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbBOOL odbParamTruncated( odbHANDLE hQry, odbUSHORT usParam ); odbBOOL odbParamTruncated( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbUSHORT odbParamType( odbHANDLE hQry, odbUSHORT usParam ); odbUSHORT odbParamType( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbPVOID odbParamUserData( odbHANDLE hQry, odbUSHORT usParam ); odbPVOID odbParamUserData( odbHANDLE hQry, odbUSHORT usParam );
_odbdecl
odbBOOL odbPrepare( odbHANDLE hQry, odbPCSTR pszSQL ); odbBOOL odbPrepare( odbHANDLE hQry, odbPCSTR pszSQL );
_odbdecl
odbBOOL odbPrepareProc( odbHANDLE hQry, odbPCSTR pszProcedure ); odbBOOL odbPrepareProc( odbHANDLE hQry, odbPCSTR pszProcedure );
_odbdecl
odbBOOL odbRollback( odbHANDLE hCon ); odbBOOL odbRollback( odbHANDLE hCon );
_odbdecl
odbBOOL odbSeekRow( odbHANDLE hQry, odbLONG lRow ); odbBOOL odbSeekRow( odbHANDLE hQry, odbLONG lRow );
_odbdecl
odbBOOL odbSetAttrLong( odbHANDLE hCon, odbLONG lAttr, odbBOOL odbSetAttrLong( odbHANDLE hCon, odbLONG lAttr,
odbULONG ulVal ); odbULONG ulVal );
_odbdecl
odbBOOL odbSetAttrText( odbHANDLE hCon, odbLONG lAttr, odbBOOL odbSetAttrText( odbHANDLE hCon, odbLONG lAttr,
odbPCSTR pszVal ); odbPCSTR pszVal );
_odbdecl
odbBOOL odbSetCol( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetCol( odbHANDLE hQry, odbUSHORT usCol,
odbPVOID pData, odbLONG lDataLen, odbPVOID pData, odbLONG lDataLen,
odbBOOL bFinal ); odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColByte( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColByte( odbHANDLE hQry, odbUSHORT usCol,
odbBYTE byData, odbBOOL bFinal ); odbBYTE byData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColDouble( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColDouble( odbHANDLE hQry, odbUSHORT usCol,
odbDOUBLE dData, odbBOOL bFinal ); odbDOUBLE dData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColFloat( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColFloat( odbHANDLE hQry, odbUSHORT usCol,
odbFLOAT fData, odbBOOL bFinal ); odbFLOAT fData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColGuid( odbHANDLE hQry, odbUSHORT usCol,
odbPGUID pguidData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColIgnore( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColIgnore( odbHANDLE hQry, odbUSHORT usCol,
odbBOOL bFinal ); odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColLong( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColLong( odbHANDLE hQry, odbUSHORT usCol,
odbULONG ulData, odbBOOL bFinal ); odbULONG ulData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColLongLong( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColLongLong( odbHANDLE hQry, odbUSHORT usCol,
odbULONGLONG ullData, odbBOOL bFinal ); odbULONGLONG ullData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColNull( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColNull( odbHANDLE hQry, odbUSHORT usCol,
odbBOOL bFinal ); odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColShort( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColShort( odbHANDLE hQry, odbUSHORT usCol,
odbUSHORT usData, odbBOOL bFinal ); odbUSHORT usData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColText( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColText( odbHANDLE hQry, odbUSHORT usCol,
odbPCSTR pszData, odbBOOL bFinal ); odbPCSTR pszData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColTimestamp( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColTimestamp( odbHANDLE hQry, odbUSHORT usCol,
odbPTIMESTAMP ptsData, odbBOOL bFinal ); odbPTIMESTAMP ptsData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetColUserData( odbHANDLE hQry, odbUSHORT usCol, odbBOOL odbSetColUserData( odbHANDLE hQry, odbUSHORT usCol,
odbPVOID pVal ); odbPVOID pVal );
_odbdecl
odbULONG odbSetConnectTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); odbULONG odbSetConnectTimeout( odbHANDLE hOdb, odbULONG ulTimeout );
_odbdecl
odbBOOL odbSetCursor( odbHANDLE hQry, odbUSHORT usType, odbBOOL odbSetCursor( odbHANDLE hQry, odbUSHORT usType,
odbUSHORT usConcurrency, odbUSHORT usConcurrency,
odbBOOL bEnableBookmarks ); odbBOOL bEnableBookmarks );
_odbdecl
odbBOOL odbSetError( odbHANDLE hOdb, odbULONG ulError ); odbBOOL odbSetError( odbHANDLE hOdb, odbULONG ulError );
_odbdecl
odbBOOL odbSetParam( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParam( odbHANDLE hQry, odbUSHORT usParam,
odbPVOID pData, odbLONG lDataLen, odbPVOID pData, odbLONG lDataLen,
odbBOOL bFinal ); odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamByte( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamByte( odbHANDLE hQry, odbUSHORT usParam,
odbBYTE byData, odbBOOL bFinal ); odbBYTE byData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamDefault( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamDefault( odbHANDLE hQry, odbUSHORT usParam,
odbBOOL bFinal ); odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamDouble( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamDouble( odbHANDLE hQry, odbUSHORT usParam,
odbDOUBLE dData, odbBOOL bFinal ); odbDOUBLE dData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamFloat( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamFloat( odbHANDLE hQry, odbUSHORT usParam,
odbFLOAT fData, odbBOOL bFinal ); odbFLOAT fData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamGuid( odbHANDLE hQry, odbUSHORT usParam,
odbPGUID pguidData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamLong( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamLong( odbHANDLE hQry, odbUSHORT usParam,
odbULONG ulData, odbBOOL bFinal ); odbULONG ulData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamLongLong( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamLongLong( odbHANDLE hQry, odbUSHORT usParam,
odbULONGLONG ullData, odbBOOL bFinal ); odbULONGLONG ullData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamNull( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamNull( odbHANDLE hQry, odbUSHORT usParam,
odbBOOL bFinal ); odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamShort( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamShort( odbHANDLE hQry, odbUSHORT usParam,
odbUSHORT usData, odbBOOL bFinal ); odbUSHORT usData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamText( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamText( odbHANDLE hQry, odbUSHORT usParam,
odbPCSTR pszData, odbBOOL bFinal ); odbPCSTR pszData, odbBOOL bFinal );
_odbdecl
odbBOOL odbSetParamTimestamp( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamTimestamp( odbHANDLE hQry, odbUSHORT usParam,
odbPTIMESTAMP ptsData, odbBOOL bFinal ) ; odbPTIMESTAMP ptsData, odbBOOL bFinal ) ;
_odbdecl
odbBOOL odbSetParamUserData( odbHANDLE hQry, odbUSHORT usParam, odbBOOL odbSetParamUserData( odbHANDLE hQry, odbUSHORT usParam,
odbPVOID pVal ); odbPVOID pVal );
_odbdecl
odbULONG odbSetReadTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); odbULONG odbSetReadTimeout( odbHANDLE hOdb, odbULONG ulTimeout );
_odbdecl
odbULONG odbSetSendTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); odbULONG odbSetSendTimeout( odbHANDLE hOdb, odbULONG ulTimeout );
_odbdecl
void odbSetUserData( odbHANDLE hOdb, odbPVOID pVal ); void odbSetUserData( odbHANDLE hOdb, odbPVOID pVal );
_odbdecl
void odbSetUserDataLong( odbHANDLE hOdb, odbULONG ulVal ); void odbSetUserDataLong( odbHANDLE hOdb, odbULONG ulVal );
_odbdecl
odbPGUID odbStrToGuid( odbPGUID pguidVal, odbPCSTR pszStr );
_odbdecl
odbLONGLONG odbStrToLongLong( odbPCSTR pszStr ); odbLONGLONG odbStrToLongLong( odbPCSTR pszStr );
_odbdecl
odbPTIMESTAMP odbStrToTimestamp( odbPTIMESTAMP ptsTime, odbPCSTR pszStr ); odbPTIMESTAMP odbStrToTimestamp( odbPTIMESTAMP ptsTime, odbPCSTR pszStr );
_odbdecl
odbULONGLONG odbStrToULongLong( odbPCSTR pszStr ); odbULONGLONG odbStrToULongLong( odbPCSTR pszStr );
_odbdecl
odbLONG odbTimestampToCTime( odbPTIMESTAMP ptsTime ); odbLONG odbTimestampToCTime( odbPTIMESTAMP ptsTime );
_odbdecl
odbPSTR odbTimestampToStr( odbPSTR pszStr, odbPTIMESTAMP ptsTime, odbPSTR odbTimestampToStr( odbPSTR pszStr, odbPTIMESTAMP ptsTime,
odbBOOL bIncludeFraction ); odbBOOL bIncludeFraction );
_odbdecl
odbPSTR odbULongLongToStr( odbULONGLONG ullVal, odbPSTR pszStrEnd ); odbPSTR odbULongLongToStr( odbULONGLONG ullVal, odbPSTR pszStrEnd );
_odbdecl
odbBOOL odbUseRowCache( odbHANDLE hCon, odbBOOL bUse, odbULONG ulSize ); odbBOOL odbUseRowCache( odbHANDLE hCon, odbBOOL bUse, odbULONG ulSize );
_odbdecl
void odbWinsockCleanup(void); void odbWinsockCleanup(void);
_odbdecl
odbBOOL odbWinsockStartup(void); odbBOOL odbWinsockStartup(void);
#define odbFetchRowAbs( hQry, lRow ) odbFetchRowEx( (hQry), ODB_FETCH_ABS, (lRow) ) #define odbFetchRowAbs( hQry, lRow ) odbFetchRowEx( (hQry), ODB_FETCH_ABS, (lRow) )
#define odbFetchRowBookmark( hQry, lRowOffset ) odbFetchRowEx( (hQry), ODB_ FETCH_BOOKMARK, (lRowOffset) ) #define odbFetchRowBookmark( hQry, lRowOffset ) odbFetchRowEx( (hQry), ODB_ FETCH_BOOKMARK, (lRowOffset) )
#define odbFetchRowFirst( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_FIRST, 0 ) #define odbFetchRowFirst( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_FIRST, 0 )
#define odbFetchRowLast( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_LAST, 0 ) #define odbFetchRowLast( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_LAST, 0 )
#define odbFetchRowNext( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_NEXT, 0 ) #define odbFetchRowNext( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_NEXT, 0 )
#define odbFetchRowPrev( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_PREV, 0 ) #define odbFetchRowPrev( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_PREV, 0 )
#define odbFetchRowRel( hQry, lRowOffset ) odbFetchRowEx( (hQry), ODB_FETCH _REL, (lRowOffset) ) #define odbFetchRowRel( hQry, lRowOffset ) odbFetchRowEx( (hQry), ODB_FETCH _REL, (lRowOffset) )
#define odbFetchRowReread( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_REREAD, 0 ) #define odbFetchRowReread( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_REREAD, 0 )
 End of changes. 157 change blocks. 
5 lines changed or deleted 195 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/