Get the icon associated with a file extension

By the file extension, we get the icon associated with file type and place it in Timage.

Options

filePath - path to the file

icoSize - icon size

  • SHGFI_SMALLICON - 16x16
  • SHGFI_LARGEICON - 32x32
Result

A handle to the icon, or 0 on failure.

Author: admin