IShellView::SaveViewState method

Saves the Shell's view settings so the current state can be restored during a subsequent browsing session.

Syntax


HRESULT SaveViewState();

Parameters

This method has no parameters.

Return value

Type: HRESULT

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

Remarks

The Shell view obtains a view stream by calling the GetViewStateStream method and stores the current view state in that stream.

Note to Calling Applications

Windows Explorer calls this method when it wants to save the view state for a view.

Notes to Implementers

Be sure to make the format of the data stored in the stream robust enough that different versions of the implementation can read it without error.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 4.0 or later)

See also

IShellView

 

 

Community Additions

ADD
Show:
© 2014 Microsoft