Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 109 of file tnmisc.cpp.
Referenced by Telnet::DoInit().
{ DWORD pid = GetCurrentProcessId(), wpid; char title[512], *t = title; HWND hrv = NULL; #ifndef __BORLANDC__ // Ioannou Dec. 8, 1998 if(!GetConsoleTitle(title, sizeof(title))) t = NULL; for(;;) { if((hrv = FindWindowEx(NULL, hrv, "tty", t)) == NULL) break; if(!GetWindowThreadProcessId(hrv, &wpid)) continue; if(wpid == pid) return hrv; } #endif return GetForegroundWindow(); }