ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

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();
}

Generated on Sat May 26 2012 04:41:37 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.