Files
aman-es/src/ArrivalMANagerMain.cpp
Sven Czarnian 2a0dad3c7b update comments
2021-08-10 08:09:39 +02:00

43 lines
830 B
C++

/*
* Author:
* Sven Czarnian <devel@svcz.de>
* Brief:
* Implements the entry functions for EuroScope
* Copyright:
* 2021 Sven Czarnian
* License:
* GNU General Public License v3 (GPLv3)
*/
#include "stdafx.h"
#include "PlugIn.h"
using namespace aman;
BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
(void)module;
(void)reserved;
switch (reason) {
case DLL_PROCESS_ATTACH:
case DLL_PROCESS_DETACH:
default:
break;
}
return TRUE;
}
static PlugIn* __plugin = nullptr;
void __declspec(dllexport) EuroScopePlugInInit(EuroScopePlugIn::CPlugIn** ppPlugInInstance) {
*ppPlugInInstance = __plugin = new PlugIn();
}
void __declspec(dllexport) EuroScopePlugInExit() {
if (nullptr != __plugin)
delete __plugin;
__plugin = nullptr;
}