David Hedberg : comdlg32: ::SetFileTypeIndex and :: GetFileTypeIndex uses a one-based index.