-
Notifications
You must be signed in to change notification settings - Fork 0
/
dllmain.cpp
40 lines (34 loc) · 1.01 KB
/
dllmain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// dllmain.cpp : Defines the entry point for the DLL application.
#include "pch.h"
#include "AfvBridge.h"
AfvBridge bridge;
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
/*
Called by Euroscope when the plugin is loaded, either on startup (if previously loaded and saved
in settings) or when manually loaded by the user.
*/
void __declspec(dllexport) EuroScopePlugInInit(EuroScopePlugIn::CPlugIn** ppPlugInInstance)
{
// Give ES the plugin instance and run the post initialisation method.
*ppPlugInInstance = &bridge;
}
/*
Called by Euroscope when the plugin is unloaded, either by the user or on exit.
*/
void __declspec(dllexport) EuroScopePlugInExit(void)
{
}