IShellView::DestroyViewWindow method (shobjidl_core.h)

Destroys the view window.

Syntax

HRESULT DestroyViewWindow();

Return value

Type: HRESULT

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

Remarks

Windows Explorer calls this method when a folder window or Windows Explorer is being closed.

Notes to Implementers

Clean up all states that represent the view, including the window and any other associated resources.

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