Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method is called by a file filter to open a source file.

Syntax

STDMETHODIMP ICeFileFilterSite::OpenSourceFile(
  int 
nHowToOpenFile,
  LPVOID* 
ppObj
);

Parameters

nHowToOpenFile

[in] Specifies how the source file is to be opened. It is one of the following values.

Value Description

PF_OPENFLAT

Open as a flat file.

PF_OPENCOMPOUND

Open as an OLE compound file. Note that Windows Embedded CE does not support compound files.

ppObj

[out] Pointer to an LPVOIDvariable that receives an IStreampointer if nHowToOpenFileis PF_OPENFLAT, or an IStoragepointer if nHowToOpenFileis PF_OPENCOMPOUND. This object must be released using the ICeFileFilterSite::CloseSourceFilemethod before returning to the mobile Internet browser.

Return Value

Returns NOERROR if the method completed successfully, otherwise returns HRESULT_FROM_WIN32.

Remarks

OpenSourceFileopens the file specified by the CFF_SOURCEFILEstructure. Windows Embedded CE Explorer passes a pointer to this structure in the call to the file filter's ICeFileFilter::NextConvertFilemethod.

Requirements

Header replfilt.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also