OLEDBTextProviderDS.h
上传用户:benben_wyd
上传日期:2010-02-26
资源大小:1229k
文件大小:2k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // OLEDBTextProviderDS.h : Declaration of the COLEDBTextProviderSource
  2. #ifndef __COLEDBTextProviderSource_H_
  3. #define __COLEDBTextProviderSource_H_
  4. #include "resource.h"       // main symbols
  5. #include "OLEDBTextProviderRS.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CDataSource
  8. class ATL_NO_VTABLE COLEDBTextProviderSource : 
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<COLEDBTextProviderSource, &CLSID_OLEDBTextProvider>,
  11. public IDBCreateSessionImpl<COLEDBTextProviderSource, COLEDBTextProviderSession>,
  12. public IDBInitializeImpl<COLEDBTextProviderSource>,
  13. public IDBPropertiesImpl<COLEDBTextProviderSource>,
  14. public IPersistImpl<COLEDBTextProviderSource>,
  15. public IInternalConnectionImpl<COLEDBTextProviderSource>
  16. {
  17. public:
  18. HRESULT FinalConstruct()
  19. {
  20. return FInit();
  21. }
  22. DECLARE_REGISTRY_RESOURCEID(IDR_OLEDBTEXTPROVIDER)
  23. BEGIN_PROPSET_MAP(COLEDBTextProviderSource)
  24. BEGIN_PROPERTY_SET(DBPROPSET_DATASOURCEINFO)
  25. PROPERTY_INFO_ENTRY(ACTIVESESSIONS)
  26. PROPERTY_INFO_ENTRY(DATASOURCEREADONLY)
  27. PROPERTY_INFO_ENTRY(BYREFACCESSORS)
  28. PROPERTY_INFO_ENTRY(OUTPUTPARAMETERAVAILABILITY)
  29. PROPERTY_INFO_ENTRY(PROVIDEROLEDBVER)
  30. PROPERTY_INFO_ENTRY(DSOTHREADMODEL)
  31. PROPERTY_INFO_ENTRY(SUPPORTEDTXNISOLEVELS)
  32. PROPERTY_INFO_ENTRY(USERNAME)
  33. END_PROPERTY_SET(DBPROPSET_DATASOURCEINFO)
  34. BEGIN_PROPERTY_SET(DBPROPSET_DBINIT)
  35. PROPERTY_INFO_ENTRY(AUTH_PASSWORD)
  36. PROPERTY_INFO_ENTRY(AUTH_PERSIST_SENSITIVE_AUTHINFO)
  37. PROPERTY_INFO_ENTRY(AUTH_USERID)
  38. PROPERTY_INFO_ENTRY(INIT_DATASOURCE)
  39. PROPERTY_INFO_ENTRY(INIT_HWND)
  40. PROPERTY_INFO_ENTRY(INIT_LCID)
  41. PROPERTY_INFO_ENTRY(INIT_LOCATION)
  42. PROPERTY_INFO_ENTRY(INIT_MODE)
  43. PROPERTY_INFO_ENTRY(INIT_PROMPT)
  44. PROPERTY_INFO_ENTRY(INIT_PROVIDERSTRING)
  45. PROPERTY_INFO_ENTRY(INIT_TIMEOUT)
  46. END_PROPERTY_SET(DBPROPSET_DBINIT)
  47. CHAIN_PROPERTY_SET(COLEDBTextProviderCommand)
  48. END_PROPSET_MAP()
  49. BEGIN_COM_MAP(COLEDBTextProviderSource)
  50. COM_INTERFACE_ENTRY(IDBCreateSession)
  51. COM_INTERFACE_ENTRY(IDBInitialize)
  52. COM_INTERFACE_ENTRY(IDBProperties)
  53. COM_INTERFACE_ENTRY(IPersist)
  54. COM_INTERFACE_ENTRY(IInternalConnection)
  55. END_COM_MAP()
  56. public:
  57. };
  58. #endif //__COLEDBTextProviderSource_H_