| description | Learn more about: IDBInitializeImpl Class | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| title | IDBInitializeImpl Class | ||||||||||||||||||||||||||||
| ms.date | 11/04/2016 | ||||||||||||||||||||||||||||
| f1_keywords |
|
||||||||||||||||||||||||||||
| helpviewer_keywords |
|
||||||||||||||||||||||||||||
| ms.assetid | e4182f81-0443-44f5-a0d3-e7e075d6f883 |
Provides an implementation for the IDBInitialize interface.
template <class T>
class ATL_NO_VTABLE IDBInitializeImpl : public IDBInitializeT
Your class, derived from IDBInitializeImpl.
Header: atldb.h
| Name | Description |
|---|---|
| IDBInitializeImpl | The constructor. |
| Name | Description |
|---|---|
| Initialize | Starts the provider. |
| Uninitialize | Stops the provider. |
| Name | Description |
|---|---|
| m_dwStatus | Data source flags. |
| m_pCUtlPropInfo | A pointer to implementation of DB Properties information. |
A mandatory interface on data source objects and optional interface on enumerators.
The constructor.
IDBInitializeImpl();Initializes all data members.
Initializes the data source object by preparing its property support.
STDMETHOD(Initialize)(void);See IDBInitialize::Initialize in the OLE DB Programmer's Reference.
Places the data source object in an uninitialized state by freeing internal resources such as the property support.
STDMETHOD(Uninitialize)(void);See IDBInitialize::Uninitialize in the OLE DB Programmer's Reference.
Data source flags.
DWORD m_dwStatus;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. |
A pointer to implementation object for DB Properties information.
CUtlPropInfo< T >* m_pCUtlPropInfo;OLE DB Provider Templates
OLE DB Provider Template Architecture