public void Hibernate(bool force = false)
{
// call hibernate
if (!CheckEntryPoint("powrprof.dll", "SetSuspendState"))
{
throw new PlatformNotSupportedException("'SetSuspendState' method missing from 'powrprof.dll'!");
}
NativeMethods.SetSuspendState(1, force ? 1 : 0, 0);
}