CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    12

    Getting ProcessID

    Does anyone know how to get the ProcessID of a running app?
    Thanx,
    Thorin



  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Getting ProcessID

    Hi,
    Because it is a running app, you can first get the window handle of that app With EnumWindows and then pass this handle to GetWindowThreadProcessId fn which returns the Thread & Process ids associated with that window.

    If the running app has no window, then i dont know ?!?!

    Ravi Kiran


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured