Vincent Leung .NET Tech Clips

The latest tech clips from the .NET community

Put your computer into Standby or Hibernate


[DllImport("Powrprof.dll", SetLastError = true)]
        static extern bool SetSuspendState(bool hibernate, bool forceCritical, bool disableWakeEvent);

        static void Main(string[] args)
        {
            bool bRc = SetSuspendState(false, true, false);
        }

December 20, 2007 - Posted by Vincent Leung | Tools | | No Comments Yet

No comments yet.

Leave a comment