IShellView::SaveViewState method (shobjidl_core.h)
Saves the Shell's view settings so the current state can be restored during a subsequent browsing session.
Syntax
HRESULT SaveViewState();
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
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) |