for example, i have

Code:
#include<stdio.h>
#include<windows.h>

void main(int argc, char *argv[]){
	ShellExecute(NULL,"open","ping.exe","10.0.0.2","",4);
}
i want it to launch in the same window, i think i'd do that by instead of putting "NULL" for the handle, i put the handle for my app...but how do i get that? does c++ have an app.<x> for the console?

thanks