2017-10-26 09:07:39 +00:00
|
|
|
// ssOleDbAPI.h
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if !defined(__SSOLEDBAPI_H__)
|
|
|
|
#define __SSOLEDBAPI_H__
|
|
|
|
|
|
|
|
#include "SQLAPI.h"
|
|
|
|
|
|
|
|
// API header(s)
|
|
|
|
#include <oledb.h>
|
|
|
|
|
|
|
|
extern void AddSSOleDbSupport();
|
|
|
|
extern void ReleaseSSOleDbSupport();
|
|
|
|
|
|
|
|
// API declarations
|
|
|
|
class ssOleDbAPI : public saAPI
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ssOleDbAPI();
|
2018-07-06 16:30:37 +02:00
|
|
|
|
|
|
|
static bool& ssOleDbAPI::ProcessSQLServerErrorInfo();
|
2017-10-26 09:07:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class SQLAPI_API ssOleDbConnectionHandles : public saConnectionHandles
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ssOleDbConnectionHandles();
|
|
|
|
|
|
|
|
IDBInitialize *pIDBInitialize;
|
|
|
|
IDBCreateCommand *pIDBCreateCommand;
|
|
|
|
ITransactionLocal *pITransactionLocal;
|
|
|
|
IDBDataSourceAdmin *pIDBDataSourceAdmin;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SQLAPI_API ssOleDbCommandHandles : public saCommandHandles
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ssOleDbCommandHandles();
|
|
|
|
|
|
|
|
ICommandText *pICommandText;
|
|
|
|
IMultipleResults *pIMultipleResults;
|
|
|
|
IRowset *pIRowset;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern ssOleDbAPI g_ssOleDbAPI;
|
|
|
|
|
|
|
|
#endif // !defined(__SSOLEDBAPI_H__)
|