SHGetIconOverlayIndex

[DllImport("shell32.dll", CharSet = CharSet.Unicode)]
public static extern int SHGetIconOverlayIndex(
   string pszIconPath,
   int iIconIndex
);

Microsoft documentation: Link

Last updated