The Windows Explorer displays a short description of a file’s file type when selecting it. This information can be obtained by a call to SHGetFileInfo. The structure SHFILEINFO needs to have byte-aligned members, so we need to specify Pack:=1 in its attributes.
GetFileDescription encapsulates the P/Invoke call into an easy-to-use method: