file type:
GetFileType
SHGetFileInfo
Displaying the associated icons and descriptions for files and folders
Finding the application, icon and friendly names associated with a file name
GDI+: creating scaled copy of image file
How to display a user-defined icon in the MessageBox dialog
How to find the application associated with a file name
How to obtain Content-Type value for a file type from the System Registry
How to view system icons for the classes installed on the local machine