Hi to all.

In my application i need to check for the password to activate my application.If the password entered is wrong then i need to shut down my system.
I use
System("shutdown -s");
but its not working.
Is there any other command or function to do it?