dikidera
dikidera

Reputation: 2043

How do I shutdown my PC with Win32 API in C?

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

Answers (1)

s.m.
s.m.

Reputation: 8043

Isn't ExitWindowsEx() enough for your needs?

Upvotes: 8

Related Questions