📄 sdodbc.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'SDOdbc.pas' rev: 6.00
#ifndef SDOdbcHPP
#define SDOdbcHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <SDCommon.hpp> // Pascal unit
#include <SDConsts.hpp> // Pascal unit
#include <Variants.hpp> // Pascal unit
#include <ComObj.hpp> // Pascal unit
#include <SyncObjs.hpp> // Pascal unit
#include <DB.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Sdodbc
{
//-- type declarations -------------------------------------------------------
typedef Byte UCHAR;
typedef unsigned ULONG;
typedef Word USHORT;
typedef char SCHAR;
typedef int SDWORD;
typedef short SWORD;
typedef unsigned UDWORD;
typedef Word UWORD;
typedef double SDOUBLE;
typedef float SFLOAT;
typedef int SLONG;
typedef short SSHORT;
typedef Extended LDOUBLE;
typedef void *PTR;
typedef Byte SQLCHAR;
typedef char SQLSCHAR;
typedef Byte SQLDATE;
typedef Byte SQLDECIMAL;
typedef double SQLDOUBLE;
typedef double SQLFLOAT;
typedef int SQLINTEGER;
typedef unsigned SQLUINTEGER;
typedef Byte SQLNUMERIC;
typedef void *SQLPOINTER;
typedef float SQLREAL;
typedef short SQLSMALLINT;
typedef Word SQLUSMALLINT;
typedef Byte SQLTIME;
typedef Byte SQLTIMESTAMP;
typedef Byte SQLVARCHAR;
typedef short SQLRETURN;
typedef void *SQLHANDLE;
typedef void *SQLHENV;
typedef void *SQLHDBC;
typedef void *SQLHSTMT;
typedef void *SQLHDESC;
typedef void * *PSQLHANDLE;
typedef void * *PSQLHENV;
typedef void * *PSQLHDBC;
typedef void * *PSQLHSTMT;
typedef short RETCODE;
typedef int *PSQLINTEGER;
typedef short *PSQLSMALLINT;
typedef Word *PSQLUSMALLINT;
typedef unsigned *PSQLUINTEGER;
typedef void * *PSQLPOINTER;
typedef HWND SQLHWND;
#pragma pack(push, 2)
struct TSQL_DATE_STRUCT
{
short year;
Word month;
Word day;
} ;
#pragma pack(pop)
#pragma pack(push, 2)
struct TSQL_TIME_STRUCT
{
Word hour;
Word minute;
Word second;
} ;
#pragma pack(pop)
#pragma pack(push, 4)
struct TSQL_TIMESTAMP_STRUCT
{
short year;
Word month;
Word day;
Word hour;
Word minute;
Word second;
unsigned fraction;
} ;
#pragma pack(pop)
typedef Byte SQLINTERVAL;
#pragma pack(push, 4)
struct TSQL_YEAR_MONTH_STRUCT
{
unsigned year;
unsigned month;
} ;
#pragma pack(pop)
#pragma pack(push, 4)
struct TSQL_DAY_SECOND_STRUCT
{
unsigned day;
unsigned hour;
unsigned minute;
unsigned second;
unsigned fraction;
} ;
#pragma pack(pop)
#pragma pack(push, 4)
struct TSQL_INTERVAL_YM_STRUCT
{
Byte interval_type;
Byte dummy1;
Byte dummy2;
Byte dummy3;
short interval_sign;
Word dummy4;
TSQL_YEAR_MONTH_STRUCT year_month;
} ;
#pragma pack(pop)
#pragma pack(push, 4)
struct TSQL_INTERVAL_DS_STRUCT
{
Byte interval_type;
Byte dummy1;
Byte dummy2;
Byte dummy3;
short interval_sign;
Word dummy4;
TSQL_DAY_SECOND_STRUCT day_second;
} ;
#pragma pack(pop)
typedef unsigned TSQL_BOOKMARK;
typedef short __stdcall (*TSQLAllocConnect)(void * henv, void * &hdbc);
typedef short __stdcall (*TSQLAllocEnv)(void * &henv);
typedef short __stdcall (*TSQLAllocHandle)(short fHandleType, void * hInput, void * &hOutput);
typedef short __stdcall (*TSQLAllocStmt)(void * hdbc, void * &hstmt);
typedef short __stdcall (*TSQLBindCol)(void * hstmt, Word icol, short fCType, void * rgbValue, int cbValueMax, void * pcbValue);
typedef short __stdcall (*TSQLCancel)(void * hstmt);
typedef short __stdcall (*TSQLCloseCursor)(void * hStmt);
typedef short __stdcall (*TSQLColAttribute)(void * hstmt, Word icol, Word fDescType, void * rgbDesc, short cbDescMax, void * pcbDesc, void * pfDesc);
typedef short __stdcall (*TSQLColumns)(void * hStmt, char * szCatalogName, short cbCatalogName, char * szSchemaName, short cbSchemaName, char * szTableName, short cbTableName, char * szColumnName, short cbColumnName);
typedef short __stdcall (*TSQLConnect)(void * hdbc, char * szDSN, short cbDSN, char * szUID, short cbUID, char * szAuthStr, short cbAuthStr);
typedef short __stdcall (*TSQLCopyDesc)(void * hDescSource, void * hDescTarget);
typedef short __stdcall (*TSQLDataSources)(void * hEnv, Word fDirection, char * szDSN, short cbDSNMax, short &cbDSN, char * szDescription, short cbDescriptionMax, short &cbDescription);
typedef short __stdcall (*TSQLDescribeCol)(void * hstmt, Word icol, char * szColName, short cbColNameMax, short &cbColName, short &fSqlType, unsigned &cbColDef, short &ibScale, short &fNullable);
typedef short __stdcall (*TSQLDisconnect)(void * hdbc);
typedef short __stdcall (*TSQLEndTran)(short fHandleType, void * hHandle, short fType);
typedef short __stdcall (*TSQLError)(void * henv, void * hdbc, void * hstmt, char * szSqlState, int &fNativeError, char * szErrorMsg, short cbErrorMsgMax, short &cbErrorMsg);
typedef short __stdcall (*TSQLExecDirect)(void * hstmt, char * szSqlStr, int cbSqlStr);
typedef short __stdcall (*TSQLExecute)(void * hstmt);
typedef short __stdcall (*TSQLFetch)(void * hstmt);
typedef short __stdcall (*TSQLFetchScroll)(void * hStmt, short FetchOrientation, int FetchOffset);
typedef short __stdcall (*TSQLFreeConnect)(void * hdbc);
typedef short __stdcall (*TSQLFreeEnv)(void * henv);
typedef short __stdcall (*TSQLFreeHandle)(short fHandleType, void * hHandle);
typedef short __stdcall (*TSQLFreeStmt)(void * hstmt, Word fOption);
typedef short __stdcall (*TSQLGetConnectAttr)(void * hDbc, int Attribute, void * Value, int BufferLength, void * pStringLength);
typedef short __stdcall (*TSQLGetConnectOption)(void * hDbc, Word fOption, void * pvParam);
typedef short __stdcall (*TSQLGetCursorName)(void * hStmt, char * szCursor, short cbCursorMax, short &cbCursor);
typedef short __stdcall (*TSQLGetData)(void * hStmt, Word icol, short fCType, void * rgbValue, int cbValueMax, int &cbValue);
typedef short __stdcall (*TSQLGetDescField)(void * DescriptorHandle, short RecNumber, short FieldIdentifier, void * Value, int BufferLength, int &StringLength);
typedef short __stdcall (*TSQLGetDescRec)(void * DescriptorHandle, short RecNumber, char * Name, short BufferLength, short &StringLength, short &RecType, short &RecSubType, int &Length, short &Precision, short &Scale, short &Nullable);
typedef short __stdcall (*TSQLGetDiagField)(short fHandleType, void * hHandle, short iRecNumber, short fDiagIdentifier, int &cbDiagInfo, short cbDiagInfoMax, void * pcbDiagInfo);
typedef short __stdcall (*TSQLGetDiagRec)(short fHandleType, void * hHandle, short iRecNumber, char * szSqlState, int &fNativeError, char * szErrorMsg, short cbErrorMsgMax, short &cbErrorMsg);
typedef short __stdcall (*TSQLGetEnvAttr)(void * hEnv, int Attr, void * Value, int BufLen, int &StringLength);
typedef short __stdcall (*TSQLGetFunctions)(void * hDbc, Word fFunction, Word &fExists);
typedef short __stdcall (*TSQLGetInfo)(void * hDbc, Word fInfoType, void * rgbInfoValue, short cbInfoValueMax, short &cbInfoValue);
typedef short __stdcall (*TSQLGetStmtAttr)(void * hStmt, int Attribute, void * Value, int BufferLength, int &StringLength);
typedef short __stdcall (*TSQLGetStmtOption)(void * hStmt, Word fOption, void * pvParam);
typedef short __stdcall (*TSQLGetTypeInfo)(void * hStmt, short fSqlType);
typedef short __stdcall (*TSQLNumResultCols)(void * hStmt, short &ccol);
typedef short __stdcall (*TSQLParamData)(void * hStmt, void * &gbValue);
typedef short __stdcall (*TSQLPrepare)(void * hStmt, char * szSqlStr, int cbSqlStr);
typedef short __stdcall (*TSQLPutData)(void * hStmt, void * rgbValue, int cbValue);
typedef short __stdcall (*TSQLRowCount)(void * hStmt, int &crow);
typedef short __stdcall (*TSQLSetConnectAttr)(void * hDbc, int fOption, void * pvParam, int fStrLen);
typedef short __stdcall (*TSQLSetConnectOption)(void * hDbc, Word fOption, unsigned vParam);
typedef short __stdcall (*TSQLSetCursorName)(void * hStmt, char * szCursor, short cbCursor);
typedef short __stdcall (*TSQLSetDescField)(void * DescriptorHandle, short RecNumber, short FieldIdentifier, void * Value, int BufferLength);
typedef short __stdcall (*TSQLSetDescRec)(void * DescriptorHandle, short RecNumber, short RecType, short RecSubType, int Length, short Precision, short Scale, void * Data, int &StringLength, int &Indicator);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -