IFileSaveDialog::GetFileTypeIndex Method
Gets the currently selected file type.
Syntax
HRESULT GetFileTypeIndex( UINT *piFileType );
Parameters
piFileType
[out]A pointer to a UINT value that receives the index of the selected file type in the file type array passed to IFileDialog::SetFileTypes in its cFileTypes parameter.
Note This is a one-based index rather than zero-based.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
IFileSaveDialog::GetFileTypeIndex can be called either while the dialog is open or after it has closed.