text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>ectionType = L"File"; else if (basicInfo.AllocationAttributes & SEC_IMAGE) sectionType = L"Image"; else if (basicInfo.AllocationAttributes & SEC_RESERVE) sectionType = L"Reserve"; PhInitFormatS(&fo...
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-2023 * */ #include <ph.h> #include <phnet.h> #include <winhttp.h> #include <apiimport.h> #include <mapldr.h> static const PH_FLAG_MAPPIN...
fim
winsiderss/systeminformer
c
<|fim_suffix|>; PhInitFormatSR(&format[3], PhNtPathSeparatorString); PhInitFormatSR(&format[4], gidString->sr); if (!PhFormatToBuffer(format, 1, formatBuffer, sizeof(formatBuffer), &returnLength)) { PhDereferenceObject(gidString); return STATUS_NO_MEMORY; ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ferHdc, 0, 0, Icon, Width, Height, 0, NULL, DI_NORMAL); // If the icon did not have an alpha channel, we need to convert the buffer to PARGB. PhpConvertToPArgb32IfNeeded(bufferedPaint, hdc, Icon, Width, Height); // This will write the buffer contents to the destination bitmap. ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>/ Try to get a handle with query limited information + vm read access. if (!NT_SUCCESS(status = PhOpenProcess( &processHandle, PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_VM_READ, ProcessId ))) { processHandle = NULL; ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>formationResourceManager); PH_DECLARE_IMPORT(NtQueryInformationTransaction); PH_DECLARE_IMPORT(NtQueryInformationTransactionManager); PH_DECLARE_IMPORT(NtAllocateVirtualMemoryEx); PH_DECLARE_IMPORT(NtCreateProcessStateChange); PH_DECLARE_IMPORT(NtChangeProcessState); PH_DECLARE_IMPORT(NtCreateThreadStateC...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2017-2023 * */ #ifndef _PH_APPRESOLVER_H #define _PH_APPRESOLVER_H EXTERN_C_START HRESULT PhAppResolverGetAppIdForProcess( _In_ HANDLE ProcessId, _...
fim
winsiderss/systeminformer
c
<|fim_suffix|>result_maybenull_ PWSTR* ppszDisplayNameResource, _Out_opt_ BOOL* pfPinnable ); DECLSPEC_XFGVIRT(IApplicationResolver2, GenerateShortcutFromWindowProperties) HRESULT (STDMETHODCALLTYPE* GenerateShortcutFromWindowProperties)( _In_ IApplicationResolver2* This, _Outpt...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ength ); PHLIBAPI BOOLEAN PhBase64Decode( _In_reads_(InputLength) PCSTR Input, _In_ SIZE_T InputLength, _Out_writes_bytes_(OutputLength) PUCHAR Output, _In_ SIZE_T OutputLength, _Out_opt_ PSIZE_T ResultLength ); #endif <|fim_prefix|>/* * Copyright (c) 2026 Winsider Seminars ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>_BCD_OBJECT_LIST, *PPH_BCD_OBJECT_LIST; PPH_LIST PhBcdQueryFirmwareBootApplicationList( VOID ); PPH_LIST PhBcdQueryBootApplicationList( _In_ BOOLEAN EnumerateAllObjects ); VOID PhBcdDestroyBootApplicationList( _In_ PPH_LIST ObjectApplicationList ); EXTERN_C_END #endif <|fim_pr...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj3<|fim_suffix|>.h" #undef T #define T FLOAT #include "circbuf_h.h" #undef T #define T DOUBLE #include "circbuf_h.h" #undef T #endif <|fim_middle|>2 ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>>Size; // Modulo is dividend-based. return Buffer->Data[(((Buffer->Index + Index) % size) + size) % size]; #endif } FORCEINLINE VOID T___(PhSetItemCircularBuffer, T)( _Inout_ T___(PPH_CIRCULAR_BUFFER, T) Buffer, _In_ LONG Index, _In_ T Value ) { #ifdef PH_CIRCULAR_BUFFER_POWER_OF_...
fim
winsiderss/systeminformer
c
<|fim_suffix|> ColorBox_ThemeSupport(hWnd, Enable) \ SendMessage((hWnd), CBCM_THEMESUPPORT, (WPARAM)(Enable), 0); #ifdef __cplusplus } #endif #endif <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * ...
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 2019 * */ #ifndef _PH_CPYSAVE_H #define _PH_CPYSAV<|fim_suffix|>Lines( _In_ HWND TreeNewHandle, _In_ ULONG Mod...
fim
winsiderss/systeminformer
c
<|fim_suffix|> } #define PH_DOUBLE_DELTA_INIT { 0.0, 0.0 } #define PH_UINT32_DELTA_INIT { 0UL, 0UL } #define PH_UINT64_DELTA_INIT { 0ULL, 0ULL } #define PH_UINTPTR_DELTA_INIT { 0, 0 } #endif <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of Syst...
fim
winsiderss/systeminformer
c
<|fim_suffix|>S { ULONG NumberOfObjects; PH_DSPICK_OBJECT Objects[1]; } PH_DSPICK_OBJECTS, *PPH_DSPICK_OBJECTS; PHLIBAPI VOID PhFreeDsObjectPickerDialog( _In_ PVOID PickerDialog ); PHLIBAPI PVOID PhCreateDsObjectPickerDialog( _In_ ULONG Flags ); _Success_(return) PHLIBAPI BOOLEAN PhShowDsObje...
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 * */ #ifndef _PH_EMENU_H #define _PH_EMENU_H EXTERN_C_START #define PH_EMENU_DISABLED 0x1 #define PH_EMENU...
fim
winsiderss/systeminformer
c
<|fim_suffix|> unsigned long long p_vaddr; // Segment virtual address. unsigned long long p_paddr; // Segment physical address. unsigned long long p_filesz; // Segment size in file. unsigned long long p_memsz; // Segment size in memory. unsigned long long p_align; // Segment alignment. } ELF64_IMAGE_SEG...
fim
winsiderss/systeminformer
c
<|fim_suffix|>b1210 = 0x00ef, prodidLinker1210 = 0x00f0, prodidMasm1210 = 0x00f1, prodidUtc1810_C = 0x00f2, prodidUtc1810_CPP = 0x00f3, prodidUtc1810_CVTCIL_C = 0x00f4, prodidUtc1810_CVTCIL_CPP = 0x00f5, prodidUtc1810_LTCG_C = 0x00f6, prodidUtc1810_LTCG_CPP = 0x00f7, prodidUtc1810_LT...
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 * */ #ifndef _PH_FASTLOCK_H #define _PH_FASTLOCK_H // FastLock is a port of FastResourceLock from PH 1.x. #ifdef __cplusplus extern...
fim
winsiderss/systeminformer
c
<|fim_suffix|>_FILE_POOL Pool, _In_ PVOID Block ); PHLIBAPI BOOLEAN PhFreeFilePoolByRva( _Inout_ PPH_FILE_POOL Pool, _In_ ULONG Rva ); PHLIBAPI VOID PhReferenceFilePool( _Inout_ PPH_FILE_POOL Pool, _In_ PVOID Address ); PHLIBAPI VOID PhDereferenceFilePool( _Inout_ PPH_FILE_POOL Po...
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-2013 * */ #ifndef _PH_FILEPOOLP_H #define _PH_FILEPOOLP_H typedef struct _PH_FILE_POOL_VIEW { LIST_ENTRY ByIndexListEntry; PH_AVL...
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 * */ #ifndef _PH_FILESTREAM_H #define _PH_FILESTREAM_H #ifdef __cplusplus extern "C" { #endif // Core flags (PhCreateFileStream2) /** In...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2010-2016 * */ #ifndef _PH_FILESTREAMP_H #define _PH_FILESTREAMP_H _Function_class_(PH_TYPE_DELETE_PROCEDURE) VOID NTAPI PhpFileStreamDeleteProcedure( _...
fim
winsiderss/systeminformer
c
<|fim_suffix|>efine GCM_SETTOOLTIP (WM_USER + 1306) #define GCM_UPDATETOOLTIP (WM_USER + 1307) #define GCM_GETOPTIONS (WM_USER + 1308) #define GCM_SETOPTIONS (WM_USER + 1309) #define GCM_UPDATE (WM_USER + 1310) #define GCM_SETCALLBACK (WM_USER + 1311) #define Graph_GetDrawInfo(hWnd, DrawInfo) \ SendMessage((hWnd),...
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 * */ #ifndef _PH_PHGUI_H #define _PH_PHGUI_H #include <commctrl.h> #include <guisupview.h> EXTERN_C_START ...
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 2016-2023 * */ #ifndef _PH_GUISUPP_H #define _PH_GUISUPP_H typedef HRESULT (WINAPI* _GetThemeClass)( _In_ HTHEME ...
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 2016-2023 * */ #ifndef _PH_GUISUPPVIEW_H #define _PH_GUISUPPVIEW_H // // Listview2 (Undocumented) // #ifndef LVM_QUE...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2016 * */ #ifndef _PH_HANDLE_H #define _PH_HANDLE_H #ifdef __cplusplus extern "C" { #endif struct _PH_HANDLE_TABLE; typedef struct _PH_HANDLE_TABLE *PPH_HA...
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 * */ #ifndef _PH_HANDLEP_H #define _PH_HANDLEP_H #define PH_HANDLE_TABLE_ENTRY_TYPE 0x1 #define PH_HANDLE_TABLE_ENTRY_IN_USE 0x0 #de...
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 * */ #ifndef _PH_HEXEDIT_H #define _PH_HEXEDIT_H #ifdef __cplusplus extern "C" { #endif #define PH_HEXEDIT_CLASSNAME L"PhHexEdit" ...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2010-2016 * */ #ifndef _PH_HEXEDITP_H #define _PH_HEXEDITP_H typedef struct _PHP_HEXEDIT_CONTEXT { PUCHAR Data; LONG Length; BOOLEAN UserBuffer;...
fim
winsiderss/systeminformer
c
<|fim_suffix|> PSECURITY_DESCRIPTOR SecurityDescriptor ); PHLIBAPI NTSTATUS NTAPI PhCallNtQueryFileInformationWithTimeout( _In_ HANDLE Handle, _In_ FILE_INFORMATION_CLASS FileInformationClass, _Out_writes_bytes_opt_(FileInformationLength) PVOID FileInformation, _In_ ULONG FileInformationLength, ...
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 * */ #ifndef _PH_HVSOCKETCONTROL_H #define _PH_HVSOCKETCONTROL_H #include <hvsocket.h> EXTERN_C_START #ifdef _WIN64 PHLIBAPI NTSTATUS ...
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 * */ #ifndef _PH_PHJSON_H #define _PH_PHJSON_H EXTERN_C_START typedef struct _JSON_ARRAY_LIST_OBJECT { PCSTR Key; PVOID Entry; }...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserve<|fim_suffix|>; #endif <|fim_middle|>d. * * This file is part of System Informer. * * Authors: * * jxy-s 2022 * */ #ifndef _PH_KPHCOMMS_H #define _PH_KPHCOMMS_H #include <kphmsg.h> /** * \brief Callback 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 2009-2016 * dmex 2017-2023 * jxy-s 2021-2022 * */ #ifndef _PH_KPHUSER_H #define _PH_KPHUSER_H #include <kphapi.h> #include <kph...
fim
winsiderss/systeminformer
c
<|fim_suffix|> ); EXTERN_C_END #endif // _PH_LSAMSUP_H <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2023 * */ #ifndef _PH_LSAMSUP_H #define _PH_LSAMSUP_H EXTERN_C_START PHLIBAPI NTS...
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-2022 * */ #ifndef _PH_LSASUP_H #define _PH_LSASUP_H #ifdef __cplusplus extern "C" { #endif PHLIBAPI NTSTATUS NT...
fim
winsiderss/systeminformer
c
<|fim_suffix|>VE { PVOID ViewBase; SIZE_T Size; PH_MAPPED_ARCHIVE_MEMBER FirstLinkerMember; PH_MAPPED_ARCHIVE_MEMBER SecondLinkerMember; PH_MAPPED_ARCHIVE_MEMBER LongnamesMember; BOOLEAN HasLongnamesMember; PPH_MAPPED_ARCHIVE_MEMBER FirstStandardMember; PPH_MAPPED_ARCHIVE_MEMBER LastSt...
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 <|fim_suffix|>me, _Out_ PVOID *ProcedureAddress, _Out_opt_ PVOID *DllBase ) { PH_STRINGREF fileName; ...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reser<|fim_suffix|>er. * * Authors: * * wj32 2009-2016 * dmex 2017-2018 * */ #ifndef _PH_PH_H #define _PH_PH_H #include <phbase.h> #include <phnative.h> #include <phnativeinl.h> #include <phutil.h> #endif <|fi...
fim
winsiderss/systeminformer
c
<|fim_suffix|>le( _In_ HANDLE SocketHandle, _In_ ULONG QueryMode, _Out_ PHANDLE TdiHandle ); PHLIBAPI NTSTATUS NTAPI PhAfdQueryFormatTdiDeviceName( _In_ HANDLE SocketHandle, _In_ ULONG QueryMode, _Outptr_ PPH_STRING* TdiDeviceName ); PHLIBAPI NTSTATUS NTAPI PhAfdQueryAddress( _In_ ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>_Pragma("clang diagnostic pop") #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L #define typeof __typeof__ #endif #else #define PH_CLANG_DIAGNOSTIC_PUSH() #define PH_CLANG_DIAGNOSTIC_IGNORED(x) #define PH_CLANG_DIAGNOSTIC_POP() #endif #include <phnt_windows.h> #include <phnt.h> #include <phsu...
fim
winsiderss/systeminformer
c
<|fim_suffix|>d 22631 #define WINDOWS_11_24H2 117 // October, 2024 // Build 26100 #define WINDOWS_11_25H2 118 // October, 2025 // Build 26200 #define WINDOWS_11_26H1 119 // Build 28000 #define WINDOWS_MAX WINDOWS_11_26H1 #define WINDOWS_NEW ULONG_MAX #ifdef DEBUG #define dprintf(format, ...) ...
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 2024 * */ #ifndef _PH_CONSOLE_H #define _PH_CONSOLE_H PHLIBAPI NTSTATUS NTAPI PhAttachConsole( _In_ HANDLE ProcessId ); PHLIBAPI HAND...
fim
winsiderss/systeminformer
c
<|fim_suffix|>E_T SignatureLength ); EXTERN_C NTSTATUS NTAPI PhSymCryptRsaPssSignBlob( _In_reads_bytes_(KeyBlobLength) PCVOID KeyBlob, _In_ SIZE_T KeyBlobLength, _In_ PH_SYMCRYPT_HASH_ALGORITHM HashAlgorithm, _In_ SIZE_T SaltLength, _In_reads_bytes_(HashLength) PCVOID Hash, _In_ SIZE_T Hash...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ist[]; extern CONST PH_STRINGREF PhKernelFileAliasList[]; extern CONST PH_STRINGREF PhSecureKernelFileAliasList[]; extern CONST PH_STRINGREF PhHypervisorFileAliasList[]; extern CONST PH_STRINGREF PhOsLoaderFileAliasList[]; extern CONST PH_STRINGREF PhOsBootFileAliasList[]; EXTERN_C_END #endif <|fim_pref...
fim
winsiderss/systeminformer
c
<|fim_suffix|>N MemoryError64; SMBIOS_MANAGEMENT_DEVICE_INFORMATION ManagementDevice; SMBIOS_MANAGEMENT_DEVICE_COMPONENT_INFORMATION ManagementDeviceComponent; SMBIOS_MANAGEMENT_DEVICE_THRESHOLD_INFORMATION ManagementDeviceThreshold; SMBIOS_MEMORY_CHANNEL_INFORMATION MemoryChannel; SMBIOS_IPMI_DEVIC...
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 * dmex 2023 * */ /** * Intrinsics and SIMD wrapper header for cross-platform support. * * This header provides a unified inte...
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 2023 * */ #ifndef _PH_PHINTRNL_H #define _PH_PHINTRNL_H NTSTATUS PhInitializeRuntimeInformation( VOID ); NTSTATUS...
fim
winsiderss/systeminformer
c
<|fim_suffix|> NULL ); } FORCEINLINE NTSTATUS PhGetProcessIsCetEnabled( _In_ HANDLE ProcessHandle, _Out_ PBOOLEAN IsCetEnabled, _Out_ PBOOLEAN IsCetStrictModeEnabled ) { NTSTATUS status; PROCESS_MITIGATION_POLICY_INFORMATION policyInfo; policyInfo.Policy = ProcessUserShadowStack...
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 * */ #ifndef _PH_PHNET_H #define _PH_PHNET_H EXTERN_C_START #ifndef __WINDOT11_H__ #define __WINDOT11_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-2015 * dmex 2017-2023 * */ #ifndef _PH_PHSUP_H #define _PH_PHSUP_H // This header file provides some useful definitions specific ...
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 * */ #ifndef _PH_PHUTIL_H #define _PH_PHUTIL_H EXTERN_C_START extern CONST WCHAR *PhSizeUnitNames[7]; exte...
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 2021-2022 * */ #ifndef _PH_PROVIDER_H #define _PH_PROVIDER_H #ifdef __cplusplus extern "C" { #endif #if defined(DEBU...
fim
winsiderss/systeminformer
c
<|fim_suffix|>Inout_ PPH_QUEUED_LOCK Lock, _In_opt_ PLARGE_INTEGER Timeout ); #define PH_CONDITION_WAIT_QUEUED_LOCK 0x1 #define PH_CONDITION_WAIT_CRITICAL_SECTION 0x2 #define PH_CONDITION_WAIT_FAST_LOCK 0x4 #define PH_CONDITION_WAIT_LOCK_TYPE_MASK 0xfff #define PH_CONDITION_WAIT_SHARED 0x1000 #define PH_CONDI...
fim
winsiderss/systeminformer
c
<|fim_suffix|>uto-release pool. */ #define PH_AUTO_POOL_STATIC_SIZE 64 /** The maximum size of the dynamic array for it to be kept after the auto-release pool is drained. */ #define PH_AUTO_POOL_DYNAMIC_BIG_SIZE 256 /** * An auto-dereference pool can be used for semi-automatic reference counting. Batches of objects ...
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 * */ #ifndef _PH_REFP_H #define _PH_REFP_H #define PH_OBJECT_TYPE_TABLE_SIZE 256 /** The object was allocated from the small free l...
fim
winsiderss/systeminformer
c
<|fim_suffix|>hCreateSearchControlEx( _In_ HWND ParentWindowHandle, _In_ HWND SearchWindowHandle, _In_opt_ PCWSTR BannerText, _In_ PVOID ImageBaseAddress, _In_ PCWSTR SearchButtonResource, _In_ PCWSTR SearchButtonActiveResource, _In_ PCWSTR CaseButtonResource, _In_ PCWSTR RegexButtonReso...
fim
winsiderss/systeminformer
c
<|fim_suffix|>mation, DACL_SECURITY_INFORMATION) || FlagOn(SecurityInformation, ATTRIBUTE_SECURITY_INFORMATION) || FlagOn(SecurityInformation, PROTECTED_DACL_SECURITY_INFORMATION) || FlagOn(SecurityInformation, UNPROTECTED_DACL_SECURITY_INFORMATION) ) { SetFlag(access, WRITE_...
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 2016-2023 * */ #ifndef _PH_SECEDITP_H #define _PH_SECEDITP_H typedef enum _PH_SE_OBJECT_TYPE { PH_SE_DEFA<|fim_su...
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 * */ #ifndef _PH_SECWMI_H #define _PH_SECWMI_H #include <mi.h> EXTERN_C_START PHLIBAPI HRESULT NTAPI PhGetWbemLocatorClass( _O...
fim
winsiderss/systeminformer
c
<|fim_suffix|> */ FORCEINLINE NTSTATUS PhLoadSettings2( _In_ PPH_STRING FileName ) { if (PhIsNullOrEmptyString(FileName)) return STATUS_UNSUCCESSFUL; return PhLoadSettings(&FileName->sr); } /** * Saves settings to the specified file path, returning STATUS_UNSUCCESSFUL if the path is empty. *...
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 20<|fim_suffix|>G_SEARCH_RESULT { PVOID Address; SIZE_T Length; PH_STRINGREF String; BOOLEAN Unicode; } PH_STRING_SEARCH_RESULT, *...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2010-2016 * dmex 2018-2023 * */ #ifndef _PH_SVCSUP_H #define _PH_SVCSUP_H typedef struct _PH_SVC_HOST_POLICY_INFO { ULONG AuthenticationCapabili...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2010-2016 * dmex 2017-2023 * */ #ifndef _PH_SYMPRV_H #define _PH_SYMPRV_H EXTERN_C_START extern PPH_OBJECT_TYPE PhSymbolProviderType; extern PH_CAL...
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-2023 * */ #ifndef _PH_SYMPRVP_H #define _PH_SYMPRVP_H // undocumented typedef BOOL (WINAPI *_SymGetDiaSource)( _I...
fim
winsiderss/systeminformer
c
<|fim_suffix|>define T___(f,T) TEMPLATE_(f,T) #endif <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2010 * */ #<|fim_middle|>ifndef _PH_TEMPL_H #define _PH_TEMPL_H #define TEMPLATE_(f,T) f...
fim
winsiderss/systeminformer
c
<|fim_suffix|>y.lib is missing" #endif #if __has_include("../../tools/thirdparty/winsdk/dia2.h") #include "../../tools/thirdparty/winsdk/dia2.h" #else #error "ThirdParty.lib is missing" #endif #if __has_include("../../tools/thirdparty/winsdk/dia3.h") #include "../../tools/thirdparty/winsdk/dia3.h" #else #error "Third...
fim
winsiderss/systeminformer
c
<|fim_suffix|>LING,EXITFUNC=_traceElapsed}(MSG,...); // USESUFFIX(PhTraceFuncExit," exit (elapsed=%llu)",_traceElapsed); // // end_wpp // #ifdef SI_NO_WPP #define PhTracePrint(LEVEL,EVENT,MSG,...) ((void)(MSG, ## __VA_ARGS__)) #define PhTrace(MSG, ...) ((void)(MSG, ## __VA_ARGS__)) #define PhTraceInfo(...
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 2008-2016 * dmex 2017-2024 * */ #ifndef _PH_TREENEW_H #define _PH_TREENEW_H EXTERN_C_START #define PH_TREENEW_CLASSNAME L"PhTreeNew" ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>_ PPH_TREENEW_CONTEXT Context ); VOID PhTnpScroll( _In_ PPH_TREENEW_CONTEXT Context, _In_ LONG DeltaRows, _In_ LONG DeltaX ); VOID PhTnpProcessScroll( _In_ PPH_TREENEW_CONTEXT Context, _In_ LONG DeltaRows, _In_ LONG DeltaX ); BOOLEAN PhTnpCanScroll( _In_ PPH_TREE...
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 2013-2016 * dmex 2017-2023 * */ #ifndef _PH_VERIFY_H #define _PH_VERIFY_H EXTERN_C_START #define PH_VERIFY_DEFAULT_SIZE_LIMIT (32 * 1...
fim
winsiderss/systeminformer
c
<|fim_suffix|>_FUNCTION) BOOLEAN PhpVerifyCacheHashtableEqualFunction( _In_ PVOID Entry1, _In_ PVOID Entry2 ); _Function_class_(PH_HASHTABLE_HASH_FUNCTION) ULONG PhpVerifyCacheHashtableHashFunction( _In_ PVOID Entry ); typedef struct _CATALOG_INFO { ULONG cbStruct; _Field_z_ WCHAR wszCatal...
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 * */ #ifndef _PH_WORKQUEUE_H #define _PH_WORKQUEUE_H #ifdef __cplusplus extern "C" { #endif #if defined(DEBUG) extern PPH_LIST PhDbgWork...
fim
winsiderss/systeminformer
c
<|fim_suffix|>_ PPH_WORK_QUEUE_ITEM WorkQueueItem ); HANDLE PhpGetSemaphoreWorkQueue( _Inout_ PPH_WORK_QUEUE WorkQueue ); BOOLEAN PhpCreateWorkQueueThread( _Inout_ PPH_WORK_QUEUE WorkQueue ); _Function_class_(USER_THREAD_START_ROUTINE) NTSTATUS PhpWorkQueueThreadStart( _In_ PVOID Parameter ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>LxssImageVersionInfo( _Inout_ PPH_IMAGE_VERSION_INFO ImageVersionInfo, _In_ PPH_STRINGREF FileName ); NTSTATUS PhCreateProcessLxss( _In_ PPH_STRING DistributionGuid, _In_ PPH_STRING DistributionName, _In_ PPH_STRING DistributionCommand, _Out_ PPH_STRING* Result ); EXTERN_...
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-2023 * */ #include <ph.h> #include <phbasesup.h> #include <phutil.h> #include <json.h> #include <thirdparty.h> static PVOID json_get_obje...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ssage(KphMsgQueryVolumeInformationFile); msg->User.QueryVolumeInformationFile.ProcessHandle = ProcessHandle; msg->User.QueryVolumeInformationFile.FileHandle = FileHandle; msg->User.QueryVolumeInformationFile.FsInformationClass = FsInformationClass; msg->User.QueryVolumeInformationFile.FsIn...
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-2025 * dmex 2022-2025 * */ #include <ph.h> #include <kphcomms.h> #include <kphuser.h> #include <kphringbuff.h> #include <mapldr.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: * * dmex 2023 * */ #include <ph.h> #include <ntsam.h> #include <lsasup.h> #include <lsamsup.h> /** * Opens a handle to the SAM server. * * \param Sa...
fim
winsiderss/systeminformer
c
<|fim_suffix|>e containing the mapping * information for the object type. * \remarks This function modifies the access mask in-place, replacing generic access rights * with their corresponding specific rights. This is a replacement for the RtlMapGenericMask * function and is useful when working with access control ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ionInfo; versionInfo = PhAllocateZero(sizeof(PH_ELF_VERSION_RECORD)); versionInfo->Version = versionAux->vna_other; versionInfo->Name = PTR_ADD_OFFSET(SymbolStringTable, versionAux->vna_name); versionInfo->FileName = PTR_ADD_OFFSET(SymbolStringTable, versio...
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 2019 * */ /* * This file contains functions to load and retrieve information for library/archive files (lib). * The file ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> status = STATUS_NO_MEMORY; } NtClose(fileHandle); return status; } /** * \brief Wrapper which is essentially FilterSendMessage. * * \param[in] Port Filter port handle. * \param[in] InBuffer Input buffer. * \param[in] InBufferSize Input buffer size. * \param[out] OutputBuffer Out...
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-2024 * */ #include <ph.h> #include <apiimport.h> /** * Create a new job object in the object namespace. * ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>icodeString(ValueName, &valueName)) return STATUS_NAME_TOO_LONG; } else { RtlInitEmptyUnicodeString(&valueName, NULL, 0); } status = NtSetValueKey( KeyHandle, &valueName, 0, ValueType, Buffer, BufferLength ); ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>= FALSE; break; } } while (basicInfo.AllocationBase == allocationBase); if ((type == PH_MODULE_TYPE_MAPPED_FILE && !(Flags & PH_ENUM_GENERIC_MAPPED_FILES)) || (type == PH_MODULE_TYPE_MAPPED_IMAGE && !(Flags & PH_ENUM_GENERIC_MAPP...
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-2024 * */ #include <ph.h> #include <phnative.h> /* * Opens a directory object. * * \param DirectoryHandle A v...
fim
winsiderss/systeminformer
c
<|fim_suffix|> if (RtlGetAppContainerParent_Import()) RtlGetAppContainerParent_Import()(tokenAppContainer.AppContainer.Sid, &appContainerSidParent); } } if (!NT_SUCCESS(status = RtlULongAdd(SECURITY_DESCRIPTOR_MIN_LENGTH, sizeof(ACL), &defaultAclSize))) ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>onId, Wait )) { return STATUS_SUCCESS; } return PhGetLastWin32ErrorAsNtStatus(); } /** * Frees memory allocated by Terminal Services functions. * * \param Buffer The buffer to free. */ VOID PhWinStationFreeMemory( _In_ PVOID Buffer ) { WinStationFreeMe...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * diversenok 2025 * */ #include <ph.h> #include <phafd.h> #include <phnet.h> #include <hndlinfo.h> #include <ws2ipdef.h> #include <ws2bth.h> #include <afunix.h> #inc...
fim
winsiderss/systeminformer
c
<|fim_suffix|> ); if (NT_SUCCESS(status)) { *ObjectPath = PhCreateStringFromUnicodeString(&objectPath); RtlFreeUnicodeString(&objectPath); } return status; } /** * Checks whether the specified privilege is enabled for the token. * * \param TokenHandle A handle to a token. * \pa...
fim
winsiderss/systeminformer
c
<|fim_suffix|> if (Timeout) { *Timeout = propertiesInfo->Timeout; } if (Outcome) { *Outcome = propertiesInfo->Outcome; } if (Description) { *Description = PhCreateStringEx( propertiesInfo->Description, propertiesInfo->DescriptionLength ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ndowHandle ) { NTSTATUS status; CONSOLE_END_TASK consoleInfo; if (!ConsoleControl_Import()) return STATUS_NOT_SUPPORTED; consoleInfo.ProcessId = ProcessId; consoleInfo.WindowHandle = WindowHandle; consoleInfo.ConsoleEventCode = CTRL_C_EVENT; consoleInfo.ConsoleFla...
fim
winsiderss/systeminformer
c
<|fim_suffix|> Gets the current run ID of a provider. * * \param Registration A pointer to the registration object for a provider. */ ULONG PhGetRunIdProvider( _In_ PPH_PROVIDER_REGISTRATION Registration ) { return Registration->RunId; } /** * Gets whether a provider is enabled. * * \param Registrati...
fim
winsiderss/systeminformer
c
<|fim_suffix|> (volatile PVOID *)&QueuedLock->Value, (PVOID)newValue, (PVOID)value )) == value) break; // Either someone pushed a wait block onto the list or someone released ownership. In either // case we need to go back. value = new...
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 * */ #include <phbase.h> #include <refp.h> #include <phintrnl.h> #include <workqueue.h> PPH_OBJECT_TYPE PhObjectTypeObject = NULL; ...
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 2012-2023 * jxy-s 2023-2024 * */ #include <ph.h> #include <searchbox.h> #include <guisup.h> #include <settings.h> #include <vssym32.h> #...
fim
winsiderss/systeminformer
c