IHTMLOptionsHolder::openfiledlg Method
Opens the system Open File dialog box.
Syntax
HRESULT openfiledlg( VARIANT initFile, VARIANT initDir, VARIANT filter, VARIANT title, BSTR *pathName );
Parameters
- initFile
[in] VARIANT of type VT_BSTR that contains the initial file name to open.- initDir
[in] VARIANT of type VT_BSTR that contains the initial directory to open.- filter
[in] VT_BSTR structure that contains the filters (for example, *.doc, *.html, *.txt) to use in saving the file.- title
[in] VARIANT of type VT_BSTR that contains the initial title for the file dialog box.- pathName
[out] Pointer to a BSTR variable that specifies the path for the file to be opened.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also