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

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -