OLEDBTextProviderDS.h
上传用户:benben_wyd
上传日期:2010-02-26
资源大小:1229k
文件大小:2k
- // OLEDBTextProviderDS.h : Declaration of the COLEDBTextProviderSource
- #ifndef __COLEDBTextProviderSource_H_
- #define __COLEDBTextProviderSource_H_
- #include "resource.h" // main symbols
- #include "OLEDBTextProviderRS.h"
- /////////////////////////////////////////////////////////////////////////////
- // CDataSource
- class ATL_NO_VTABLE COLEDBTextProviderSource :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<COLEDBTextProviderSource, &CLSID_OLEDBTextProvider>,
- public IDBCreateSessionImpl<COLEDBTextProviderSource, COLEDBTextProviderSession>,
- public IDBInitializeImpl<COLEDBTextProviderSource>,
- public IDBPropertiesImpl<COLEDBTextProviderSource>,
- public IPersistImpl<COLEDBTextProviderSource>,
- public IInternalConnectionImpl<COLEDBTextProviderSource>
- {
- public:
- HRESULT FinalConstruct()
- {
- return FInit();
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_OLEDBTEXTPROVIDER)
- BEGIN_PROPSET_MAP(COLEDBTextProviderSource)
- BEGIN_PROPERTY_SET(DBPROPSET_DATASOURCEINFO)
- PROPERTY_INFO_ENTRY(ACTIVESESSIONS)
- PROPERTY_INFO_ENTRY(DATASOURCEREADONLY)
- PROPERTY_INFO_ENTRY(BYREFACCESSORS)
- PROPERTY_INFO_ENTRY(OUTPUTPARAMETERAVAILABILITY)
- PROPERTY_INFO_ENTRY(PROVIDEROLEDBVER)
- PROPERTY_INFO_ENTRY(DSOTHREADMODEL)
- PROPERTY_INFO_ENTRY(SUPPORTEDTXNISOLEVELS)
- PROPERTY_INFO_ENTRY(USERNAME)
- END_PROPERTY_SET(DBPROPSET_DATASOURCEINFO)
- BEGIN_PROPERTY_SET(DBPROPSET_DBINIT)
- PROPERTY_INFO_ENTRY(AUTH_PASSWORD)
- PROPERTY_INFO_ENTRY(AUTH_PERSIST_SENSITIVE_AUTHINFO)
- PROPERTY_INFO_ENTRY(AUTH_USERID)
- PROPERTY_INFO_ENTRY(INIT_DATASOURCE)
- PROPERTY_INFO_ENTRY(INIT_HWND)
- PROPERTY_INFO_ENTRY(INIT_LCID)
- PROPERTY_INFO_ENTRY(INIT_LOCATION)
- PROPERTY_INFO_ENTRY(INIT_MODE)
- PROPERTY_INFO_ENTRY(INIT_PROMPT)
- PROPERTY_INFO_ENTRY(INIT_PROVIDERSTRING)
- PROPERTY_INFO_ENTRY(INIT_TIMEOUT)
- END_PROPERTY_SET(DBPROPSET_DBINIT)
- CHAIN_PROPERTY_SET(COLEDBTextProviderCommand)
- END_PROPSET_MAP()
- BEGIN_COM_MAP(COLEDBTextProviderSource)
- COM_INTERFACE_ENTRY(IDBCreateSession)
- COM_INTERFACE_ENTRY(IDBInitialize)
- COM_INTERFACE_ENTRY(IDBProperties)
- COM_INTERFACE_ENTRY(IPersist)
- COM_INTERFACE_ENTRY(IInternalConnection)
- END_COM_MAP()
- public:
- };
- #endif //__COLEDBTextProviderSource_H_