예제 #1
0
VOID EtRegisterNotifyIcons(
    VOID
    )
{
    PH_NF_ICON_REGISTRATION_DATA data;

    data.MessageCallback = NULL;

    data.UpdateCallback = EtpGpuIconUpdateCallback;
    data.MessageCallback = EtpGpuIconMessageCallback;
    PhPluginRegisterIcon(
        PluginInstance,
        GPU_ICON_ID,
        NULL,
        L"&GPU history",
        PH_NF_ICON_SHOW_MINIINFO | (EtGpuEnabled ? 0 : PH_NF_ICON_UNAVAILABLE),
        &data
        );

    data.UpdateCallback = EtpDiskIconUpdateCallback;
    data.MessageCallback = EtpDiskIconMessageCallback;
    PhPluginRegisterIcon(
        PluginInstance,
        DISK_ICON_ID,
        NULL,
        L"&Disk history",
        PH_NF_ICON_SHOW_MINIINFO | (EtEtwEnabled ? 0 : PH_NF_ICON_UNAVAILABLE),
        &data
        );

    data.UpdateCallback = EtpNetworkIconUpdateCallback;
    data.MessageCallback = EtpNetworkIconMessageCallback;
    PhPluginRegisterIcon(
        PluginInstance,
        NETWORK_ICON_ID,
        NULL,
        L"&Network history",
        PH_NF_ICON_SHOW_MINIINFO | (EtEtwEnabled ? 0 : PH_NF_ICON_UNAVAILABLE),
        &data
        );
}
예제 #2
0
VOID EtRegisterNotifyIcons(
    VOID
    )
{
    PH_NF_ICON_REGISTRATION_DATA data;

    data.MessageCallback = NULL;

    data.UpdateCallback = EtpGpuIconUpdateCallback;
    PhPluginRegisterIcon(
        PluginInstance,
        GPU_ICON_ID,
        NULL,
        L"GPU History",
        EtGpuEnabled ? 0 : PH_NF_ICON_UNAVAILABLE,
        &data
        );

    data.UpdateCallback = EtpDiskIconUpdateCallback;
    PhPluginRegisterIcon(
        PluginInstance,
        DISK_ICON_ID,
        NULL,
        L"Disk History",
        EtEtwEnabled ? 0 : PH_NF_ICON_UNAVAILABLE,
        &data
        );

    data.UpdateCallback = EtpNetworkIconUpdateCallback;
    PhPluginRegisterIcon(
        PluginInstance,
        NETWORK_ICON_ID,
        NULL,
        L"Network History",
        EtEtwEnabled ? 0 : PH_NF_ICON_UNAVAILABLE,
        &data
        );
}