Below are the steps to enable Hibernate in Windows XP
To provide this feature programatically in our .Net windows application
- Right click on Desktop.
- Click on properties.
- Go to screen save tab.
- Click on power button
- Select Hibernate tab
- Check the checkbox “Enabled Hibernate”
- Apply the settings.
To provide this feature programatically in our .Net windows application
using System.Windows.Forms; namespace CodeKicks.WinApp.Machine { public static class MyMachineHelper { public static void DoHibernate() { //Application.SetSuspendState(PowerState.Suspend, true, false); Application.SetSuspendState(PowerState.Hibernate, true, false); } } }
No comments:
Post a Comment