I need a way to open a generic file with the default application for that file.
For example: if the file is an HTML file, then it will be opened with Internet Explorer; if the file is an image (JPG, BMP, etc.), then it will be opened with "Paint"; if the file is an MP3 file, then it will be opened with Windows Media Player.
How can I do this ? What function or API do I have to use ?