IShellView::GetCurrentInfo method (shobjidl_core.h)

Gets the current folder settings.

Syntax

HRESULT GetCurrentInfo(
  LPFOLDERSETTINGS pfs
);

Parameters

pfs

Type: LPFOLDERSETTINGS

The address of a FOLDERSETTINGS structure to receive the settings.

Return value

Type: HRESULT

Returns S_OK if successful, or a COM-defined error value otherwise.

Remarks

Windows Explorer uses this method to query the view for standard settings.

Note to Calling Applications

This method is used to retrieve the current view settings of the view.

Notes to Implementers

Return as many of the settings as apply. This is intended to maintain the same basic settings when the user browses from view to view. For example, if the user sets the Details view, that view should be maintained as the user goes from one folder to the other in Windows Explorer mode.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 4.0 or later)

See also

IShellView