| 5 | NppJsonPlugin g_NppJsonPlugin; |
| 6 | |
| 7 | BOOL 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 |
nothing calls this directly
no test coverage detected