IWxAdoInterface.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /************************************************************************/
  2. /* Copyright (C), 2016-2020, [IT], 保留所有权利;
  3. /* 模 块 名:;
  4. /* 描 述:;
  5. /*
  6. /* 版 本:[V];
  7. /* 作 者:[IT];
  8. /* 日 期:[9/20/2016];
  9. /*
  10. /*
  11. /* 注 意:;
  12. /*
  13. /* 修改记录:[IT];
  14. /* 修改日期:;
  15. /* 修改版本:;
  16. /* 修改内容:;
  17. /************************************************************************/
  18. #ifndef __WXADO_INTERFACE__
  19. #define __WXADO_INTERFACE__
  20. #pragma once
  21. // <string>和<vector>命名空间最好放在stdafx.h头文件中,不然可能产生编译错误;
  22. #include <string>
  23. #include <vector>
  24. using namespace std;
  25. #ifndef _UNICODE
  26. typedef string TString;
  27. #else
  28. typedef wstring TString;
  29. #endif
  30. // {FD137BAF-FE58-42ba-95E8-0BA64DCEA1D0}
  31. static const GUID IID_IWxAdoInterface =
  32. { 0xfd137baf, 0xfe58, 0x42ba, { 0x95, 0xe8, 0xb, 0xa6, 0x4d, 0xce, 0xa1, 0xd0 } };
  33. interface IWxAdoInterface:public IUnknown
  34. {
  35. public:
  36. virtual DWORD InitializePool(
  37. IN LPCTSTR lpDBType,
  38. IN LPCTSTR lpDBSource,
  39. IN CONST DWORD &dwDBPort,
  40. IN LPCTSTR lpDBAccount,
  41. IN LPCTSTR lpPassWord,
  42. IN LPCTSTR lpDBName,
  43. IN CONST INT &nMinConn = 1,
  44. IN CONST INT &nMaxConn = 5) = 0;
  45. virtual void ReleasePool() = 0;
  46. virtual BOOL ExecuteSQL( IN LPCTSTR lpExcuteSQL, IN CONST DWORD &dwTimeOut = 30000 ) = 0;
  47. virtual BOOL IsUserExist( IN LPCTSTR lpPhone, IN LPCTSTR lpPassword, OUT LPVOID lpOutValue,IN CONST DWORD &dwTimeOut = 3000 ) = 0;
  48. virtual INT QueryUserDetail(IN LPCTSTR lpPhone, IN LPVOID lpOutValue, IN CONST DWORD& dwTimeOut = 3000 ) = 0;
  49. //////////////////////////////////////////////////////////////////////////
  50. virtual BOOL AddCustomer(IN LPVOID lpCustomerInfo, IN CONST DWORD& dwTimeOut = 3000 ) = 0;
  51. virtual BOOL AddType(IN LPVOID lpStudioInfo, IN CONST DWORD& dwTimeOut = 3000) = 0;
  52. virtual BOOL AddReply(IN LPVOID lpStudioInfo, IN CONST DWORD& dwTimeOut = 3000) = 0;
  53. virtual BOOL UpdateCustomer(IN LPVOID lpCustomerInfo, IN CONST DWORD& dwTimeOut = 3000) = 0;
  54. };
  55. #endif