IRowsetView::CreateView

Creates a view.

HRESULT CreateView (
   IUnknown *      pUnkOuter,
   REFIID            riid,
   IUnknown **      ppView);

Parameters

pUnkOuter

[in]
A pointer to the controlling IUnknown interface if the view is being created as part of an aggregate. It is a null pointer if the view is not part of an aggregate.

riid

[in]
The IID of the interface requested on the view.

ppView

[out]
A pointer to memory in which to return the interface pointer on the newly created view.

Return Code

S_OK
The method succeeded.

E_FAIL
A provider-specific error occurred.

E_INVALIDARG
ppView was a null pointer.

E_NOINTERFACE
The view did not support the interface specified in riid.

E_OUTOFMEMORY
The provider did not have enough memory to create the view.

DB_E_NOAGGREGATION
pUnkOuter was not a null pointer and the view being created does not support aggregation.

pUnkOuter was non-null and riid was not IID_Unknown.

E_UNEXPECTED
ITransaction::Commit or ITransactionAbort was called and the object is in a zombie state.

Comments

None.