| description | Learn more about: IOpenRowsetImpl Class | ||||||
|---|---|---|---|---|---|---|---|
| title | IOpenRowsetImpl Class | ||||||
| ms.date | 11/04/2016 | ||||||
| f1_keywords |
|
||||||
| helpviewer_keywords |
|
||||||
| ms.assetid | d259cedc-1db4-41cf-bc9f-5030907ab486 |
Provides implementation for the IOpenRowset interface.
template <class SessionClass>
class IOpenRowsetImpl : public IOpenRowsetSessionClass
Your class, derived from IOpenRowsetImpl.
Header: atldb.h
| Name | Description |
|---|---|
| CreateRowset | Creates a rowset object. Not called directly by user. |
| OpenRowset | Opens and returns a rowset that includes all rows from a single base table or index. (Not in ATLDB.H) |
The IOpenRowset interface is mandatory for a session object. It opens and returns a rowset that includes all rows from a single base table or index.
Creates a rowset object. Not called directly by user. See IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.
template template <class RowsetClass>
HRESULT CreateRowset(IUnknown* pUnkOuter,
DBID* pTableID,
DBID* pIndexID,
REFIID riid,
ULONG cPropertySets,
DBPROPSET rgPropertySets[],
IUnknown** ppRowset,
RowsetClass*& pRowsetObj);RowsetClass
A template class member representing the user's rowset class. Usually generated by the wizard.
pRowsetObj
[out] A pointer to a rowset object. Typically this parameter is not used, but it can be used if you must perform more work on the rowset before passing it to a COM object. The lifetime of pRowsetObj is bound by ppRowset.
For other parameters, see IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.
Opens and returns a rowset that includes all rows from a single base table or index.
HRESULT OpenRowset(IUnknown* pUnkOuter,
DBID* pTableID,
DBID* pIndexID,
REFIID riid,
ULONG cPropertySets,
DBPROPSET rgPropertySets[],
IUnknown** ppRowset);See IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.
This method is not found in ATLDB.H. It is created by the ATL Object Wizard when you create a provider.
OLE DB Provider Templates
OLE DB Provider Template Architecture