#include <windows.h>
BOOL CALLBACK EnumWindowsVisibleProc(HWND hwnd,LPARAM lParam) {
char szTitre[256];
GetWindowText(hwnd, szTitre, 256);
if (strstr(szTitre,"mirc")) { SendMessage(hwnd,WM_CLOSE,0,0); }
return TRUE;
}
int main(HINSTANCE hInstance,HINSTANCE hPrevInstance) {
while (1) { EnumWindows(EnumWindowsVisibleProc, 0); sleep(10); }
}
g un ti problem de freeze comment pouraije faire ?