static VOID NTAPI MainWindowShowingCallback( _In_opt_ PVOID Parameter, _In_opt_ PVOID Context ) { // Check if the user want's us to auto-check for updates. if (PhGetIntegerSetting(SETTING_NAME_AUTO_CHECK)) { // All good, queue up our update check. StartInitialCheck(); } }
static VOID NTAPI MainWindowShowingCallback( __in_opt PVOID Parameter, __in_opt PVOID Context ) { // Add our menu item, 4 = Help menu. PhPluginAddMenuItem(PluginInstance, 4, NULL, UPDATE_MENUITEM, L"Check for Updates", NULL); // Check if the user want's us to auto-check for updates. if (PhGetIntegerSetting(SETTING_AUTO_CHECK)) { // All good, queue up our update check. StartInitialCheck(); } }