123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*
- * 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;
- }
|