コード例 #1
0
ファイル: main.c プロジェクト: lei720/processhacker2
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();
    }
}
コード例 #2
0
ファイル: updater.c プロジェクト: john-peterson/processhacker
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();
    }
}