stdafx.h 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently, but
  3. // are changed infrequently
  4. //
  5. #pragma once
  6. #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
  7. #define _CRT_SECURE_NO_WARNINGS
  8. #define DLL_SOUI
  9. #include <souistd.h>
  10. #include <core/SHostDialog.h>
  11. #include <control/SMessageBox.h>
  12. #include <control/souictrls.h>
  13. #include <res.mgr/sobjdefattr.h>
  14. #include <com-cfg.h>
  15. #include "resource.h"
  16. #define R_IN_CPP //定义这个开关来
  17. #include "res\resource.h"
  18. using namespace SOUI;
  19. #include "SShellNotifyIcon.h"
  20. #include <event/NotifyCenter.h>
  21. #include <helper/SCriticalSection.h>
  22. #include <interface/STaskLoop-i.h>
  23. #include <helper/SFunctor.hpp>
  24. #include "../__INCLUDE/SVscrollbar.h"
  25. #include "../__INCLUDE/AsynFunctionT.hpp"
  26. // C++/WinRT
  27. #include <winrt/base.h>
  28. #include <winrt/Windows.Foundation.h>
  29. #include <windows.h>
  30. #include <iostream>
  31. #include <vector>
  32. #include <iterator>
  33. #include <filesystem>
  34. #include <algorithm>
  35. #include <wil/wrl.h>
  36. #include <wil/result_macros.h>
  37. #include <Shobjidl.h>
  38. #include <Shlobj.h>
  39. #include <conio.h>
  40. #include <chrono>
  41. #include <winhttp.h>
  42. #pragma comment(lib, "winhttp.lib")
  43. #pragma comment(lib, "Shell32.lib")
  44. #include "comm.h"
  45. #include "Util.hpp"
  46. #include "CApp.h"
  47. #include "CProcessManager.h"
  48. #include "ProcessManager.hpp"
  49. #include "PortableModeUtil.hpp"
  50. #include <nlohmann/json.hpp>
  51. #define JSON_TO(k) j[#k] = value.k;
  52. #define JSON_FROM(k) j.at(#k).get_to(value.k);
  53. #define JSON_TRY_FROM(k) try { j.at(#k).get_to(value.k); } catch (...) {}
  54. #define JSON_TRY_FROM_LOG(k) try { j.at(#k).get_to(value.k); } CATCH_LOG()
  55. #include "ClashModel.h"
  56. #include "ClashApi.h"
  57. //#include "../__INCLUDE/BaseModule.h"
  58. //
  59. //#ifdef _DEBUG
  60. //#ifdef _WIN64
  61. //#pragma comment(lib,"..\\__LIB\\x64\\Debug\\Base.lib")
  62. //#else
  63. //#pragma comment(lib,"..\\__LIB\\Debug\\Base.lib")
  64. //#endif
  65. //#else
  66. //
  67. //#ifdef _WIN64
  68. //#pragma comment(lib,"..\\__LIB\\x64\\Release\\Base.lib")
  69. //#else
  70. //#pragma comment(lib,"..\\__LIB\\Release\\Base.lib")
  71. //#endif
  72. //
  73. //
  74. //#endif