SECIShellFolderImpl::CreateViewObject

HERSULTSECIShellFolderImpl::CreateViewObject(HWNDhwndOwner, REFIIDriid, LPVOID*ppvObj)

This method creates a new instance from the heap of your IShellView implementation class given in the template argument of this class. If the creation succeeded, it will call the new instance to QueryInterface for this method, otherwise return E_OUTOFMEMORY. When the method create the new instance of your IShellView implementation class, it pass the "this" pointer of this object and the current PIDL member m_pPidl to the constructor of your IShellView implementation class. You most probably will not need to override this method.
See IShellView::CreateViewObject in Win32 SDK for details.

Defined in: SECIShellFolderImpl.h

Return Value

HRESULT Return S_OK if succeeded, otherwise return E_OUTOFMEMORY or other error code from the QueryInterface method of your IShellView implementation class.

Parameters

hwndOwner

Not used in the default implementation.

riid

IID of the requested interface.

ppvObj

Addresss of the interface pointer requested.

See Also

SECIShellFolderImpl