Extract icon from file

Extract the icon from the file and place it in Timage. The icon can be obtained both from the exe file and associated with the file type.

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