MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / beNotified

Function beNotified

pluginManager/src/PluginManager.cpp:167–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 * This function is called, if a notification in Scantilla/Notepad++ occurs
166 */
167extern "C" __declspec(dllexport) void beNotified(SCNotification *notifyCode)
168{
169
170 switch(notifyCode->nmhdr.code)
171 {
172 case NPPN_READY:
173 /* When Notepad++ is ready, we'll kick off a thread to
174 * check if there's anything left for gpup to do.
175 * If there is, then we can invite the user if they want to
176 * do it now.
177 * Eventually, we'll do the plugins.xml download in this new thread
178 * and notify the user of any updates too.
179 Guess what, we do now.
180 */
181#ifdef ALLOW_OVERRIDE_XML_URL
182 ::MessageBox(nppData._nppHandle, _T("The Plugin Manager is running as a special build that allows override of the XML download URL. This version should be used for testing purposes ONLY."), _T("Plugin Manager"), MB_ICONEXCLAMATION);
183#endif
184 (void)::CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)startupChecks, NULL, 0, 0);
185 break;
186
187 }
188}
189
190/***
191 * messageProc()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected