Files
dmex 6d330ca52f Improve UI rendering and plugin reliability
Create controls at their initial layout sizes and reduce system information panel flicker. Recover GPU/NPU monitoring after adapter restarts, correct sensor aggregation, and optimize graph updates. Restrict upload destinations, bound updater downloads, use monotonic transfer timing, and fix resource leaks and firewall cache races.
2026-10-24 02:35:15 +11:00

119 lines
2.0 KiB
C

/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2015
* dmex 2016-2026
*
*/
#ifndef GPUSYS_H
#define GPUSYS_H
#define ET_GPU_PADDING 3
_Function_class_(PH_SYSINFO_SECTION_CALLBACK)
BOOLEAN EtpGpuSysInfoSectionCallback(
_In_ PPH_SYSINFO_SECTION Section,
_In_ PH_SYSINFO_SECTION_MESSAGE Message,
_In_ PVOID Parameter1,
_In_ PVOID Parameter2
);
VOID EtpInitializeGpuDialog(
VOID
);
VOID EtpUninitializeGpuDialog(
VOID
);
VOID EtpTickGpuDialog(
VOID
);
INT_PTR CALLBACK EtpGpuDialogProc(
_In_ HWND WindowHandle,
_In_ UINT WindowMessage,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
INT_PTR CALLBACK EtpGpuPanelDialogProc(
_In_ HWND WindowHandle,
_In_ UINT WindowMessage,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
VOID EtpGetGpuGraphRects(
_Out_writes_(6) RECT LabelRects[6],
_Out_writes_(6) RECT GraphRects[6]
);
VOID EtpCreateGpuGraphs(
VOID
);
VOID EtpLayoutGpuGraphs(
_In_ HWND WindowHandle
);
VOID EtpNotifyGpuGraph(
_In_ NMHDR *Header
);
VOID EtpNotifyDedicatedGpuGraph(
_In_ NMHDR *Header
);
VOID EtpNotifySharedGpuGraph(
_In_ NMHDR *Header
);
VOID EtpNotifyPowerUsageGpuGraph(
_In_ NMHDR *Header
);
VOID EtpNotifyTemperatureGpuGraph(
_In_ NMHDR *Header
);
VOID EtpNotifyFanRpmGpuGraph(
_In_ NMHDR *Header
);
VOID EtpUpdateGpuGraphs(
VOID
);
VOID EtpUpdateGpuPanel(
VOID
);
PPH_PROCESS_RECORD EtpGpuReferenceMaxNodeRecord(
_In_ LONG Index
);
PPH_STRING EtpGpuGetMaxNodeString(
_In_ LONG Index
);
PPH_STRING EtpGpuGetNameString(
VOID
);
_Function_class_(PH_GRAPH_MESSAGE_CALLBACK)
BOOLEAN EtpGpuSysInfoGraphMessageCallback(
_In_ HWND WindowHandle,
_In_ ULONG Message,
_In_ PVOID Parameter1,
_In_ PVOID Parameter2,
_In_ PVOID Context
);
#endif