CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Location
    Las Vegas
    Posts
    539

    How 2 get a handle to a .ExE application ?

    how can I get the handle of a EXE file ?
    (even if it is not running yet)

    so I can (for example) change its title text...

    10X

    ··(Tip): 2 get code from this page - first paste it in2 FrontPage and then in2 NotePad...
    ··
    ··Best Regards - Yovav Gad
    ··EMail: [email protected]
    ··Web-Site: http://www.SuperMain.com
    Best Regards - Yovav

  2. #2
    Join Date
    Jan 2001
    Posts
    22

    Re: How 2 get a handle to a .ExE application ?

    you can't.

    Windows assigns handles when an exe is launched.
    Use API calls FindWindow to get the handle.




  3. #3
    Join Date
    Apr 2001
    Location
    Las Vegas
    Posts
    539

    Re: How 2 get a handle to a .ExE application ?

    now - if the .exe is launched
    can I tell the HANDLE if I only have the FileName ?
    OR
    can I find the FileName when I got the HANDLE

    10X 4 your time.

    ··(Tip): 2 get code from this page - first paste it in2 FrontPage and then in2 NotePad...
    ··
    ··Best Regards - Yovav Gad
    ··EMail: [email protected]
    ··Web-Site: http://www.SuperMain.com
    Best Regards - Yovav

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