Change Windows ''hibernation after'' setting

I want a C# function that will change the number of minutes in Windows' "hibernate after".

In Windows 7 this is under "Control Panel"-"Hardware & Sound"-"Power Options"-"Change Plan Settings (Balance/Energy Star)"-"Change Advanced power settings"-"Sleep"-"Hibernate After"

In Windows XP under "Control Panel"- "Performance & Maintenance" - "Power options" - "System hibernates"

This function has to excecute **immediately before a windows logoff** and must work for all users (even those under minimum priveleges).

The number of minutes to hibernate for can be hardcoded into the function.

It should also store the number of minutes that was originally in the "hibernate after" setting (the original number of minutes-before any change was made) because I want the code to detect when a user **logs back on** and then changes the "hibernate after" minutes back to what it was before.

The purpose of this project is to make a users pc hibernate at a certain time but this time can change throughout the day. This time is stored in an xml file that is on the users pc and is updated by a web service.

Habilidades: Programação C#, Microsoft, Arquitetura de software, Área de trabalho do Windows

Ver mais: change advanced power settings, sleep programming, programming change, c sharp service, c# hardware programming, advanced web programming, advanced energy, windows power user, windows store, windows C, before after, hibernate windows, windows user control, windows xml file, changes windows, change windows, windows power, windows service power, change control, logoff, programming maintenance work, energy control, hardware plan, hardware windows, windows file system service

Acerca do Empregador:
( 1 comentário ) Ireland

ID do Projeto: #3039080

Premiar a:


See private message.

$85 USD em 7 dias
(53 Avaliações)

3 freelancers are bidding on average $85 for this job


See private message.

$85 USD in 7 dias
(85 Comentários)

See private message.

$85 USD in 7 dias
(44 Comentários)