This function is used to hold the state for the file dialogs under windows. The extension supplied will be used if the user does not supply an extension for the filename.
Sets the default extension to ext
Returns the default extension.