How to kill application using c# -
here's situation: i'm using c# , opening multiple pdf files. when watching taskmanager, see each new file open shows in applications tab, while there 2 adobe32 processes. if getprocesses name, see 2 processes , if drill down them, able identify 1 of pdf's have opened mainwindow title name, unable find other. goal able terminate whichever window choose without having close both of them. appreciated.
you need use p-invoke window handle ids:
closewindow:
http://www.pinvoke.net/default.aspx/user32.closewindow
or destroywindow:
http://www.pinvoke.net/default.aspx/user32/destroywindow.html
Comments
Post a Comment