WinShutdown.h 364 B

123456789101112131415
  1. #ifndef __WIN_SHUTDOWN_HEADER__
  2. #define __WIN_SHUTDOWN_HEADER__
  3. class CWinShutdown
  4. {
  5. public:
  6. CWinShutdown(void);
  7. ~CWinShutdown(void);
  8. public:
  9. static BOOL SystemShutdown(IN BOOL IsReboot = FALSE);
  10. static BOOL SystemShutdownBox(IN LPTSTR lpMsgToUser, IN DWORD dwTimeout = 30, IN BOOL bForceAppsClosed = FALSE, IN BOOL bRebootAfterShutdown = FALSE);
  11. };
  12. #endif