text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_suffix|>etworkUpdateGraphs(
_In_ PET_NET_CONTEXT Context
)
{
Context->NetworkReceiveGraphState.Valid = FALSE;
Context->NetworkReceiveGraphState.TooltipIndex = ULONG_MAX;
Graph_Update(Context->NetworkReceiveGraphHandle);
Context->NetworkSendGraphState.Valid = FALSE;
Context->NetworkSen... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>{
for (i = 0; i < process->NumberOfThreads; i++)
{
if (process->Threads[i].ClientId.UniqueThread == ThreadId)
{
processId = process->UniqueProcessId;
PhReleaseQueuedLockShared(&EtpProcessInformationLock);
return proce... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2011
* dmex 2015-2023
*
*/
#include "exttools.h"
#include "etwsys.h"
#define GRAPH_PADDING 3
static PPH_SYSINFO_SECTION DiskSection;
static HWN... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2015
* dmex 2017-2023
*
*/
#ifndef ETWSYS_H
#define ETWSYS_H
// Disk section
_Function_class_(PH_SYSINFO_SECTION_CALLBACK)
BOOLE... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*<|fim_suffix|>LIZATION)(
_In_ LUID AdapterLuid
);
typedef ULONG64 (NTAPI* PEXTENDEDTOOLS_GET_GPUADAPTERDEDICATED)(
_In_ LUID AdapterLuid
);
typede... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2015
* dmex 2018-2024
*
*/
#ifndef EXTTOOLS_H
#define EXTTOOLS_H
#include <phdk.h>
#include <phappresource.h>
#include <settings.h>
#include <m... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>electedListViewItemParam(context->ListViewHandle))
{
EtShowFirmwareEditDialog(WindowHandle, entry);
}
}
}
break;
}
}
break;
case WM_CONTEXTMENU:
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> return TRUE;
}
HexEdit_SetData(context->HexEditHandle, context->VariableValue, context->VariableValueLength);
InvalidateRect(context->HexEditHandle, NULL, TRUE);
}
break;
case IDC_FIRMWARE_... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2021-2022
*
*/
#include "exttools.h"
#include "framemon.h"
BOOLEAN EtFramesEnabled = FALSE;
static PPH_HASHTABLE EtFramesHashTable = nullptr;
... | fim | winsiderss/systeminformer | cpp |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2021
*
*/
#ifndef FRAMECACHE_H
#define FRAMECACHE_H
EXTERN_C_START
typedef struct _ET_FPS_COUNTER
{
HANDLE ProcessId;
FLOAT FrameMs;
FLOAT Fram... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2021-2023
*
*/
#include "exttools.h"
typedef struct _ET_FRAMES_CONTEXT
{
HWND WindowHandle;
PET_PROCESS_BLOCK Block;
PH_CALLBACK_... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2020-2024
*
*/
#include "exttools.h"
#include <networktoolsintf.h>
#include <workqueue.h>
#include <fwpmu.h>
#include <fwpsu.h>
#include "fwmo... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>esent in the TerminatingFiltersInfo array.
UCHAR _Reserved1[6];
PFWPP_TERMINATING_FILTER_INFO0 TerminatingFiltersInfo;
PCWSTR FilterOrigin; // A pointer to a wide string indicating the source or owner of the terminating filter.
NET_LUID InterfaceLuid; // The Loca... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>
memset(FwNode->TextCache, 0, sizeof(PH_STRINGREF) * FW_COLUMN_MAXIMUM);
PhInvalidateTreeNewNode(&FwNode->Node, TN_CACHE_ICON);
TreeNew_NodesStructured(FwTreeNewHandle);
}
VOID FwTickNodes(
VOID
)
{
BOOLEAN fullyInvalidated = FALSE;
// Reset list once in a while.
{
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>rHandle,
_In_ HWND ListViewHandle)
{
D3DKMT_ADAPTERREGISTRYINFO adapterInfo;
memset(&adapterInfo, 0, sizeof(D3DKMT_ADAPTERREGISTRYINFO));
if (NT_SUCCESS(EtQueryAdapterInformation(
AdapterHandle,
KMTQAITYPE_ADAPTERREGISTRYINFO,
&adapterInfo,
sizeof(D3DKMT_A... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> PhInitFormatSize(&format[6], EtGpuDedicatedLimit);
ListSection->Section->Parameters->SetSectionText(ListSection->Section,
PH_AUTO_T(PH_STRING, PhFormat(format, RTL_NUMBER_OF(format), 0)));
}
break;
case MiListSectionSortProcessList:
{
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>cessCompareFunction(
_In_ const void *elem1,
_In_ const void *elem2
);
int __cdecl EtpGpuListSectionNodeCompareFunction(
_In_ const void *elem1,
_In_ const void *elem2
);
BOOLEAN EtpGpuMemoryListSectionCallback(
_In_ struct _PH_MINIINFO_LIST_SECTION *ListSection,
_In_ PH_... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>.0f;
temperature = 0.0f;
fanRpm = 0;
for (i = 0; i < EtpGpuAdapterList->Count; i++)
{
PETP_GPU_ADAPTER gpuAdapter;
D3DKMT_ADAPTER_PERFDATA adapterPerfData;
gpuAdapter = EtpGpuAdapterList->Items[i];
// Use cached adapter han... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>TAPI EtGpuProcessesUpdatedCallback(
_In_ PVOID Parameter,
_In_ PVOID Context
);
#endif
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2015
* dmex 2016-20... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2015
* dmex 2018-2022
*
*/
#include "exttools.h"
#define GRAPH_PADDING 5
static RECT NormalGraphTextMargin = { 5, 5, 5, 5 };
stat... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011
* dmex 2015-2023
*
*/
#include "exttools.h"
typedef struct _ET_GPU_CONTEXT
{
HWND WindowHandle;
//HWND PanelHandle;
/... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>Graph_UpdateTooltip(PowerUsageGraphHandle);
InvalidateRect(PowerUsageGraphHandle, NULL, FALSE);
TemperatureGraphState.Valid = FALSE;
TemperatureGraphState.TooltipIndex = ULONG_MAX;
Graph_MoveGrid(TemperatureGraphHandle, 1);
Graph_Draw(TemperatureGraphHandle);
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> );
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 ... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011
* dmex 2016-2023
*
*/
#include "exttools.h"
#include "etwsys.h"
#include "gpusys.h"
#include "npusys.h"
#include <toolstatusintf.h>
typedef enu... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>DBYTES, block->DiskReadRawMin, block->DiskReadRawMax, block->DiskReadRawDiff, TRUE);
ET_PROCESS_STATISTICS_SELECT_ROW(ET_PROCESS_STATISTICS_INDEX_DISKREADBYTESDELTA, block->DiskReadRawDeltaMin, block->DiskReadRawDeltaMax, block->DiskReadRawDeltaDiff, TRUE);
ET_PROCESS_STATI... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>ager);
}
break;
case WM_COMMAND:
{
switch (GET_WM_COMMAND_ID(wParam, lParam))
{
case IDCANCEL:
case IDOK:
{
DestroyWindow(WindowHandle);
}
break;
}
... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2020-2024
*
*/
#include "exttools.h"
#include <secedit.h>
#include <kphuser.h>
#include <hndlinfo.h>
typedef struct _PIPE_ENUM_DIALOG_CONTEXT
... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2018-2021
* jxy-s 2024
*
*/
#include "exttools.h"
#include "npumon.h"
HWND EtNpuDetailsDialogHandle = NULL;
HANDLE EtNpuDetailsDialogTh... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2015
* dmex 2016-2022
* jxy-s 2024
*
*/
#include "exttools.h"
#include "npumini.h"
VOID EtNpuMiniInformationInitializing(
_... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2015
* dmex 2017-2022
* jxy-s 2024
*
*/
#ifndef NPUMINI_H
#define NPUMINI_H
BOOLEAN EtpNpuListSectionCallback(
_In_ struct ... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2015
* dmex 2016-2023
* jxy-s 2024
*
*/
#include "exttools.h"
#include <devguid.h>
#include <ntddvdeo.h>
#include "npumon.h... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2015
* dmex 2016-2023
* jxy-s 2024
*
*/
#ifndef NPUMON_H
#define NPUMON_H
// Macros
#define BYTES_NEEDED_FOR_BITS(Bits) (... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>r);
PhInitFormatC(&format[5], L'\n');
PhInitFormatSR(&format[6], PH_AUTO_T(PH_STRING, PhGetStatisticsTimeString(NULL, getTooltipText->Index))->sr);
PhMoveReference(&GraphState[i].Toolti... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011
* dmex 2015-2023
* jxy-s 2024
*
*/
#include "exttools.h"
typedef struct _ET_NPU_CONTEXT
{
HWND WindowHandle;
//HWN... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011
* dmex 2015-2023
* jxy-s 2024
*
*/
#include "exttools.h"
#include "npusys.h"
static PPH_SYSINFO_SECTION NpuSection;
static... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2015
* dmex 2016-2023
* jxy-s 2024
*
*/
#ifndef NPUSYS_H
#define NPUSYS_H
#define ET_NPU_PADDING 3
BOOLEAN EtpNpuSysInfoS... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> }
}
break;
case IDC_PROPERTIES:
{
EtpShowHandleProperties(hwndDlg, listviewItems[0]);
}
break;
case ... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>_CTLCOLORBTN(WindowHandle, wParam, lParam, PhWindowThemeControlColor);
case WM_CTLCOLORDLG:
return HANDLE_WM_CTLCOLORDLG(WindowHandle, wParam, lParam, PhWindowThemeControlColor);
case WM_CTLCOLORSTATIC:
return HANDLE_WM_CTLCOLORSTATIC(WindowHandle, wParam, lParam, PhWindowThemeCont... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2016-2023
*
*/
#include "exttools.h"
#include "poolmon.h"
PPH_STRING TrimString(
_In_ PPH_STRING String
)
{
static CONST PH_STRING... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2016-2023
*
*/
#include "exttools.h"
#include "poolmon.h"
static HWND EtPoolTagDialogHandle = NULL;
static HANDLE EtPoolTagDialogThreadHandle ... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2016-2023
*
*/
#include "exttools.h"
#include "poolmon.h"
VOID EtUpdateBigPoolTable(
_Inout_ PBIGPOOLTAG_CONTEXT Context
)
{
PSYST... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* jxy-s 2022
* dmex 2022
*
*/
#ifndef POOLMON_H
#define POOLMON_H
typedef struct _POOL_TAG_LIST_ENTRY
{
LIST_ENTRY ListEntry;
union
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>T Context
)
{
PPH_STRING text;
text = PhGetTreeNewText(Context->TreeNewHandle, 0);
PhSetClipboardString(Context->TreeNewHandle, &text->sr);
PhDereferenceObject(text);
}
VOID EtClearPoolTagTree(
_In_ PPOOLTAG_CONTEXT Context
)
{
for (ULONG i = 0; i < Context->NodeList->Cou... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2020-2023
*
*/
#include "exttools.h"
#include <hndlinfo.h>
#include <sddl.h>
typedef BOOLEAN (NTAPI* PPH_ENUM_SD_ENTRY)(
_In_ PSD_ENUM_SDS... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>define IDD_OBJWINSTA 8005
#define ID_WCT_MENU_PROPERTIES 8007
#define ID_WCT_MENU_COPY 8008
#define ID_DISK_GOTOPROCESS 40005
#define ID_DISK_COPY 40006
#define ID_DISK_PROPERTIES 40007
#define ID_DISK_OPENFILELOCATION ... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2018
*
*/
#include "exttools.h"
NTSTATUS CallGetProcessUnloadedDlls(
_In_ HANDLE ProcessId,
_Out_ PPH_BYTES *UnloadedDlls
)
{
... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winside<|fim_suffix|>se(threadHandle);
}
if (status == STATUS_NOT_FOUND)
{
PhShowInformation2(hWnd, L"There is no synchronous I/O to cancel.", L"%s", L"");
return FALSE;
}
else if (!NT_SUCCESS(status))
{
PhShowStatus(hWnd, L"Unable ... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>case IDOK:
EndDialog(WindowHandle, IDOK);
break;
}
}
break;
case WM_NOTIFY:
{
LPNMHDR hdr = (LPNMHDR)lParam;
PhHandleListViewNotifyForCopy(lParam, context->ListViewHandle);
switch (hdr->code)
... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* jxy-s 2023
*
*/
#ifndef TPM_H
#define TPM_H
#include <phdk.h>
// adapted from https://github.com/ionescu007/tpmtool
//
// TPM2.0 Session Tags
//
typedef USHORT... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* jxy-s 2024
*
*/
#include "exttools.h"
#include <hexedit.h>
typedef struct _ET_TPM_EDITOR_CONTEXT
{
HWND WindowHandle;
HWND ParentWindowHandl... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011
* dmex 2011-2024
*
*/
#include "exttools.h"
#include <netfw.h>
_Function_class_(PH_PLUGIN_TREENEW_SORT_FUNCTION)
LONG EtpProcessT... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2011
* dmex 2016-2023
*
*/
#include "exttools.h"
typedef struct _UNLOADED_DLLS_CONTEXT
{
BOOLEAN IsWow64Process;
HWND Lis... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011
* dmex 2020
*
*/
#include "exttools.h"
// Undocumented device properties (Win10 only)
DEFINE_DEVPROPKEY(DEVPKEY_Gpu_Luid, 0x60b193cb, 0x5276, ... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2013-2023
*
*/
#include "exttools.h"
#include <wct.h>
// Wait Chain Traversal Documentation:
// https://learn.microsoft.com/en-us/windows/win3... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011
* dmex 2018-2024
*
*/
#include "exttools.h"
#include <workqueue.h>
#include <symprv.h>
typedef struct _WS_WATCH_CONTEXT
{
LON... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2016
* dmex 2015-2024
*
*/
#include "devices.h"
/**
* Deletes a network adapter entry and releases its resources.
*
* \param Object... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>M_PROTECTION_STANDARD_NONE = 0x00000000,
DXGKMDT_OPM_PROTECTION_STANDARD_IEC61880_525I = 0x00000001,
DXGKMDT_OPM_PROTECTION_STANDARD_IEC61880_2_525I = 0x00000002,
DXGKMDT_OPM_PROTECTION_STANDARD_IEC62375_625P = 0x00000004,
DXGKMDT_OPM_PROTECTI... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/******************************Module*Header************************************\
*
* Module Name: d3dukmdt.h
*
* Content: Windows Display Driver Model (WDDM) user/kernel mode
* shared data type definitions.
*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
\***********... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* jxy-s 2023
*
*/
#include "devices.h"
#include <devquery.h>
typedef enum _DEVICE_PROPERTIES_CATEGORY
{
DEVICE_PROPERTIES_CATEGORY_GENERAL,
DE... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>ceOptionsDlgProc(
_In_ HWND hwndDlg,
_In_ UINT uMsg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
// powergraph.c
#define RAPL_GRAPH_PADDING 3
VOID RaplDeviceSysInfoInitializing(
_In_ PPH_PLUGIN_SYSINFO_POINTERS Pointers,
_In_ _Assume_refs_(1) PDV_RAPL_ENTRY DiskEntry
);
/... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* jxy-s 2022-2023
*
*/
#include "devices.h"
#include <toolstatusintf.h>
#include <devguid.h>
#include <trace.h>
typedef struct _DEVICE_NODE
{
PH... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>viceTypeAndNumber(deviceHandle, &diskIndex, NULL)))
{
DiskEntry->DiskIndex = diskIndex;
}
}
if (!DeviceHandle && deviceHandle)
{
NtClose(deviceHandle);
}
}
}
}
/**
* Initializ... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2016-2024
*
*/
#include "devices.h"
VOID DiskDeviceAddListViewItems(
_Inout_ PDV_DISK_PAGE_CONTEXT Context
)
{
PhAddListViewItem(C... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2015-2024
*
*/
#include "devices.h"
VOID DiskDeviceUpdatePanel(
_Inout_ PDV_DISK_SYSINFO_CONTEXT Context
)
{
PH_FORMAT format[3];
WCHAR form... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2016-2024
*
*/
#include "devices.h"
BOOLEAN MainWndDeviceChangeRegistrationEnabled = FALSE;
PH_CALLBACK_REGISTRATION MainWndDeviceChangeEventR... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2015-2024
*
*/
#include "devices.h"
#include <devguid.h>
typedef struct _DISK_ENUM_ENTRY
{
ULONG DeviceIndex;
BOOLEAN DevicePresent;
... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/********************************************************************
fmifs.h
This header file contains the specification of the interface
between the file manager and fmifs.dll for the purposes of
accomplishing IFS functions.
Copyright (c) Microsoft Corporation. All rights reserved.
... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2022
*
*/
#include "devices.h"
#include "../ExtendedTools/extension/plugin.h"
BOOLEAN GraphicsGraphShowText = FALSE;
BOOLEAN GraphicsEnableSca... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2018-2023
*
*/
#include "devices.h"
typedef enum _GPUADAPTER_DETAILS_INDEX
{
GPUADAPTER_DETAILS_INDEX_PHYSICALLOCTION,
GPUADAPTER_DETA... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> if (max < data)
max = data;
}
}
if (max != 0)
{
PhDivideSinglesBySingle(Context->FanRpmGraphState.Data1, max, drawInfo->LineDataCount);
}
if (GraphicsEnabl... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> if (graphState->TooltipIndex != getTooltipText->Index)
{
FLOAT gpu;
PPH_STRING engineName = NULL;
gpu = PhGetItemCircularBuffer_FLOAT(
&context->DeviceEntry->GpuNodesHistory[index],
... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2021-2024
*
*/
#include "de<|fim_suffix|>ferenceObject(locationString);
}
// Avoid duplicates, querying for GUID_DISPL... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2022-2023
*
*/
#include "devices.h"
static PH_QUEUED_LOCK GraphicsDeviceInterfaceAdapterIndexLock = PH_QUEUED_LOCK_INIT;
/**
* Finds a full ... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2016
* dmex 2015-2024
*
*/
#include "devices.h"
#include <hndlinfo.h>
#include <trace.h>
PPH_PLUGIN PluginInstance = NULL;
BOOLEAN Ne... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>Query,
sizeof(objectIdQuery),
&adapterType,
sizeof(adapterType),
NULL
);
if (NT_SUCCESS(status))
{
switch (adapterType)
{
case NdisMedium802_3:
*Medium = NdisPhysicalMedium802_3;
break;
case NdisMedium... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2022
*
*/
#include "devices.h"
#include "ndiswlan.h"
typedef struct _DV_NETADAPTER_WLAN_CONFIG
{
ULONG BeaconInterval;
ULONGLONG Age;
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> DOT11_CIPHER_ALGO_WEP40 = 0x01,
DOT11_CIPHER_ALGO_TKIP = 0x02,
DOT11_CIPHER_ALGO_CCMP = 0x04,
DOT11_CIPHER_ALGO_WEP104 = 0x05,
DOT11_CIPHER_ALGO_BIP = 0x06, // BIP-CMAC-128
DOT11_CIPHER_ALGO_GCMP = 0x08, // GCMP-128
DOT11_CIPHER_ALGO_GCMP_256 = 0x09, // GCMP-256
DOT11_CIPHER_... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>tUpdateInterval;
interfaceXmitSpeed *= 1000;
interfaceXmitSpeed /= NetUpdateInterval;
}
PhSetListViewSubItem(Context->ListViewHandle, NETADAPTER_DETAILS_INDEX_STATE, 1, mediaState == MediaConnectStateConnected ? L"Connected" : L"Disconnected");
PhSetListViewSubItem(Context->L... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2016
* dmex 2015-2024
*
*/
#include "devices.h"
_Function_class_(PH_GRAPH_MESSAGE_CALLBACK)
BOOLEAN NetworkDeviceGraphMessageCallback(... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>OLEAN FindAdapterEntry(
_In_ PDV_NETADAPTER_ID Id,
_In_ BOOLEAN RemoveUserReference
)
{
BOOLEAN found = FALSE;
PhAcquireQueuedLockShared(&NetworkDevicesListLock);
for (ULONG i = 0; i < NetworkDevicesList->Count; i++)
{
PDV_NETADAPTER_ENTRY currentEntry = PhReferenceOb... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>ePower = totalCorePower;
return;
}
if (DeviceEntry->ChannelIndex[DeviceIndex] == ULONG_MAX)
return;
switch (DeviceIndex)
{
case EV_EMI_DEVICE_INDEX_PACKAGE:
DeviceEntry->CurrentProcessorPower = RaplDeviceSampleSingleChannel(
MeasurementData,
... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2021-2023
*
*/
#include "devices.h"
_Function_class_(PH_GRAPH_MESSAGE_CALLBACK)
BOOLEAN RaplDeviceGraphMessageCallback(
_In_ HWND WindowHa... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>dllPartSr, &indexPartSr);
PhStringToInteger64(&indexPartSr, 10, &index);
PhMoveReference(&deviceIconPath, PhExpandEnvironmentStrings(&dllPartSr));
if (PhExtractIconEx(
&deviceIconPath->sr,
FALSE,
(INT)index,
PhGetSystemMetrics(SM_CXICON, dpiValue),
PhGe... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2017-2020
*
*/
#include "devices.h"
static PPH_OBJECT_TYPE PvpPropContextType = NULL;
static PPH_OBJECT_TYPE PvpPropPageContextType = NULL;
st... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Aut<|fim_suffix|>#endif
<|fim_middle|>hors:
*
* dmex 2017
*
*/
// NOTE: Copied from processhacker2\ProcessHacker\procprp.h
#ifndef PV_PRP_H
#define PV_PRP_H
#d... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by HardwareDevices.rc
//
#define IDD_NETADAPTER_OPTIONS 101
#define IDC_GRAPH_LAYOUT 103
#define IDD_NETADAPTER_PANEL 104
#define IDD_NETADAPTER_DETAILS 105
#define IDD_DISKDRIVE_DETAI... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>{
// ULONG bufferLength;
// STORAGE_PROPERTY_QUERY query;
// PDEVICE_POWER_DESCRIPTOR buffer;
//
// query.QueryType = PropertyStandardQuery;
// query.PropertyId = StorageDevicePowerProperty;
//
// bufferLength = sizeof(DEVICE_POWER_DESCRIPTOR);
// buffer = PhAllocate(bufferLength);
//... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> sizeof(GEODB_IPADDR_CACHE_ENTRY),
NetworkToolsGeoDbCacheHashtableEqualFunction,
NetworkToolsGeoDbCacheHashtableHashFunction,
32
);
PhReleaseQueuedLockExclusive(&NetworkToolsGeoDbCacheHashtableLock);
}
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solut... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2011
* dmex 2013-2024
*
*/
#include "nettools.h"
#include <networktoolsintf.h>
#include <trace.h>
PPH_PLUGIN PluginInstance;
PH_... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2013
* dmex 2012-2023
*
*/
#ifndef _NET_TOOLS_H_
#define _NET_TOOLS_H_
#include <phdk.h>
#include <phapppub.h>
#include <phappres... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2013
* dmex 2012-2024
*
*/
#include "nettools.h"
CONST PPH_STRINGREF OptionsGeoLiteEdition[2] =
{
SREF(L"GeoLite Country (Sma... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>rorMessage->Buffer)->Buffer;
PhDereferenceObject(errorMessage);
}
}
else
{
config.pszContent = L"Click Retry to download the update again.";
}
PhTaskDialogNavigatePage(Context->DialogHandle, &config);
}
VOID ShowDbInvalidSettingsDialog(
_In_ PNETWORK_G... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2015-2023
*
*/
#include "nettools.h"
#include <math.h>
static RECT NormalGraphTextMargin = { 5, 5, 5, 5 };
static RECT NormalGraphTextPadding ... | fim | winsiderss/systeminformer | c |
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by NetworkTools.rc
//
#define AD_PNG 101
#define AE_PNG 102
#define AF_PNG 103
#define AG_PNG 104
#define AI_PNG 105
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>LL, PH_ANCHOR_BOTTOM | PH_ANCHOR_RIGHT);
PhAddLayoutItem(&context->LayoutManager, GetDlgItem(hwndDlg, IDC_REFRESH), NULL, PH_ANCHOR_BOTTOM | PH_ANCHOR_RIGHT);
if (PhValidWindowPlacementFromSetting(SETTING_NAME_TRACERT_WINDOW_POSITION))
PhLoadWindowPlacementFromSett... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2015-2023
*
*/
#ifndef _TRACERT_H_
#define _TRACERT_H_
#define DEFAULT_MINIMUM_INTERVAL 1000
#define DEFAULT_MAXIMUM_PINGS 4
#define TRACERT_SHOWCONTEXTMENU... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2015-2023
*
*/
#include "nettools.h"
#include "tracert.h"
PPH_OBJECT_TYPE TracertTreeNodeItemType;
_Function_class_(PH_TYPE_DELETE_PROCEDURE)... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2016-2024
*
*/
#include "nettools.h"
HWND UpdateDialogHandle = NULL;
HANDLE UpdateDialogThreadHandle = NULL;
PH_EVENT InitializedEvent = PH_EV... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>dressString, context->Ipv6Support, &whoisResponse))
{
PhAppendFormatStringBuilder(&stringBuilder, L"Connection to whois.iana.org failed.\n");
goto CleanupExit;
}
if (!WhoisExtractServerUrl(whoisResponse, &whoisServerName))
{
PhAppendFormatStringBuilder(&stringBuild... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>RING httpHeaderString = NULL;
PPH_STRING httpHeaderClientId = NULL;
PVOID jsonRootObject = NULL;
ULONG httpStatus = PH_HTTP_STATUS_OK;
if (!NT_SUCCESS(status = PhHttpInitialize(&httpContext)))
goto CleanupExit;
if (PhIsNullOrEmptyString(ApiKey))
{
if (!HybridAnaly... | fim | winsiderss/systeminformer | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.