IPegasusFileFilterSite::OpenSourceFile
This method is called by a file filter to open a source file.
STDMETHODIMP IPegasusFileFilterSite::OpenSourceFile(
int nHowToOpenFile,
LPVOID *ppObj);
Parameters
nHowToOpenFile
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 CE does not support compound files. ppObj
Pointer to an LPVOID variable that receives an IStream pointer if nHowToOpenFile is PF_OPENFLAT, or an IStorage pointer if nHowToOpenFile is PF_OPENCOMPOUND. This object must be released using the IPegasusFileFilterSite::CloseSourceFile method before returning to Pocket Internet Explorer.
Return Values
NOERROR indicates success. An HRESULT_FROM_WIN32 error value indicates failure.
Remarks
The IPegasusFileFilterSite::OpenSourceFile method opens the file specifed by the PFF_SOURCEFILE structure. Pocket Internet Explorer passes a pointer to this structure in the call to the file filter's IPegasusFileFilter::NextConvertFile method.
Requirements
| Runs On | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 1.0 and later | Replfilt.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
IStream, IStorage, IPegasusFileFilterSite::CloseSourceFile, IPegasusFileFilter::NextConvertFile, PFF_SOURCEFILE
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.