I can make App2 a child of App1 by using
SetParent App2.hwnd, App1.hwnd
Now how do I undo this so that App2 returns back to it's original owner
SetParent App2.hwnd, App1.hwnd
Now how do I undo this so that App2 returns back to it's original owner