CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2007
    Posts
    68

    Question How to know if a window handle created by procees

    I am creating a process using CreateProcess method.
    How can i know if it creates a window handle or not?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: How to know if a window handle created by procees

    Man! This problem was discussed yesterday in your previous thread
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2007
    Posts
    68

    Re: How to know if a window handle created by procees

    Please dont misunderstand me.....

    When we create a process, we may open an application which might have a handle and which might not have a handle also.
    My question is how to know if the created application has a window or not

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: How to know if a window handle created by procees

    I don't know any way other than enumerating all windows and check the process ID they were created by.
    Victor Nijegorodov

  5. #5
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: How to know if a window handle created by procees

    Like Victor said, use EnumThreadWindows().
    Nobody cares how it works as long as it works

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