introduce the plugin definition

This commit is contained in:
Sven Czarnian
2021-08-09 22:28:00 +02:00
parent 0035c97c20
commit 18d285031c
5 changed files with 155 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
/*
* Author:
* Sven Czarnian <devel@svcz.de>
* Brief:
* Implements the entry functions for EuroScope
* Copyright:
* 2020-2021 Sven Czarnian
* License:
* GNU General Public License v3 (GPLv3)
*/
#include "stdafx.h"
#include "PlugIn.h"
using namespace arrivalmanager;
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;
}