IShellFolder::CreateViewObjectIShellFolder::CreateViewObject*
*Contents  *Index  *Topic Contents
*Previous Topic: IShellFolder::CompareIDs
*Next Topic: IShellFolder::EnumObjects

IShellFolder::CreateViewObject


HRESULT CreateViewObject(
    HWND hwndOwner,
    REFIID riid,
    LPVOID *ppvOut
   );	

Creates a view object of a folder.

hwndOwner
Handle to the owner window from which to create the view object.
riid
Identifier of the interface to return.
ppvOut
Address of a pointer to the view object.

It is important to remember that the COM object created by CreateViewObject must be a different object than the shell folder object. Windows Explorer may call this method more than once to create multiple view objects, and each of these must behave as independent objects. A new view object must be created for each call.

See also IShellFolder


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.