MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / DllMain

Function DllMain

src/NppJsonViewer/dllmain.cpp:7–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5NppJsonPlugin g_NppJsonPlugin;
6
7BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID /*lpReserved*/)
8{
9 switch (ul_reason_for_call)
10 {
11 case DLL_PROCESS_ATTACH:
12 g_NppJsonPlugin.PluginInit(hModule);
13 break;
14
15 case DLL_PROCESS_DETACH:
16 g_NppJsonPlugin.PluginCleanup();
17 break;
18
19 case DLL_THREAD_ATTACH:
20 case DLL_THREAD_DETACH:
21 break;
22 }
23 return TRUE;
24}
25
26// Below are the mandatory function to be implemented as Notepad++ requires them
27

Callers

nothing calls this directly

Calls 2

PluginInitMethod · 0.80
PluginCleanupMethod · 0.80

Tested by

no test coverage detected