system.hpp 742 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _RAR_SYSTEM_
  2. #define _RAR_SYSTEM_
  3. #ifdef _WIN_ALL
  4. #ifndef BELOW_NORMAL_PRIORITY_CLASS
  5. #define BELOW_NORMAL_PRIORITY_CLASS 0x00004000
  6. #define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
  7. #endif
  8. #ifndef PROCESS_MODE_BACKGROUND_BEGIN
  9. #define PROCESS_MODE_BACKGROUND_BEGIN 0x00100000
  10. #define PROCESS_MODE_BACKGROUND_END 0x00200000
  11. #endif
  12. #ifndef SHTDN_REASON_MAJOR_APPLICATION
  13. #define SHTDN_REASON_MAJOR_APPLICATION 0x00040000
  14. #define SHTDN_REASON_FLAG_PLANNED 0x80000000
  15. #define SHTDN_REASON_MINOR_MAINTENANCE 0x00000001
  16. #endif
  17. #endif
  18. void InitSystemOptions(int SleepTime);
  19. void SetPriority(int Priority);
  20. void Wait();
  21. bool EmailFile(char *FileName,char *MailTo);
  22. void Shutdown();
  23. #endif