1 #include <windows.h>
\r
3 #include <PowrProf.h>
\r
6 int APIENTRY _tWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
\r
7 LPTSTR lpCmdLine, int nCmdShow )
\r
9 if ( lpCmdLine[0] == _T('\0') || lpCmdLine[0] == _T('0') )
\r
10 SetSuspendState( 0, 1, 0 ); // Sleep
\r
12 SetSuspendState( 1, 1, 0 ); // Hibernate
\r