MAPIProviderDS.h
上传用户:benben_wyd
上传日期:2010-02-26
资源大小:1229k
文件大小:2k
- // MAPIProviderDS.h : Declaration of the CMAPIProviderSource
- #ifndef __CMAPIProviderSource_H_
- #define __CMAPIProviderSource_H_
- #include "resource.h" // main symbols
- #include "MAPIProviderRS.h"
- /////////////////////////////////////////////////////////////////////////////
- // CDataSource
- class ATL_NO_VTABLE CMAPIProviderSource :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CMAPIProviderSource, &CLSID_MAPIProvider>,
- public IDBCreateSessionImpl<CMAPIProviderSource, CMAPIProviderSession>,
- public IDBInitializeImpl<CMAPIProviderSource>,
- public IDBPropertiesImpl<CMAPIProviderSource>,
- public IPersistImpl<CMAPIProviderSource>,
- public IInternalConnectionImpl<CMAPIProviderSource>
- {
- public:
- HRESULT FinalConstruct()
- {
- return FInit();
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_MAPIPROVIDER)
- BEGIN_PROPSET_MAP(CMAPIProviderSource)
- 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(CMAPIProviderCommand)
- END_PROPSET_MAP()
- BEGIN_COM_MAP(CMAPIProviderSource)
- 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 //__CMAPIProviderSource_H_