Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SHCreateShellFolderViewEx function

Creates a new instance of the default Shell folder view object. It is recommended that you use SHCreateShellFolderView rather than this function.

Syntax


HRESULT SHCreateShellFolderViewEx(
  _In_   CSFV *pcsfv,
  _Out_  IShellView **ppsv
);

Parameters

pcsfv [in]

Type: CSFV*

Pointer to a structure that describes the details used in creating this instance of the Shell folder view object.

ppsv [out]

Type: IShellView**

The address of an IShellView interface pointer that, when this function returns successfully, points to the new view object. On failure, this value is NULL.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

SHCreateShellFolderView is recommended over SHCreateShellFolderViewEx because of the greater flexibility of its elements to participate in various scenarios, provide new functionality to the view, and interact with other objects.

When dealing with several instances of IShellView, you might want to verify which is the default Shell folder view object. To do so, call QueryInterface on the object using IID_CDefView. This call succeeds only on the default Shell folder view object.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 5.0 or later)

See also

SHCreateShellFolderView

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.