how to catch the event when the particular application process is being suspended using task manager?

Posted by Mohan on Stack Overflow See other posts from Stack Overflow or by Mohan
Published on 2010-07-02T09:06:01Z Indexed on 2011/02/13 7:25 UTC
Read the original article Hit count: 162

Filed under:

I am developing a simple application where in we have predefined quotas on usage for each user on the system.. and if the quota is up..the system should logoff of the user account.. this will happen if the application is allowed to run.. but if the user is closing the application on his own ..the app should automaticaly logoff the account..

i did exactly that in writing forced logoff code in form-closing event.. but if we are closing the app/process using the taskmanager.. the form closing event is not being called. and so the user is able to continue even if his quota of time is up.. can anybody helpme out with this..

© Stack Overflow or respective owner

Related posts about c#