I want to shutdown the PC from a c# application.The command i have used is
"-s -t 30"
But In some PCs it din't work.So i have changed the command for forceful shutdown. The new command is
"-s -f -t 30"
Now the query is,
I am persisting some information in Form.Dispose() ,So that i can start from the same state once i restart. But by changing to forceful shutdown whether Form.Dispose will be called ?
will this fix work?
Is ther any other better mechanism for the same?