How to disconnect my computer using Win32 API in C?

I need a way to use the Win32 API to force my machine to stop.

I am currently using Windows 7, but I really like it if the code worked on Vista and XP.

+4
source share
1 answer

Isn't ExitWindowsEx () enough for your needs?

+8
source

Source: https://habr.com/ru/post/1382136/


All Articles