WinNUT-Client
WinNUT-Client copied to clipboard
Hibernate and Standby do not work in Windows 10/11
In WinNut.vb, the Windows SetSystemPowerState function is used to initiate Hibernation or Standby if one of these is the selected method in WinNut. This function seems to be deprecated and doesn't work in Windows 10/11. Microsoft recommends using SetSuspendState instead.
Reference: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setsystempowerstate
Workaround: Only select Shutdown as the shutdown method in WinNUT. This calls shutdown.exe, which works.
I think this post could be the answer to a previously mentioned one?
#89