0

Hey
so as i mentioned here http://www.daniweb.com/forums/post840142.html i need to check if a process is responding by using sendmessage
however i have no idea how to get the hwnd because i start the process using system::diagnostics::process

process->StartInfo->WorkingDirectory=sinfo->workingDirectory;
	   process->StartInfo->Arguments=" -exec "+sinfo->init+" -port "+sinfo->port+" "+sinfo->options;
	   process->StartInfo->FileName = sinfo->exe;
	   process->StartInfo->UseShellExecute=true;

so this program starts in a console, so does it not have a handle?

its a really weird program... a halo server, the program takes over the console window.... so is it possible to send it a message?

how do i get the hwnd from pid?
process->Mainwindowtitle and mainwindowhandle dont return anything

yea im confusing myself... understand?

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by seanhunt
0

I'm not a .NET programmer but according to the documentation:

IntPtr hwnd = process->Handle;

Which compiles successfully as a CLR console program.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.