I never programmed a winapi so i have a little problem here .
I need turn off my pc from my application .
I found this example link text the
You could use ShellExecute() to call shutdown.exe