locked
How can I get window name or id by process id? RRS feed

  • Question

  • Hii..
      how can i get window id or name by using process id?
    if any body knows, please help me...


    Thursday, February 28, 2008 6:10 PM

All replies

  • you can get the process main window and main window title by these:

    Process p = Process.GetProcessById(youPid);

    then p.MainWindowHandle and pMainWindowTitle is what you want.

    Tuesday, September 30, 2008 4:49 AM