Results 1 to 2 of 2

Thread: Win API

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    2

    Cool

    Hi people !

    Some time ago I asked here for help to list all the running processes in Windows 95/98 and the code I got worked perfectly [thanks Serge :-) ].
    But now I'm stuck again. The current situation is:
    I have a list of all running processes including their process id. I can open a process (with "OpenProcess") and ask to terminate it and reallay terminate it with "TerminateProcess".
    So good, so far. But I want to bring the window of this process on top, not terminate the process.

    My question now is:
    - How can I get a window handle if I got the process id
    and/or the process handle ?

    I need to get the correspondant window to a process in oder to use the functions "BringWindowToTop" or "SetActiveWindow"
    since they need a window handle, not a process handle (which I get from "OpenProcess").
    I know it is possible, the Windows Explorer does it in the task bar and all I want is to do the same. So please help me.

    Rebecca

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi,

    here's someone who seems to be attempting something similar to you, a shell replacement...


    http://forums.vb-world.net/showthrea...threadid=14160


    On this forum

    DocZaf
    {;->




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