IFileViewer::Show method

Displays a file. The Shell specifies the name of the file to display by calling the file viewer's IPersistFile::Load method.

Syntax


HRESULT Show(
  [in] LPFVSHOWINFO pvsi
);

Parameters

pvsi [in]

Type: LPFVSHOWINFO

A pointer to an FVSHOWINFO structure to contain information that the file viewer uses to display the file. A file viewer can return information to the Shell by modifying the members of the structure.

Return value

Type: HRESULT

Returns S_OK if successful, or E_UNEXPECTED if the IFileViewer::ShowInitialize method was not called before IFileViewer::Show.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlobj.h

DLL

Shell32.dll (version 4.0 or later)

See also

IFileViewer

 

 

Show: