how to find hwnds

G

Gary

static void EnumerateWindows()
{
ArrayList daprocesses = new ArrayList();

System.Diagnostics.Process[] processes;
processes =
System.Diagnostics.Process.GetProcessesByName("Darkages");

foreach (System.Diagnostics.Process instance in processes)
{
MessageBox.Show(instance.Handle.ToString());

}

}
}

how do i find hWnd's for the processes returned by the above code. The
'handle' that i've found above doesn't appear to be the right one.
 
G

Gary

Sorry NG. Google is misbehaving lately, apologies for double post. I'll
check out my previous thread, right away.

Thankyou
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top