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 );