Re: Getting the HWND from executable

From: Boris (bguzner_at_hotmail.com)
Date: 12/22/04

  • Next message: Boris: "Re: SDK icons for distribution"
    Date: Tue, 21 Dec 2004 19:14:29 -0500
    
    

    It is possible assuming that your exe is running and it does have a window.

    One of the ways to do it that I know of is based on enumerating all Top
    level windows and comparing the executable name with your given executable
    name. You would use functions :

    EnumWindows, EnumWindowsProc or EnumChildWindows, EnumChildProc to enumerate
    windows
    Then for each window call
    GetWindowModuleFileName(pWnd->GetSafeHwnd(), szPath, MAX_PATH);

    Let me know if this helps at all

    --
    - Boris
    www.RegmagiK.com, Registry Editor that works for me
    "RedDragon2kx" <reddragon2kx@hotmail.com> wrote in message
    news:7bae41f5ee91436a11407ba9b768745c@localhost.talkaboutsoftware.com...
    > Hi Guys
    >
    > I just have the executables name and now i want to get the HWND of it. How
    > can i do so ? is it possible ?
    > Need help ! ???
    >
    > MFG
    > RedDragon2kx
    >
    

  • Next message: Boris: "Re: SDK icons for distribution"

    Relevant Pages


    Loading