المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Closing only the applications, not the windows processes



C# Programming
06-20-2010, 11:50 PM
hi, I'm able to close all running applications by using; Process.Kill() or CloseMainWindow() But then it closes everything. Also, ProcessName property doesn't help because I don't know the names of applications. What I'm trying to do is to close only the applications like; browser, messenger, games, file browser etc. Because before a new user starts using the pc, there should be no running application, so that the user makes a fresh start. Any clue about it is welcomed, thanks.