Opens the system open file dialog window.
Syntax
HRESULT openfiledlg( VARIANT initFile, VARIANT initDir, VARIANT filter, VARIANT title, BSTR *pathName );
Parameters
- initFile
- VARIANT structure that contains the initial file name to open.
- initDir
- VARIANT structure that contains the initial directory to open.
- filter
- VARIANT structure that contains the filters to use in opening the file.
- title
- VARIANT structure that contains the initial title for the file dialog window.
- pathName
- Address of a string (BSTR) variable that specifies the path for the file to be opened.
Return Value
Returns S_OK if successful, or an error code otherwise.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
See Also
savefiledlg