Hi, is it possible to get the hWnd of a program, say Notepad.exe just from the name "Notepad.exe"? Or do I need more?

I want to be able to destroy a window without ever looking at it's caption or anything, just the process name eg. "Notepad.exe"

Is this possible? If so, how would I get the hWnd. (I already know how to destroy it...he he)


Thanx you guys,

Scott