6d330ca52f
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.
45 lines
836 B
C
45 lines
836 B
C
/*
|
|
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
|
|
*
|
|
* This file is part of System Informer.
|
|
*
|
|
* Authors:
|
|
*
|
|
* wj32 2011-2015
|
|
* dmex 2016-2023
|
|
*
|
|
*/
|
|
|
|
#ifndef GPUMON_H
|
|
#define GPUMON_H
|
|
|
|
// Macros
|
|
|
|
#define BYTES_NEEDED_FOR_BITS(Bits) ((((Bits) + sizeof(ULONG) * 8 - 1) / 8) & ~(SIZE_T)(sizeof(ULONG) - 1)) // divide round up
|
|
|
|
// Functions
|
|
|
|
BOOLEAN EtpGpuInitializeD3DStatistics(
|
|
_In_opt_ PPH_LIST DiscoveredAdapterList
|
|
);
|
|
|
|
PETP_GPU_ADAPTER EtpAllocateGpuAdapter(
|
|
_In_ ULONG NumberOfSegments
|
|
);
|
|
|
|
VOID EtpGpuResetAdapterNodeDeltas(
|
|
_In_ PETP_GPU_ADAPTER GpuAdapter
|
|
);
|
|
|
|
VOID EtpGpuRefreshAdapterLuids(
|
|
VOID
|
|
);
|
|
|
|
_Function_class_(PH_CALLBACK_FUNCTION)
|
|
VOID NTAPI EtGpuProcessesUpdatedCallback(
|
|
_In_ PVOID Parameter,
|
|
_In_ PVOID Context
|
|
);
|
|
|
|
#endif
|