Get HWND from a process HANDLE

Hi
How can I get HWND from a process HANDLE?

Comments

  • : Hi
    : How can I get HWND from a process HANDLE?
    :

    Find the ID of your process with GetProcessID, then use EnumWindow to scan through windows and GetWindowThreadProcessId to get the process id that you can confront with your process'.
    Note that a process can have more than one "main window" associated with it.

    [hr]
    [italic]How beautiful, if Sorrow had not made sorrow more beautiful than Beauty itself.[/italic]
    JOHN KEATS


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion