i need to close all open applications in windows while my application closes how to i do that using c#
i am implementing login/logoff functionality in my application itself instead of windows login/logoff so that i need to close all applications while logoff clicked in my application and pass control to my application after that