public static int GetIconsCount(IntPtr handle, string file)
{
return ExtractIconI(handle, file, -1);
}
//Signature de la fonction ExtractIconI à ajouter dans votre code.
//[DllImport("shell32.dll", SetLastError = true, EntryPoint = "ExtractIcon")]
//static extern int ExtractIconI(IntPtr hinst, string lpszExeFileName, int nIconIndex);