Réponse acceptée !
ça a marché ! ! ! avec EnumWindows.
Voici le code qui m'a permi d'afficher tous les handle avec les titres des fenêtres.
Les fenêtres qui apparaissaient avec le même handle avec la fonction FindWindow, ont ici des handle bien distincts:
La fonction :
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam)
{
char caption[255];
HWND hwndTable;
if(IsWindowVisible(hwnd))
{
printf("handle %X\n", hwnd);
GetWindowText(hwnd,caption,255);
printf("titre : %s\n\n", caption);
}
return TRUE;
}
Appel à la fonction:
EnumWindows(EnumWindowsProc, 0);
Merci pour votre aide,
A+ Lustuc