OLE DB Programmer's Reference

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 provider is an OLE DB 1.0 or 1.1 provider that does not support aggregation of the view object being created.

pUnkOuter was not a null pointer, and riid was not IID_IUnknown.

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

Comments

None.