Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. process and hwnd

process and hwnd

Scheduled Pinned Locked Moved Managed C++/CLI
comhelptutorialquestion
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    imran_rafique
    wrote on last edited by
    #1

    how to get window hwnd if have its process id ? how to get total no of windows that a process created ? and how to get its active window? if i want to get wheather a process is performing processing or not what to do? plz help. r00d0034@yahoo.com

    I 1 Reply Last reply
    0
    • I imran_rafique

      how to get window hwnd if have its process id ? how to get total no of windows that a process created ? and how to get its active window? if i want to get wheather a process is performing processing or not what to do? plz help. r00d0034@yahoo.com

      I Offline
      I Offline
      ian mariano
      wrote on last edited by
      #2

      If you need to see if a process is doing work, use the Task Manager and find it. If you have the process ID, you can probably get the Thread ID of the process' main thread. Use GetGUIThreadInfo using that thread ID to retrieve the information. The GUITHREADINFO structure filled by the function will contain the HANDLE of the active window. From there, you can ennumerate the Child Windows. GetGUIThreadInfo reference. -- ian


      http://www.ian-space.com/

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups