ArrivalMANagerMain.cpp 830 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Author:
  3. * Sven Czarnian <devel@svcz.de>
  4. * Brief:
  5. * Implements the entry functions for EuroScope
  6. * Copyright:
  7. * 2021 Sven Czarnian
  8. * License:
  9. * GNU General Public License v3 (GPLv3)
  10. */
  11. #include "stdafx.h"
  12. #include "PlugIn.h"
  13. using namespace aman;
  14. BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
  15. (void)module;
  16. (void)reserved;
  17. switch (reason) {
  18. case DLL_PROCESS_ATTACH:
  19. case DLL_PROCESS_DETACH:
  20. default:
  21. break;
  22. }
  23. return TRUE;
  24. }
  25. static PlugIn* __plugin = nullptr;
  26. void __declspec(dllexport) EuroScopePlugInInit(EuroScopePlugIn::CPlugIn** ppPlugInInstance) {
  27. *ppPlugInInstance = __plugin = new PlugIn();
  28. }
  29. void __declspec(dllexport) EuroScopePlugInExit() {
  30. if (nullptr != __plugin)
  31. delete __plugin;
  32. __plugin = nullptr;
  33. }