Search code examples
c#sleepstandbywakeup

C# - How to Suspend to RAM and wakeup


I want to make a utility that will allow the system to use the Suspend to RAM feature and also have the ability to wakeup at a certain time.

Is this possible and how can I do this?

Code snippets would be great to look at.

Thanks


Solution

  • First step is to use win32/wmi to set the system to wake up at a specific time.

    Second step is to programmatically Hibernate the machine.

    google is your friend; c# wake hibernated system ;-)