Getting Child Windows Using Process.GetProcess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #16
    Unless you can find something in the WMI stuff, you'll probably just have to poll it and look for when the number of windows changes?

    Comment

    • kevinn7
      New Member
      • Jul 2009
      • 8

      #17
      Originally posted by Plater
      Unless you can find something in the WMI stuff, you'll probably just have to poll it and look for when the number of windows changes?
      oh my.. that means a revamp of the above code .. im just so close. the exit time pops up but its for each poc.id
      i need it to be for each kvp.value. DAMNNNNNN

      Comment

      • kevinn7
        New Member
        • Jul 2009
        • 8

        #18
        Originally posted by Plater
        Unless you can find something in the WMI stuff, you'll probably just have to poll it and look for when the number of windows changes?
        thinking abt it, even so, how do i make it pop up the exit time? i cant enable raising events on windows.

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #19
          All I can come up with is polling. Every X amount of time you check to see how many windows are open? Doesn't seem like a very good solution though.

          Comment

          • kevinn7
            New Member
            • Jul 2009
            • 8

            #20
            Originally posted by Plater
            All I can come up with is polling. Every X amount of time you check to see how many windows are open? Doesn't seem like a very good solution though.
            *sigh* this is bad. thanks anyway =)

            Comment

            • Jeigh C

              #21
              Nukefusion,
              This did exactly what I needed it to do. Very helpful.
              Being that most people say to avoid the Win32 API's from .NET, it'd be helpful if there was a way to do this within .NET itself - but either way, this was exactly what I was looking for.
              Thank you!

              Comment

              Working...