EnumWindows
nella funzione callback di EnumWindows
verifichi che:
BOOL funzioneCallback( HWND handle...., LPARAM xxx)
[
DWORD curthreadCallback;
char titolo[123];
GetWindowThreadProcessId( handle_finestra_callback_corrente, &curthreadCallback );
if ( curthreadCallback == id_processo_che_cerchi ) [
GetWindowText( handle_finestra_callback_corrente, &titolo, 123);
----ora hai la caption----
ritorni FALSE;
] else
ritorn TRUE;
]