VC实现关机、重启、休眠功能 可以调用ExitWindowsEx函数实现关机、重启功能,调用SetSystemPowerState API实现休眠功能。 ExitWindowsEx函数可以注销当前用户、关闭系统和重启系统。函数原型如下: BOOL ExitWindowsEx( UINT uFlags, //shutdown operation DWORD dwReserv