Reputation: 2043
I need a way using the Win32 API to force shutdown my machine.
I am currently using Windows 7 but O'd really like if the code would work for Vista and XP.
Upvotes: 4
Views: 7406
Reputation: 8043
Isn't ExitWindowsEx() enough for your needs?
Upvotes: 8