How do I get a handle to another process (a DOS box) so I can then close it down? I have a VB app that will restart the PC if certain criteria occurs. I am trying to get the handle to this DOS box to then close either by TerminateProcess or sending WM_CLOSE via SendMessage.

Any ideas.

Thanks,
Mike