Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides an implementation for the IDBInitialize interface.
Syntax
template <class T>
class ATL_NO_VTABLE IDBInitializeImpl : public IDBInitialize
Parameters
T
Your class, derived from IDBInitializeImpl
.
Requirements
Header: atldb.h
Members
Methods
Name | Description |
---|---|
IDBInitializeImpl | The constructor. |
Interface Methods
Name | Description |
---|---|
Initialize | Starts the provider. |
Uninitialize | Stops the provider. |
Data Members
Name | Description |
---|---|
m_dwStatus | Data source flags. |
m_pCUtlPropInfo | A pointer to implementation of DB Properties information. |
Remarks
A mandatory interface on data source objects and optional interface on enumerators.
IDBInitializeImpl::IDBInitializeImpl
The constructor.
Syntax
IDBInitializeImpl();
Remarks
Initializes all data members.
IDBInitializeImpl::Initialize
Initializes the data source object by preparing its property support.
Syntax
STDMETHOD(Initialize)(void);
Remarks
See IDBInitialize::Initialize in the OLE DB Programmer's Reference.
IDBInitializeImpl::Uninitialize
Places the data source object in an uninitialized state by freeing internal resources such as the property support.
Syntax
STDMETHOD(Uninitialize)(void);
Remarks
See IDBInitialize::Uninitialize in the OLE DB Programmer's Reference.
IDBInitializeImpl::m_dwStatus
Data source flags.
Syntax
DWORD m_dwStatus;
Remarks
These flags specify or indicate the status of various attributes for the data source object. Contains one or more of the following enum
values:
enum DATASOURCE_FLAGS {
DSF_MASK_INIT = 0xFFFFF00F,
DSF_PERSIST_DIRTY = 0x00000001,
DSF_INITIALIZED = 0x00000010,
};
Value | Description |
---|---|
DSF_MASK_INIT |
A mask to enable restoration of the uninitialized state. |
DSF_PERSIST_DIRTY |
Set if data source object requires persistence (that is, if there have been changes). |
DSF_INITIALIZED |
Set if data source has been initialized. |
IDBInitializeImpl::m_pCUtlPropInfo
A pointer to implementation object for DB Properties information.
Syntax
CUtlPropInfo< T >* m_pCUtlPropInfo;
See also
OLE DB Provider Templates
OLE DB Provider Template Architecture