text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2016
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <modprv.h>
#include <mapimg.h>
#include <kphuser.h>
#include <workqueue.h>... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2016
* dmex 2016-2023
*
*/
#include <phapp.h>
#include <phsettings.h>
#include <procmtgn.h>
typedef struct _MITIGATION_POLICY_ENTRY
{
BOOLEAN No... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>urn;
if (tree = PhReferenceDeviceTree())
{
item = PhLookupDeviceItem(tree, ¬ify->DeviceInstance.InstanceId->sr);
if (item && PhpShouldNotifyForDevice(item, type))
{
PhpNotifyForDevice(item, type);
}
PhClearReference(&tree);
}
}
VOID PhM... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>SE);
}
else
{
PhSetFlagsAllEMenuItems(Menu, PH_EMENU_DISABLED, PH_EMENU_DISABLED);
PhEnableEMenuItem(Menu, ID_NETWORK_CLOSE, TRUE);
PhEnableEMenuItem(Menu, ID_NETWORK_COPY, TRUE);
}
// Go to Service
if (NumberOfNetworkItems != 1 || !NetworkItems[0]->OwnerNa... | 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 2009-2016
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <mainwnd.h>
#include <emenu.h>
#include <verify.h>
#include <phsettings.h>... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2009-2016
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <emenu.h>
#include <phplug.h>
#include <phsettings.h>
#include <settings.h>
#include <srv... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>t(NetworkNode->TooltipText);
PhDereferenceObject(NetworkNode->NetworkItem);
PhFree(NetworkNode);
TreeNew_NodesStructured(NetworkTreeListHandle);
}
VOID PhUpdateNetworkNode(
_In_ PPH_NETWORK_NODE NetworkNode
)
{
memset(NetworkNode->TextCache, 0, sizeof(PH_STRINGREF) * PHNETLC_MA... | 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
* evilpie 2010
* dmex 2016-2023
*
*/
#include <phapp.h>
#include <phplug.h>
#include <phsettings.h>
#include <extmgri.h>
#inc... | 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
*
*/
#include <phapp.h>
#include <symprv.h>
#include <netprv.h>
typedef struct NETWORK_STACK_CONTEXT
{
HWND ListViewHandle;
PH_LA... | 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 2025
*
*/
#include <phapp.h>
#include <mapldr.h>
#include <netprv.h>
CONST NPI_MODULEID NPI_MS_IPV4_MODULEID = { 2, MIT_GUID, .Guid = { 0xeb00... | 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-2016
* dmex 2017-2024
*
*/
#include <phapp.h>
#include <phsettings.h>
#include <shellapi.h>
#include <mainwnd.h>
#include <phplu... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>UserCanceled;
break;
case ToastDismissalReason_ApplicationHidden:
phReason = PhToastReasonApplicationHidden;
break;
case ToastDismissalReason_TimedOut:
phReason = PhToastReasonTimedOut;
break;
}
}
m_ToastCallback(... | fim | winsiderss/systeminformer | cpp |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010
*
*/
#include <phapp.h>
#include <phsettings.h>
#include <kphuser.h>
#include <ksisup.h>
#include <hndlinfo.h>
#include <emenu.h>
#include... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>
_In_ PVOID Pagefiles
)
{
PSYSTEM_PAGEFILE_INFORMATION_EX pagefile;
pagefile = PH_FIRST_PAGEFILE_EX(Pagefiles);
while (pagefile)
{
INT lvItemIndex;
PPH_STRING fileName;
PPH_STRING newFileName;
PPH_STRING usage;
fileName = PhCreateStringFro... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>_TOO_SMALL)
return NULL;
selfRelativeSecurityDescriptor = PhAllocate(bufferSize);
status = RtlAbsoluteToSelfRelativeSD(AbsoluteSecurityDescriptor, selfRelativeSecurityDescriptor, &bufferSize);
if (!NT_SUCCESS(status))
{
PhFree(selfRelativeSecurityDescriptor);
retu... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> if (tokenHandle)
NtClose(tokenHandle);
if (processHandle)
NtClose(processHandle);
if (attributeList)
PhDeleteProcThreadAttributeList(attributeList);
PhClearReference(&commandLine);
return status;
}
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & So... | 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
*
*/
#include <phapp.h>
#include <phsvc.h>
#include <verify.h>
_Function_class_(USER_THREAD_START_ROUTINE)
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>hreadContext->OldClient;
threadContext->OldClient = NULL;
}
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2015
*
*/
#include <phapp.h>
#include <phsvc.h>
_Function_c... | 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
*
*/
#include <phapp.h>
#include <phsvc.h>
HANDLE PhSvcTimeoutStandbyEventHandle = NULL;
HANDLE PhSvcTimeoutCancelEve... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>uInfo The plugin menu information structure.
* \param Item The menu item chosen by the user.
*
* \remarks This function is reserved for internal use.
*/
BOOLEAN PhPluginTriggerEMenuItem(
_In_ PPH_PLUGIN_MENU_INFORMATION MenuInfo,
_In_ PPH_EMENU_ITEM Item
)
{
PPH_PLUGIN_MENU_ITEM plugin... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>_COMMAND_ID(wParam, lParam))
{
case IDC_DISABLED:
{
PhDialogBox(
NtCurrentImageBase(),
MAKEINTRESOURCE(IDD_PLUGINSDISABLED),
hwndDlg,
PhpPluginsDisabl... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>UP));
processGroup->Processes = PhCreateList(4);
fileName = PhpGetRelevantFileName(processData->Process->ProcessItem, Flags);
userSid = processData->Process->ProcessItem->Sid;
if (PhIsNullOrEmptyString(fileName) || !PhValidSid(userSid) || (Flags & PH_GROUP_PROCESSES_DONT_G... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2016
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <procmtgn.h>
NTSTATUS PhpCopyProcessMitigationPolicy(
_Inout_ PNTSTATUS Status,
_In_ ... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>WindowHandle = GetParent(WindowHandle);
waitContext->ProcessHandle = processHandle;
if (NT_SUCCESS(RtlRegisterWait(
&waitContext->ProcessWaitHandle,
processHandle,
PhpProcessPropertiesWaitCallback,
waitContext,
INFINITE,
WT_EXECUTEONLYONCE | WT_EXEC... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010
* dmex 2020-2023
*
*/
#include <phapp.h>
#include <phsettings.h>
#include <mainwnd.h>
#include <procprv.h>
typedef struct _PROCESS_RECORD_CONTE... | 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 2009-2016
* dmex 2018-2023
*
*/
#include <phapp.h>
#include <cpysave.h>
#include <emenu.h>
#include <settings.h>
#include <apiimport.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 2009-2016
* dmex 2016-2023
*
*/
#include <phapp.h>
#include <procprp.h>
#include <procprpp.h>
#include <phconsole.h>
#include <emenu.h... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>DR)lParam;
switch (header->code)
{
case PSN_SETACTIVE:
PhSetEnabledProvider(&handlesContext->ProviderRegistration, TRUE);
break;
case PSN_KILLACTIVE:
PhSetEnabledProvider(&handlesContext->ProviderRegistration,... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>PropPageLayoutItem(hwndDlg, GetDlgItem(hwndDlg, IDC_ADVANCED),
dialogItem, PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM);
PhDoPropPageLayout(hwndDlg);
PhSetWindowContext(hwndDlg, PH_WINDOW_CONTEXT_DEFAULT, UlongToPtr(TRUE));
}
}
break... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>owMemoryEditor->OwnerWindow = hwndDlg;
showMemoryEditor->ProcessId = processItem->ProcessId;
showMemoryEditor->BaseAddress = memoryNode->MemoryItem->BaseAddress;
showMemoryEditor->RegionSize = memoryNode->MemoryItem->RegionSize;
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>}
if (!PhIsNullOrEmptyString(moduleNode->TimeStampText))
{
if (PhSearchControlMatch(Context->SearchMatchHandle, &moduleNode->TimeStampText->sr))
return TRUE;
}
if (!PhIsNullOrEmptyString(moduleNode->LoadTimeText))
{
if (PhSearchControlMatch(Context->Search... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>.Data1[i] +
performanceContext->CpuGraphState.Data2[i];
if (max < data)
max = data;
}
}
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>M_SHOWWINDOW:
{
PPH_LAYOUT_ITEM dialogItem;
if (dialogItem = PhBeginPropPageLayout(hwndDlg, propPageContext))
{
PhAddPropPageLayoutItem(hwndDlg, GetDlgItem(hwndDlg, IDC_SERVICES_LAYOUT), dialogItem, PH_ANCHOR_ALL);
PhEndPropPageL... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>OPTIONS:
{
RECT rect;
PPH_EMENU menu;
PPH_EMENU_ITEM hideSuspendedMenuItem;
PPH_EMENU_ITEM hideGuiMenuItem;
PPH_EMENU_ITEM highlightSuspendedMenuItem;
PPH_EMENU_ITEM high... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2009-2016
* dmex 2018-2022
*
*/
#include <phapp.h>
#include <procprp.h>
#include <procprv.h>
_Function_class_(PH_OPEN_OBJECT)
NTSTATUS NTAPI PhpOpen... | 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
*
*/
#ifdef _M_IX86
#include <phapp.h>
#include <phplug.h>
#include <phsettings.h>
#include <procprp.h>
#include <procprv.h>
#include... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>Options)
{
case PROCESS_WMI_TREE_MENU_ITEM_HIDE_DEFAULT_NAMESPACE:
Context->HideDefaultNamespace = !Context->HideDefaultNamespace;
break;
case PROCESS_WMI_TREE_MENU_ITEM_HIGHLIGHT_DEFAULT_NAMESPACE:
Context->HighlightDefaultNamespace = !Context->HighlightDefaultNamespac... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by SystemInformer.rc
//
#define IDR_RT_MANIFEST 1
#define IDI_SYSTEMINFORMER 101
#define IDR_MAINWND_ACCEL 102
#define IDD_PROCGENERAL 103
#define IDD_PROCMODULES ... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>lt:
return FALSE;
}
getCellText->Flags = TN_CACHE;
}
return TRUE;
case TreeNewGetNodeColor:
{
PPH_TREENEW_GET_NODE_COLOR getNodeColor = Parameter1;
node = (PPH_RUNASPACKAGE_TREE_ROOT_NODE)getNodeColor->Node;
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> PHNT_WINDOWS_NEW
#define PHAPPAPI __declspec(dllimport)
#include "ph.h"
#include "phnet.h"
#include "provider.h"
#include "filestream.h"
#include "fastlock.h"
#include "lsasup.h"
#include "svcsup.h"
#include "circbuf.h"
#include "dltmgr.h"
#include "guisup.h"
#include "treenew.h"
#include "graph.h"
#in... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>MAKEINTRESOURCE(IDB_SEARCH_REGEX_MODERN_LIGHT) : MAKEINTRESOURCE(IDB_SEARCH_REGEX_MODERN_DARK),
PhEnableThemeSupport ? MAKEINTRESOURCE(IDB_SEARCH_CASE_MODERN_LIGHT) : MAKEINTRESOURCE(IDB_SEARCH_CASE_MODERN_DARK),
SETTING_SEARCH_CONTROL_REGEX,
SETTING_SEARCH_CONTROL_CASE_SENSITIVE,
... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2013
* dmex 2019-2023
*
*/
#include <phapp.h>
#include <lsasup.h>
#include <winsta.h>
static CONST PH_KEY_VALUE_PAIR PhpMessageBoxIconPairs[] =... | 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
* dmex 2018-2024
*
*/
#include <phapp.h>
#include <emenu.h>
#include <phsettings.h>
#include <winsta.h>
INT_PTR CALLBACK PhpSessi... | 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-2016
* dmex 2017-2023
*/
#include <phapp.h>
#include <settings.h>
#include <phsettings.h>
#include <winsta.h>
static CONST PH_KEY_... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>eColorDotNet);
PH_GET_INTEGER_CACHED_SETTING(ColorDotNet);
PH_GET_INTEGER_CACHED_SETTING(UseColorPacked);
PH_GET_INTEGER_CACHED_SETTING(ColorPacked);
PH_GET_INTEGER_CACHED_SETTING(UseColorLowImageCoherency);
PH_GET_INTEGER_CACHED_SETTING(ColorLowImageCoherency);
PH_GET_INTEGER_CACH... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Wins<|fim_suffix|> wParam, lParam, PhWindowThemeControlColor);
case WM_CTLCOLORDLG:
return HANDLE_WM_CTLCOLORDLG(hwndDlg, wParam, lParam, PhWindowThemeControlColor);
case WM_CTLCOLORSTATIC:
return HANDLE_WM_CTLCOLORSTATIC(hwndDlg, wParam, lParam, PhWindowTh... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>NT_ERROR)
{
PhRemoveListViewItem(context->ListViewHandle, lvItemIndex);
}
}
PhDereference... | 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-2015
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <srvlist.h>
#include <cpysave.h>
#include <emenu.h>
#include <svcsup.h>
#i... | 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-2015
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <secedit.h>
#include <svcsup.h>
#include <mainwnd.h>
#include <settings.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 2009-2015
* dmex 2017-2024
*
*/
#include <phapp.h>
#include <phplug.h>
#include <srvprv.h>
#include <svcsup.h>
#include <workqueue.h>
#... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2011-2016
* dmex 2017-2023
*
*/
/*
* This file contains the System Information framework. The "framework" handles creation, layout and
* events for... | 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-2016
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <settings.h>
#include <sysinfo.h>
#include <sysinfop.h>
#include <procprv.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-2016
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <sysinfo.h>
#include <sysinfop.h>
#include <procprv.h>
#include <phsetting... | 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-2016
* dmex 2017-2023
*
*/
#include <phapp.h>
#include <sysinfo.h>
#include <sysinfop.h>
#include <kphuser.h>
#include <symprv.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 2010-2016
* dmex 2017-2023
*
*/
/*
* The thread provider is tied to the process provider, and runs by registering a callback for the
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>)
stackNode->FileNameString = PhGetFileName(stackNode->FileNameString);
if (item->StackFrame.StackAddress)
PhPrintPointer(stackNode->StackAddressString, item->StackFrame.StackAddress);
if (item->StackFrame.FrameAddress)
PhPrintPointe... | 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 <phapp.h>
#include <settings.h>
#include <phsettings.h>
#include <colmgr.h>
#include <emenu.h>
#include <symprv.h>
#include ... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>SER_NODE node = (PPH_USER_NODE)Context->NodeList->Items[i];
if (node->Node.Selected)
PhAddItemList(list, node);
}
if (list->Count)
{
*Nodes = PhAllocateCopy(list->Items, sizeof(PVOID) * list->Count);
*NumberOfNodes = list->Count;
PhDereferenceObje... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>ONG PeriodInSeconds;
ULONG MaxBucketSize;
} KPH_RATE_LIMIT_POLICY, *PKPH_RATE_LIMIT_POLICY;
typedef const KPH_RATE_LIMIT_POLICY* PCKPH_RATE_LIMIT_POLICY;
#define KPH_RATE_LIMIT_UNLIMITED { ULONG_MAX, 0, ULONG_MAX }
#define KPH_RATE_LIMIT_DENY_ALL { 0, 0, 0 }
#define KPH_RATE_... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>trolAreaListHead; // dt nt!_CONTROL_AREA ListHead
USHORT MmControlAreaLock; // dt nt!_CONTROL_AREA ControlAreaLock
USHORT EpSectionObject; // dt nt!_EPROCESS SectionObject
} KPH_DYN_KERNEL_FIELDS, *PKPH_DYN_KERNEL_FIELDS;
typedef KPH_DYN_KERNEL_FIELDS KPH_DYN_NTOSKR... | 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-2026
*
*/
#pragma once
#include <kphdyn.h>
_Must_inspect_result_
NTSTATUS KphDynDataLookup(
_In_reads_bytes_(Length) PKPH_DYN_CONFIG... | 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-2026
*
*/
#p<|fim_suffix|>gma warning(pop)
#else
#pragma warning(push)
#pragma warning(disable : 4201)
#pragma warning(disable : 4214)
#pr... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> KphMsgRegPreUnLoadKey,
KphMsgRegPostUnLoadKey,
KphMsgRegPreQueryKeySecurity,
KphMsgRegPostQueryKeySecurity,
KphMsgRegPreSetKeySecurity,
KphMsgRegPostSetKeySecurity,
KphMsgRegPreRestoreKey,
KphMsgRegPostRestoreKey,
KphMsgRegPreSaveKey,
KphMsgRegPostSaveKey,
KphMs... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>rverSilo;
//
// Dynamic
//
// id: KphMsgFieldObjectName type: KphMsgTypeUnicodeString
// id: KphMsgFieldOtherObjectName type: KphMsgTypeUnicodeString
//
} KPHM_SILO_TERMINATE, *PKPHM_SILO_TERMINATE;
#pragma warning(pop)
<|fim_prefix|>/*
* Copyright (c) 2022 ... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>t_ PKPH_MESSAGE Message,
_In_ KPH_MESSAGE_FIELD_ID FieldId,
_In_ PKPHM_STACK_TRACE StackTrace
);
NTSTATUS KphMsgDynGetStackTrace(
_In_ PCKPH_MESSAGE Message,
_In_ KPH_MESSAGE_FIELD_ID FieldId,
_Out_ PKPHM_STACK_TRACE StackTrace
);
_Must_inspect_result_
NTSTATUS KphMsgDynAddSi... | 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 2025-2026
*
*/
#pragma once
#pragma warning(push)
#pragma warning(disable : 4201)
#pragma warning(disable : 4324)
typedef struct _KPH_RING_HE... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* sistatus.h IS AN AUTOGENERATED FILE, DO NOT MODIFY
*
* Changes should be made in sistatus.mc
*
*/
#ifndef SI_STATUS_H
#define SI_STATUS_H
//
// Values are 32 bit value... | 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-2026
*
*/
#include <kphlibbase.h>
#include <kphdyndata.h>
#ifndef _KERNEL_MODE
#include <ntintsafe.h>
#ifndef Add2Ptr
#define Add2Ptr(P,I... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* jxy-s 2022-2026
* dmex 2022
*
*/
#include <kphlibbase.h>
#include <kphmsg.h>
#define KPH_MESSAGE_VERSION 8
/**
* Gets the current system time (UTC).
*
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> String->Length);
return STATUS_SUCCESS;
}
/**
* \brief Retrieves a Unicode string from the dynamic message buffer.
*
* \param[in] Message The message to retrieve the Unicode string from.
* \param[in] FieldId Field identifier for the data.
* \param[out] String If found populated with a refer... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* jxy-s 2025-2026
*
*/
#include <kphlibbase.h>
#include <kphringbuff.h>
#ifndef _KERNEL_MODE
#include <ntintsafe.h>
#ifndef Add2Ptr
#define Add2Ptr(P,I) ((PVOID)((P... | fim | winsiderss/systeminformer | c |
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2015
* dmex 2019-2024
*
*/
#include <ph.h>
#include <mapldr.h>
#include <sddl.h>
#include <shlwapi.h>
#include <userenv.h>
#include <ntuser.h>
#incl... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>etModuleHandleW = GetModuleHandleW_Stub;
__declspec(selectany) decltype(&IsDebuggerPresent) __imp_IsDebuggerPresent = IsDebuggerPresent_Stub;
__declspec(selectany) decltype(&SetEndOfFile) __imp_SetEndOfFile = SetEndOfFile_Stub;
__declspec(selectany) decltype(&ExitProcess) __imp_ExitProcess = ExitProcess_S... | fim | winsiderss/systeminformer | cpp |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex 2017-2023
*
*/
#include <ph.h>
#include <lsasup.h>
#include <mapldr.h>
#include <guisup.h>
#include <shobjidl.h>
#include <shlobj_core.h>
#in... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>
{
HRESULT status;
PPH_LIST list = NULL;
__x_ABI_CWindows_CManagement_CDeployment_CIPackageManager* packageManager = NULL;
__FIIterable_1_Windows__CApplicationModel__CPackage* enumPackages = NULL;
__FIIterator_1_Windows__CApplicationModel__CPackage* enumPackage = NULL;
__x_ABI_CWin... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>at is greater than the specified element.
*
* \param Tree The tree.
* \param Element The element to find.
*
* \return The bound element, or NULL if the tree is empty.
*/
PPH_AVL_LINKS PhUpperBoundElementAvlTree(
_In_ PPH_AVL_TREE Tree,
_In_ PPH_AVL_LINKS Element
)
{
PPH_AVL_LINKS lin... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* Copyright (c) 2026 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*/
#include <phbase.h>
#include "include\base64.h"
static const CHAR PhBase64EncodeTable[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static con... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> STATUS_UNSUCCESSFUL;
status = BcdOpenSystemStore_I(
&storeHandle
);
if (!NT_SUCCESS(status))
goto CleanupExit;
status = BcdOpenObject_I(
storeHandle,
&GUID_CURRENT_BOOT_ENTRY,
&objectHandle
);
if (!NT_SUCCESS(status))
got... | fim | winsiderss/systeminformer | cpp |
<|fim_suffix|>circbuf_i.h"
#undef T
#define T ULONG64
#include "circbuf_i.h"
#undef T
#define T PVOID
#include "circbuf_i.h"
#undef T
#define T SIZE_T
#include "circbuf_i.h"
#undef T
#define T FLOAT
#include "circbuf_i.h"
#undef T
#define T DOUBLE
#include "circbuf_i.h"
#undef T
#pragma pop_macro("T")
<|fim_pref... | 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-2016
*
*/
#ifdef T
#include <templ.h>
VOID T___(PhInitializeCircularBuffer, T)(
_Out_ T___(PPH_CIRCULAR_BUFFER, T) Buffer,
_In_ ... | 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
* dmex 2017-2024
*
*/
#include <ph.h>
#include <colorbox.h>
#include <guisup.h>
#include <commdlg.h>
typedef struct _PH_COLORBOX_... | 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-2012
* dmex 2018-2023
*
*/
#include <ph.h>
#include <cpysave.h>
#include <guisup.h>
#include <treenew.h>
#define TAB_SIZE 8
VOI... | 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-2016
* dmex 2017-2026
*
*/
#include <ph.h>
#include <phdata.h>
//
// SIDs
//
CONST SID PhSeNobodySid = { SID_REVISION, 1, SECURI... | 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 <ph.h>
#include <guisup.h>
#include <settings.h>
#define GDIPVER 0x0110
#include <unknwn.h>
//#include <wtypes.h>
#inc... | fim | winsiderss/systeminformer | cpp |
<|fim_suffix|> {
PhInitializeStringRef(&path, selection->pwzADsPath);
PhInitializeStringRef(&prefix, L"LDAP://<SID=");
if (PhStartsWithStringRef(&path, &prefix, TRUE))
{
PhSkipStringRef(&path, prefix.Length);
path.Length -= sizeof(W... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>TEM Item,
_In_ ULONG Mask,
_In_ ULONG Value
)
{
ULONG i;
for (i = 0; i < Item->Items->Count; i++)
{
PPH_EMENU_ITEM item = PhItemList(Item->Items, i);
item->Flags &= ~Mask;
item->Flags |= Value;
}
}
VOID PhModifyEMenuItem(
_Inout_ PPH_EMENU_ITEM It... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>esult, FACILITY_NT_BIT); // reverse HRESULT_FROM_NT (dmex)
}
else if (
HRESULT_FACILITY(Result) == FACILITY_WIN32 ||
HRESULT_FACILITY(Result) == FACILITY_WINDOWS
)
{
Result = PhDosErrorToNtStatus(HRESULT_CODE(Result));
}
return Result;
}
<|fim_prefix|>/... | 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-2012
* dmex 2017-2024
*
*/
/*
* The extended list view adds some functionality to the default list view control, such as sorting,... | 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 2009-2010
*
*/
#include <phbase.h>
#include <fastlock.h>
// FastLock is a fast resource (reader-writer) lock.
//
// The code is a direct port ... | 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
*
*/
/*
* File pool allows blocks of storage to be allocated from a file. Each file looks like this:
*
* Segment 0 ____________________... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>f(FILE_ALLOCATION_INFORMATION));
allocationInfo.AllocationSize.QuadPart = AllocationSize->QuadPart;
if (!NT_SUCCESS(status = NtSetInformationFile(
FileStream->FileHandle,
&isb,
&allocationInfo,
sizeof(FILE_ALLOCATION_INFORMATION),
FileAllocationInformation
... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> }
if (NT_SUCCESS(status))
{
status = PhpEnumSMBIOS(
(PRAW_SMBIOS_DATA)info->TableBuffer,
Callback,
Context
);
}
PhFreeStack(info);
return status;
}
NTSTATUS PhGetSMBIOSString(
_In_ ULONG_PTR EnumHandle,
_In_ UCHAR Ind... | fim | winsiderss/systeminformer | c |
<|fim_suffix|>edLength += (Length); } while (0)
#include "format_i.h"
// Write the null-terminator.
ENSURE_BUFFER(sizeof(WCHAR));
if (OK_BUFFER)
*buffer = UNICODE_NULL;
else if (Buffer && BufferLength != 0) // try to null-terminate even if this function fails
*Buffer = UNICODE_NULL;
... | fim | winsiderss/systeminformer | c |
<|fim_prefix|>/*
* This file contains the actual formatting code used by various public interface functions.
*
* There are three macros defined by the parent function which control how this code writes the
* formatted string:
* * ENSURE_BUFFER - This macro is passed the number of bytes required whenever characters... | 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 <phbase.h>
#include <charconv>
extern NTSTATUS PhErrcToNtStatus(
_In_ std::errc ec
);
/**
* Converts a singl... | fim | winsiderss/systeminformer | cpp |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2013
* dmex 2017-2023
*
*/
#include <ph.h>
#include <phcrypt.h>
#include <phintrnl.h>
#include <trace.h>
PVOID PhInstanceHandle =... | 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-2016
* dmex 2017-2023
*
*/
#include <ph.h>
#include <math.h>
#include <graph.h>
#include <guisup.h>
#define COLORREF_TO_BITS(Colo... | fim | winsiderss/systeminformer | c |
<|fim_suffix|> TRUE;
}
return FALSE;
}
_Success_(return)
BOOLEAN PhListView_GetItemText(
_In_ PPH_LISTVIEW_CONTEXT Context,
_In_ LONG ItemIndex,
_In_ LONG SubItemIndex,
_Out_writes_(BufferSize) PWSTR Buffer,
_In_ LONG BufferSize
)
{
if (Context->ListViewInterface && NtCurrentThread... | fim | winsiderss/systeminformer | cpp |
<|fim_prefix|>/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2011
*
*/
#include <phbase.h>
#include <handle.h>
#include <handlep.h>
static PH_INITONCE PhHandleTableInitOnce = PH_INITONCE_INIT;
stati... | 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-2015
* dmex 2017-2023
*
*/
#include <ph.h>
#include <hexedit.h>
#include <guisup.h>
#include <hexeditp.h>
// Code originally from... | fim | winsiderss/systeminformer | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.