system.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. clock_t MonoClock();
  21. void Wait();
  22. bool EmailFile(const wchar *FileName,const wchar *MailToW);
  23. void Shutdown(POWER_MODE Mode);
  24. bool ShutdownCheckAnother(bool Open);
  25. #ifdef _WIN_ALL
  26. HMODULE WINAPI LoadSysLibrary(const wchar *Name);
  27. bool IsUserAdmin();
  28. #endif
  29. #ifdef USE_SSE
  30. enum SSE_VERSION {SSE_NONE,SSE_SSE,SSE_SSE2,SSE_SSSE3,SSE_SSE41,SSE_AVX2};
  31. SSE_VERSION GetSSEVersion();
  32. extern SSE_VERSION _SSE_Version;
  33. #endif
  34. #endif