IFileViewerW::ShowInitialize method (shlobj.h)

Allows a file viewer to determine whether it can display a file and, if it can, to perform initialization operations before showing the file.

Syntax

HRESULT ShowInitialize(
  LPFILEVIEWERSITE lpfsi
);

Parameters

lpfsi

A pointer to an IFileViewerSite interface. A file viewer uses this interface to retrieve the handle to the current pinned window or to specify a new pinned window.

Return value

The Shell calls this method before the IFileViewerW::Show method. The Shell specifies the name of the file to display by calling the file viewer's IPersistFile::Load method.

Requirements

Requirement Value
Header shlobj.h