/*---------------------------------------- win32 console application by Yamato 1997 little utility to see all windows in the system, even those hidden you can unhide any window you want -----------------------------------------*/ #include #include #include #define MAXWINDS 300 #define MAXLINES 23 typedef struct { int status; HWND hwnd; char text[100]; } stat; stat winds[MAXWINDS]; int count=0; BOOL CALLBACK myWinProc(HWND hwnd, LPARAM lParam) { char title[100]; GetWindowText(hwnd,title,99); //printf("hwnd=%d, title=%s\n",hwnd, title ); winds[count].hwnd = hwnd; strcpy(winds[count].text, title); count++; return TRUE; } void main() { //HWND hDesktop; int i,idx; int c; if(EnumWindows( (WNDENUMPROC)myWinProc, 77) == 0) { printf("failed\n"); return; } printf("No\tStatus\tHwnd\tName\n"); for(i=0;i