1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- /************************************************************************/
- /* Copyright (C), 2016-2020, [IT], 保留所有权利;
- /* 模 块 名:;
- /* 描 述:;
- /*
- /* 版 本:[V];
- /* 作 者:[IT];
- /* 日 期:[9/20/2016];
- /*
- /*
- /* 注 意:;
- /*
- /* 修改记录:[IT];
- /* 修改日期:;
- /* 修改版本:;
- /* 修改内容:;
- /************************************************************************/
- #ifndef __WXADO_INTERFACE__
- #define __WXADO_INTERFACE__
- #pragma once
- // <string>和<vector>命名空间最好放在stdafx.h头文件中,不然可能产生编译错误;
- #include <string>
- #include <vector>
- using namespace std;
- #ifndef _UNICODE
- typedef string TString;
- #else
- typedef wstring TString;
- #endif
- // {FD137BAF-FE58-42ba-95E8-0BA64DCEA1D0}
- static const GUID IID_IWxAdoInterface =
- { 0xfd137baf, 0xfe58, 0x42ba, { 0x95, 0xe8, 0xb, 0xa6, 0x4d, 0xce, 0xa1, 0xd0 } };
- interface IWxAdoInterface:public IUnknown
- {
- public:
- virtual DWORD InitializePool(
- IN LPCTSTR lpDBType,
- IN LPCTSTR lpDBSource,
- IN CONST DWORD &dwDBPort,
- IN LPCTSTR lpDBAccount,
- IN LPCTSTR lpPassWord,
- IN LPCTSTR lpDBName,
- IN CONST INT &nMinConn = 1,
- IN CONST INT &nMaxConn = 5) = 0;
- virtual void ReleasePool() = 0;
- virtual BOOL ExecuteSQL( IN LPCTSTR lpExcuteSQL, IN CONST DWORD &dwTimeOut = 30000 ) = 0;
- virtual BOOL IsUserExist( IN LPCTSTR lpPhone, IN LPCTSTR lpPassword, OUT LPVOID lpOutValue,IN CONST DWORD &dwTimeOut = 3000 ) = 0;
- virtual INT QueryUserDetail(IN LPCTSTR lpPhone, IN LPVOID lpOutValue, IN CONST DWORD& dwTimeOut = 3000 ) = 0;
-
- //////////////////////////////////////////////////////////////////////////
- virtual BOOL AddCustomer(IN LPVOID lpCustomerInfo, IN CONST DWORD& dwTimeOut = 3000 ) = 0;
- virtual BOOL AddType(IN LPVOID lpStudioInfo, IN CONST DWORD& dwTimeOut = 3000) = 0;
- virtual BOOL AddReply(IN LPVOID lpStudioInfo, IN CONST DWORD& dwTimeOut = 3000) = 0;
- virtual BOOL UpdateCustomer(IN LPVOID lpCustomerInfo, IN CONST DWORD& dwTimeOut = 3000) = 0;
- };
- #endif
|