-1

I enumerated all process in a system. Now I am trying to enumerate all child windows according to a specific window. By the following step I can get the process id. Now, how can I get the main window handle(parent Window Handle) and child window handle for the particular handle?

HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION |PROCESS_VM_READ, TRUE, processID );
Cleb
  • 25,102
  • 20
  • 116
  • 151
bharau
  • 1
  • 1

1 Answers1

0

Use EnumWindows for enumerate all top level windows and EnumChildWindows to enumerate the child windows

Tony Thomas
  • 967
  • 10
  • 20