text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>ttributes", JOB_OBJECT_SET_ATTRIBUTES, TRUE, TRUE, NULL }, { L"Set security attributes", JOB_OBJECT_SET_SECURITY_ATTRIBUTES, TRUE, TRUE, NULL }, { L"Terminate", JOB_OBJECT_TERMINATE, TRUE, TRUE, NULL } }; ACCESS_ENTRIES(Key) { { L"Full control", KEY_ALL_ACCESS, TRUE, TRUE, NULL }, { L"Rea...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ityInformation, GROUP_SECURITY_INFORMATION)) { if (NT_SUCCESS(PhGetGroupSecurityDescriptor(SecurityDescriptor, &group, &defaulted))) SetFlag(securityInformation, GROUP_SECURITY_INFORMATION); } if (FlagOn(SecurityInformation, DACL_SECURITY_INFORMATION)) { if (NT...
fim
winsiderss/systeminformer
c
<|fim_suffix|>seAddress"); if (baseAddress && MI_Instance_GetElement( instance, L"Antecedent", &value, &type, NULL, NULL ) == MI_RESULT_OK && type == MI_REFERENCE ...
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-2023 * jxy-s 2024 * */ #include <ph.h> #include <strsrch.h> typedef struct _PH_STRING_<|fim_suffix|> if (!...
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 2019-2024 * */ #include <ph.h> #include <subprocesstag.h> #include <svcsup.h> #include <mapldr.h> static CONST PH_STR...
fim
winsiderss/systeminformer
c
<|fim_suffix|>C PPH_STRING PhGetObjectTypeStacktraceToString( _In_ PVOID Object ) { #ifdef DEBUG PPH_OBJECT_HEADER objectHeader = PhObjectToObjectHeader(Object); string result; __std_stacktrace_to_string( objectHeader->StackBackTrace, ARRAYSIZE(objectHeader->StackBackTrace), ...
fim
winsiderss/systeminformer
cpp
<|fim_suffix|> if (value == 0 || value == PH_RUNDOWN_ACTIVE) return; waitBlockInitialized = FALSE; while (TRUE) { value = ReadULongPtrAcquire(&Protection->Value); count = value >> PH_RUNDOWN_REF_SHIFT; // Initialize the wait block if necessary. if (count != 0 && ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>return VrBadSignature; } // Search the system catalogs. catInfoHandle = CryptCATAdminEnumCatalogFromHash( catAdminHandle, fileHash, fileHashLength, 0, NULL ); if (catInfoHandle) { CATALOG_INFO ci = { sizeof(CATALOG_INFO) }; ...
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 <workqueue.h> #include <phintrnl.h> #include <phnativeinl.h> #include <phnative.h> #include <work...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2019-2025 * */ #include <ph.h> #include <wslsup.h> typedef struct _PH_WSL_ENUM_CONTEXT { BOOLEAN Found; PPH_STRINGREF FileName; PPH_STRING Distr...
fim
winsiderss/systeminformer
c
<|fim_suffix|>_NETWORK_EVENTS_INFO { ULONG PollEvents; // AFD_POLL_* NTSTATUS EventStatus[AFD_NUM_POLL_EVENTS]; } AFD_ENUM_NETWORK_EVENTS_INFO, *PAFD_ENUM_NETWORK_EVENTS_INFO; // private typedef struct _AFD_DEFER_ACCEPT_INFO { LONG Sequence; BOOLEAN Reject; } AFD_DEFER_ACCEPT_INFO, *PAFD_DEFER_ACCEPT_I...
fim
winsiderss/systeminformer
c
<|fim_suffix|>eives the list of process identifiers (PIDs). SIZE_T ProcessIdCount; // [in, out] On input, specifies the number of elements the `ProcessIdBuffer` can hold. On output, receives the number of process IDs returned. } D3DKMT_ENUM_PROCESS_LIST, *PD3DKMT_ENUM_PROCESS_LIST; // rev /** * The D3DKMTEnum...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Debugger support functions * * This file is part of System Informer. */ #ifndef _NTDBG_H #define _NTDBG_H // // Debugging // /** * Causes a user-mode breakpoint to occur. */ NTSYSAPI VOID NTAPI DbgUserBreakPoint( VOID ); /** * Causes a breakpoint to occur. */ NTSYSAPI VOID NTAPI D...
fim
winsiderss/systeminformer
c
/* * Graphics device interface support * * This file is part of System Informer. */ #ifndef _NTGDI_H #define _NTGDI_H #define GDI_MAX_HANDLE_COUNT 0xFFFF // 0x4000 #define GDIK_MAX_HANDLE_COUNT 0x1000000 // GetMaxGdiHandleCount #define GDI_HANDLE_INDEX_SHIFT 0 #define GDI_HANDLE_INDEX_BITS 16 #define GDI_HANDLE_...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ue; // Either FeatureNumber or Index into RVAs array } IMAGE_BDD_DYNAMIC_RELOCATION, *PIMAGE_BDD_DYNAMIC_RELOCATION; // Function override relocation types in DVRT records. #define IMAGE_FUNCTION_OVERRIDE_INVALID 0 #define IMAGE_FUNCTION_OVERRIDE_X64_REL32 1 // 32-bit relative address from ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> NTAPI NtQueryDebugFilterState( _In_ ULONG ComponentId, _In_ ULONG Level ); _Kernel_entry_ NTSYSCALLAPI NTSTATUS NTAPI NtSetDebugFilterState( _In_ ULONG ComponentId, _In_ ULONG Level, _In_ BOOLEAN State ); _Kernel_entry_ NTSYSCALLAPI NTSTATUS NTAPI NtYieldExecution( VOID ...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Loader support functions * * This file is part of System Informer. */ #ifndef _NTLDR_H #define _NTLDR_H typedef struct _ACTIVATION_CONTEXT *PACTIVATION_CONTEXT; typedef struct _LDRP_LOAD_CONTEXT *PLDRP_LOAD_CONTEXT; // // DLLs // /** * The DLL_INIT_ROUTINE is the entry point for a DLL. * *...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Local Inter-process Communication support functions * * This file is part of System Informer. */ #ifndef _NTLPCAPI_H #define _NTLPCAPI_H // // ALPC Object Specific Access Rights // #define PORT_CONNECT 0x0001 #define PORT_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1) // // ALPC in...
fim
winsiderss/systeminformer
c
<|fim_suffix|>rivate typedef struct _PACKAGE_GLOBALIZATION_CONTEXT_REFERENCE { PVOID reserved; } *PACKAGE_GLOBALIZATION_CONTEXT_REFERENCE; // private typedef enum _PackageGlobalizationProperty { PackageGlobalizationProperty_ForceUtf8 = 1, // q: ULONG PackageGlobalizationProperty_UseWindowsDi...
fim
winsiderss/systeminformer
c
<|fim_suffix|>UCHAR LeadByte[MAXIMUM_LEADBYTES]; // Specifies the lead byte ranges. PUSHORT MultiByteTable; // Specifies a pointer to a MB translation table. PVOID WideCharTable; // Specifies a pointer to a WC translation table. PUSHORT DBCSRanges; ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>inkObject( _In_ HANDLE LinkHandle, _Inout_ PUNICODE_STRING LinkTarget, _Out_opt_ PULONG ReturnedLength ); /** * The SYMBOLIC_LINK_INFO_CLASS enumeration specifies symbolic link information classes. */ typedef enum _SYMBOLIC_LINK_INFO_CLASS { SymbolicLinkGlobalInformation = 1, // s: ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>perating system. // ULONG OSMinorVersion; // // Build number of the operating system. // USHORT OSBuildNumber; // // CSD version of the operating system. // USHORT OSCSDVersion; // // Platform ID of the operating system. // ULONG OSPlatformId; ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>size payload: // PF_ROBUST_PROCESS_ENTRY ProcessEntries[DeprioProcessCount + ExemptProcessCount]; // PF_ROBUST_FILE_ENTRY FileEntries[DeprioFileCount + ExemptFileCount]; // UCHAR Buffer[ANYSIZE_ARRAY]; } PF_ROBUSTNESS_CONTROL, *PPF_ROBUSTNESS_CONTROL; // rev typedef struct _PF_SCENARI...
fim
winsiderss/systeminformer
c
<|fim_suffix|>is instance of the device BusQueryDeviceSerialNumber = 4, // serial number for this device BusQueryContainerID = 5 // unique id of the device's physical container } BUS_QUERY_ID_TYPE, *PBUS_QUERY_ID_TYPE; // private typedef enum _DEVICE_TEXT_TYPE { DeviceTextDescription = 0, //...
fim
winsiderss/systeminformer
c
/* * Registry support functions * * This file is part of System Informer. */ #ifndef _NTREGAPI_H #define _NTREGAPI_H // // Registry // #define REG_MAX_KEY_VALUE_NAME_LENGTH 32767 #define REG_MAX_KEY_NAME_LENGTH 512 /** * The KEY_INFORMATION_CLASS structure represents the type of information to supply about a r...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ONG PresentFields; LARGE_INTEGER PasswordLastSet; LARGE_INTEGER BadPasswordTime; LARGE_INTEGER LockoutTime; ULONG BadPasswordCount; ULONG PasswordHistoryLength; _Field_size_bytes_(PasswordHistoryLength) PSAM_VALIDATE_PASSWORD_HASH PasswordHistory; } SAM_VALIDATE_PERSISTED_FIELDS, *...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Authorization functions * * This file is part of System Informer. */ #ifndef _NTSEAPI_H #define _NTSEAPI_H // // Privileges // #define SE_MIN_WELL_KNOWN_PRIVILEGE (2L) #define SE_CREATE_TOKEN_PRIVILEGE (2L) // Required to create a primary token. #define SE_ASSIGNPRIMARYTOKEN_PRIVI...
fim
winsiderss/systeminformer
c
<|fim_suffix|>MSESSIONCOMPLETE; // private typedef struct _SMEXECPGM { _In_ RTL_USER_PROCESS_INFORMATION ProcessInformation; _In_ BOOLEAN DebugFlag; } SMEXECPGM, *PSMEXECPGM; // private typedef struct _SMLOADDEFERED { _In_ ULONG SubsystemNameLength; _In_ _Field_size_bytes_(SubsystemNameLength) WCHAR S...
fim
winsiderss/systeminformer
c
<|fim_suffix|>N_CONTEXT_DATA_ASSEMBLY_INFORMATION_ROOT_ASSEMBLY 0x00000001 #define ACTIVATION_CONTEXT_DATA_ASSEMBLY_INFORMATION_POLICY_APPLIED 0x00000002 #define ACTIVATION_CONTEXT_DATA_ASSEMBLY_INFORMATION_ASSEMBLY_POLICY_APPLIED 0x00000004 #define ACTIVATION_CONTEXT_DATA_ASSEMBLY_INFORMATION_ROOT_POLICY_APPLIED 0x000...
fim
winsiderss/systeminformer
c
/* * Transaction Manager support functions * * This file is part of System Informer. */ #ifndef _NTTMAPI_H #define _NTTMAPI_H /** * The NtCreateTransactionManager routine creates a new transaction manager object. * * \param TmHandle A pointer to a caller-allocated variable that receives a handle to the new tra...
fim
winsiderss/systeminformer
c
<|fim_suffix|>turn A pointer to a variable that receives the new ALPC completion object. * \param[in] AlpcPort A handle to an ALPC port. * \param[in] Callback The extended callback function to execute for ALPC completions. * \param[in,out] Context Optional application-defined data to pass to the callback function. ...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Integer literal/constant support macros for typesafe integer types. * * This file is part of System Informer. */ // // Typed integer literal macros with MSVC compiler extensions and C99 portable fallbacks. // // MSVC: Employs Microsoft integer literal suffixes (i8/ui8, i16/ui16, i32/ui32,...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Win32k NT User definitions. * * This file is part of System Informer. */ #ifndef _NTUSER_H #define _NTUSER_H typedef struct _DOCONNECTDATA* PDOCONNECTDATA; typedef struct _CACHESTATISTICS* PCACHESTATISTICS; typedef struct _DONOTIFYDATA* PDONOTIFYDATA; _Kernel_entry_ NTSYSCALLAPI NTSTATUS NTAPI...
fim
winsiderss/systeminformer
c
<|fim_suffix|>tPatched : 1; // The process images are hot patched. // RS5 ULONG ReservedBits0 : 24; }; }; union { WOW64_POINTER(PVOID) KernelCallbackTable; WOW64_POINTER(PVOID) UserSharedInfoPtr; }; ULONG SystemReserved; ULONG AtlThunkSListPtr32; WOW6...
fim
winsiderss/systeminformer
c
<|fim_suffix|>XCEPTION_RECORD ExceptionRecord, _In_ PCONTEXT ContextRecord ); #endif // PHNT_VERSION >= PHNT_WINDOWS_10_20H1 _Kernel_entry_ NTSYSCALLAPI NTSTATUS NTAPI NtContinue( _In_ PCONTEXT ContextRecord, _In_ BOOLEAN TestAlert ); #if (PHNT_VERSION >= PHNT_WINDOWS_10) typedef enum _KCONTINUE_T...
fim
winsiderss/systeminformer
c
<|fim_suffix|>r, 2024 // Build 26100 #define PHNT_WINDOWS_11_25H2 117 // October, 2025 // Build 26200 #define PHNT_WINDOWS_NEW ULONG_MAX #ifndef PHNT_MODE // Auto-detect kernel mode when building with WDK or kernel headers. #if defined(_NTDDK_) || defined(_NTIFS_) || defined(_NTDRIVER_) #define PHNT_MODE PHN...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Native definition support * * This file is part of System Informer. */ #ifndef _PHNT_NTDEF_H #define _PHNT_NTDEF_H #ifndef _NTDEF_ #define _NTDEF_ // This header file provides basic NT types not included in Win32. If you have included winnt.h // (perhaps indirectly), you must use this file ins...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Win32 definition support * * This file is part of System Informer. */ #ifndef _PHNT_WINDOWS_H #define _PHNT_WINDOWS_H // This header file provides access to Win32, plus NTSTATUS values and some access mask values. #ifndef UNICODE #define UNICODE #endif #ifndef _CRT_SECURE_NO_WARNINGS #define ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> PCWSTR GroupName; } TAG_INFO_NAME_TAG_MAPPING_ELEMENT, *PTAG_INFO_NAME_TAG_MAPPING_ELEMENT; typedef struct _TAG_INFO_NAME_TAG_MAPPING_OUT_PARAMS { ULONG Count; PTAG_INFO_NAME_TAG_MAPPING_ELEMENT NameTagMappingElements; } TAG_INFO_NAME_TAG_MAPPING_OUT_PARAMS, *PTAG_INFO_NAME_TAG_MAPPING_OUT_PA...
fim
winsiderss/systeminformer
c
<|fim_suffix|>WSTR SidString, _Out_ PHANDLE TokenHandle ); // rev USERMGRAPI HRESULT NTAPI UMgrQueryUserTokenFromName( _In_ PCWSTR UserName, _Out_ PHANDLE TokenHandle ); // rev USERMGRAPI HRESULT NTAPI UMgrGetConstrainedUserToken( _In_opt_ HANDLE InputTokenHandle, _In_ ULONGLONG Context, ...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Window Station Support functions * * This file is part of System Informer. */ #ifndef _WINSTA_H #define _WINSTA_H // // Sessions // // Specifies the current server. #define WINSTATION_CURRENT_SERVER ((HANDLE)NULL) #define WINSTATION_CURRENT_SERVER_HANDLE ((HANDLE)NULL) #define WINSTAT...
fim
winsiderss/systeminformer
c
<|fim_suffix|> static PPH_OBJECT_TYPE PageContextType = NULL; static PH_INITONCE PageContextTypeInitOnce = PH_INITONCE_INIT; PASMPAGE_CONTEXT context; if (PhBeginInitOnce(&PageContextTypeInitOnce)) { PageContextType = PhCreateObjectType(L"DotNetPageContextObjectType", 0, NULL); PhEndI...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.01.0626 */ /* Compiler settings for clrdata.i...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // // Internal data access functionality. // //******************************************...
fim
winsiderss/systeminformer
c
<|fim_suffix|> C_ASSERT(FIELD_OFFSET(AppDomainEnumerationIPCBlock, LockInvalid) == 0x30); #endif #endif // _DBG_APPDOMAIN_H_ <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2015-2016 * */ //...
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-2016 * */ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT ...
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-2016 * */ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>-------------------------- // // dmex: This header has been highly modified. // Original: https://github.com/dotnet/coreclr/blob/master/src/ipcman/ipcshared.h #ifndef _IPC_SHARED_H_ #define _IPC_SHARED_H_ // This is the name of the file backed session's name on the LS (debuggee) // Name of the LegacyPri...
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-2016 * */ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT ...
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-2021 * */ #ifndef CLRETW_H #define CLRETW_H // Keywords #define CLR_GC_KEYWORD 0x1 #define CLR_GCHANDLE_KEYWORD...
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 2011-2024 * */ #include "dn.h" #include <appresolver.h> #include <mapimg.h> #include <mapldr.h> #include <symprv.h> #i...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2011-2013 * dmex 2016-2023 * */ #ifndef CLRSUP_H #define CLRSUP_H #include "clr/clrdata.h" #include "clr/sospriv.h" #include "clr/dacprivate.h" typ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>eanupExit; } appDomainEnumBlock = GetLegacyBlockTableEntry( Wow64, ipcControlBlockTable, eLegacyPrivateIPC_AppDomain ); appDomainsList = EnumerateAppDomainIpcBlockWow64( ProcessHandle, appDomainEnumBlock ...
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 2015-2024 * */ #ifndef DN_H #define DN_H #include <phdk.h> #include <workqueue.h> #include <settings.h> #include "re...
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|>text(propContext); } else if (flags & PH_CLR_CORE_3_0_ABOVE) { isDotNet = TRUE; AddAsmPageToPropContext(...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ne IDC_COUNTERS 1003 #define IDC_REFRESH 1003 #define IDC_LIST 1005 #define IDC_SEARCHEDIT 1035 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VA...
fim
winsiderss/systeminformer
c
<|fim_suffix|> } IXCLRDataStackWalk_Release(stackWalk); } IXCLRDataTask_Release(task); } #endif } <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2010-2015 *...
fim
winsiderss/systeminformer
c
<|fim_suffix|> break; } PhFree(inBuffer); } <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2015 * dmex 2017-2021 * */ #include "dn.h" #include "svcext.h" #include "cl...
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-2021 * */ #ifndef SVCEXT_H #define SVCEXT_H // API typedef enum _DN_API_NUMBER { DnGetRuntimeNameByAddressApiNum...
fim
winsiderss/systeminformer
c
<|fim_suffix|>textType); PhGetProcessIsDotNetEx( threadsContext->Provider->ProcessId, threadsContext->Provider->ProcessHandle, #ifdef _WIN64 PH_CLR_USE_SECTION_CHECK | PH_CLR_NO_WOW64_CHECK | (context->IsWow64Process ? PH_CLR_KNOWN_IS_WOW64 : 0), #else PH_CLR_USE_SECTION_CHECK, #end...
fim
winsiderss/systeminformer
c
<|fim_suffix|> VOID ); #endif <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2010-2011 * */ #ifndef EXTNOTI_H #define EXTNOTI_H #define PLUGIN_NAME L"ExtendedNotifications" #define...
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 2021-2023 * */ #include <phdk.h> #include <settings.h> #include "extnoti.h" _Function_class_(PH_CALLBACK_FUNCTION) VOID NT...
fim
winsiderss/systeminformer
c
<|fim_suffix|>GetDlgItem(WindowHandle, IDC_INCLUDE), BST_CHECKED); FixControlStates(WindowHandle, ListBox); } break; case WM_COMMAND: { switch (GET_WM_COMMAND_ID(wParam, lParam)) { case IDC_LIST: { if (GET_W...
fim
winsiderss/systeminformer
c
<|fim_suffix|> 1012 #define IDC_TEXT 1013 #define IDC_LOGFILENAME 1014 #define IDC_BROWSE 1015 #define IDC_INFO 1017 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #defin...
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<|fim_suffix|> serviceListHandle = PhCreateServiceListControl(WindowHandle, services, serviceList->Count); ...
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 2015-2023 * */ #ifndef ES_EXTSRV_H #define ES_EXTSRV_H #include <phdk.h> #include <phappresource.h> #include <guisup....
fim
winsiderss/systeminformer
c
<|fim_suffix|> } PhReleaseQueuedLockShared(&processItem->ServiceListLock); // Sort the service list. qsort(serviceList->Items, serviceList->Count, sizeof(PPH_SERVICE_ITEM), ServiceForServicesMenuCompare); // If there is only one service: // * We use the text "Service (Xxx)". ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> { continue; } else { break; } } PhSetReference(&privilegeString, sele...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ROGRAM)->Buffer; failureActions.cActions = 4; failureActions.lpsaActions = actions; actions[0].Type = ComboBoxToServiceAction(GetDlgItem(WindowHandle, IDC_FIRSTFAILURE)); actions[1].Type = ComboBoxToServiceAction(GetDlgItem(W...
fim
winsiderss/systeminformer
c
<|fim_prefix|>//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by ExtendedServices.rc // #define IDD_SVCLIST 101 #define IDD_SRVLIST 101 #define ID_SERVICE_RESTART 101 #define IDD_SRVRECOVERY 102 #define ID_SERVICE_START ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>eStatus.dwCurrentState == SERVICE_RUNNING) { EndDialog(WindowHandle, IDOK); } } } } break; } return FALSE; } VOID EsRestartServiceWithProgress( _In_ HWND ParentWindowHandle, _In_ P...
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 "extsrv.h" typedef struct _PACKAGE_SERVICE_CONTEXT { HWND WindowHandle; HWND ListViewHandle; PPH_SERVICE_I...
fim
winsiderss/systeminformer
c
<|fim_suffix|> PPH_SERVICE_ITEM serviceItem = (PPH_SERVICE_ITEM)propSheetPage->lParam; context = PhAllocateZero(sizeof(PNP_SERVICE_CONTEXT)); context->ServiceItem = serviceItem; PhSetWindowContext(WindowHandle, PH_WINDOW_CONTEXT_DEFAULT, context); } else { context = PhGetW...
fim
winsiderss/systeminformer
c
<|fim_suffix|> { EspDestroyTriggerInfo(Context->EditingInfo); } Context->EditingInfo = NULL; } break; case ES_TRIGGER_EVENT_EDIT: { INT lvItemIndex; PES_TRIGGER_INFO info; ULONG index; lvItemIndex = PhF...
fim
winsiderss/systeminformer
c
<|fim_suffix|>erContext) { EsHandleEventServiceTrigger(context->TriggerContext, ES_TRIGGER_EVENT_SELECTIONCHANGED); } } break; case NM_DBLCLK: { if (header->hwndFrom == context...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/*++ Copyright (c) 2004 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/lic...
fim
winsiderss/systeminformer
c
/*++ Copyright (c) 2004 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distrib...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// Copyright (C) 2020-2021 Intel Corporation // SPDX-License-Identifier: MIT // // This file originally generated by etw_list // version: development branch e5985e637875db6cb6f90e8c92d0857b6fb95324 // parameters: --no_event_structs --event=Present::Start --event=Present::Stop --provider=Microso...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// Copyright (C) 2020-2021 Intel Corporation // SPDX-License-Identifier: MIT // // This file originally generated by etw_list // version: development branch e5985e637875db6cb6f90e8c92d0857b6fb95324 // parameters: --no_event_structs --event=Present::Start --event=Present::Stop --event=PresentMul...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// Copyright (C) 2020-2021 Intel Corporation // SPDX-License-Identifier: MIT // // This file originally generated by etw_list // version: development branch e5985e637875db6cb6f90e8c92d0857b6fb95324 // parameters: --no_event_structs --event=MILEVENT_MEDIA_UCE_PROCESSPRESENTHISTORY_GetPresentHist...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// Copyright (C) 2020-2022 Intel Corporation // SPDX-License-Identifier: MIT // // This file originally generated by etw_list // version: main 9c6bf7de6fb2c08c84df4141ffc8a9b175ac5150 // parameters: --no_event_structs --event=Blit::Info --event=Flip::Info --event=FlipMultiPlaneOverlay::Info --e...
fim
winsiderss/systeminformer
c
<|fim_suffix|>soft_Windows_EventMetadata { struct __declspec(uuid("{bbccf6c1-6cd1-48C4-80ff-839482e37671}")) GUID_STRUCT; static const auto GUID = __uuidof(GUID_STRUCT); // Event descriptors: #define EVENT_DESCRIPTOR_DECL(name_, id_, version_, channel_, level_, opcode_, task_, keyword_) struct name_ { \ static ui...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// Copyright (C) 2020-2021 Intel Corporation // SPDX-License-Identifier: MIT // // This file originally generated by etw_list // version: development branch e5985e637875db6cb6f90e8c92d0857b6fb95324 // parameters: --no_event_structs --event=TokenCompositionSurfaceObject::Info --event=TokenStateC...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// Copyright (C) 2019-2021 Intel Corporation // SPDX-License-Identifier: MIT #include "../exttools.h" #include "../framemon.h" #include "PresentMon.hpp" static bool OutputThreadCreated = false; static bool ConsumeThreadCreated = false; static LONG QuitOutputThread = 0; static std::unordered_map<ULONG, P...
fim
winsiderss/systeminformer
cpp
<|fim_suffix|>ruct SwapChainData { enum { PRESENT_HISTORY_MAX_COUNT = 120 }; // 288=144hz (dmex) std::shared_ptr<PresentEvent> mPresentHistory[PRESENT_HISTORY_MAX_COUNT]; ULONG mPresentHistoryCount = 0; ULONG mNextPresentIndex = 0; ULONG mLastDisplayedPresentIndex = 0; // UINT32_MAX if none displaye...
fim
winsiderss/systeminformer
cpp
<|fim_prefix|>// Copyright (C) 2017-2021 Intel Corporation // SPDX-License-Identifier: MIT #include "..\exttools.h" #include "PresentMonTraceConsumer.hpp" #include "ETW/Microsoft_Windows_D3D9.h" #include "ETW/Microsoft_Windows_Dwm_Core.h" #include "ETW/Microsoft_Windows_DXGI.h" #include "ETW/Microsoft_Windows_DxgKrn...
fim
winsiderss/systeminformer
cpp
<|fim_prefix|>// Copyright (C) 2017-2021 Intel Corporation // SPDX-License-Identifier: MIT #pragma once #include "TraceConsumer.hpp" enum class PresentMode { Unknown = 0, Hardware_Legacy_Flip = 1, Hardware_Legacy_Copy_To_Front_Buffer = 2, Hardware_Independent_Flip = 3, Composed_Flip = 4, Comp...
fim
winsiderss/systeminformer
cpp
<|fim_suffix|>tType.StructStartIndex + i, UINT32_MAX, &memberSize, &memberCount, &memberStatus); size += memberSize * memberCount; } } else { switch (epi.nonStructType.InType) { case TDH_INTYPE_UNICODESTRING: *propStatus |= PROP_STATUS_WCHAR_STRING; ...
fim
winsiderss/systeminformer
cpp
// Copyright (C) 2017-2020 Intel Corporation // SPDX-License-Identifier: MIT #pragma once #include <evntcons.h> #include <tdh.h> #include <assert.h> #include <stdint.h> #include <stdio.h> #include <string> #include <unordered_map> #include <vector> #include <deque> #include <map> #include <memory> #include <tuple> ...
fim
winsiderss/systeminformer
cpp
<|fim_prefix|>// Copyright (C) 2020-2021 Intel Corporation // SPDX-License-Identifier: MIT #include "..\exttools.h" #include <evntcons.h> #include <tdh.h> #include "PresentMon.hpp" #include "ETW/Microsoft_Windows_D3D9.h" #include "ETW/Microsoft_Windows_Dwm_Core.h" #include "ETW/Microsoft_Windows_DXGI.h" #include "E...
fim
winsiderss/systeminformer
cpp
<|fim_suffix|>ffer->CounterSetGuid = CounterGuid; counterIdentifierBuffer->InstanceId = ULONG_MAX; counterIdentifierBuffer->CounterId = CounterId; memcpy( PTR_ADD_OFFSET(counterIdentifierBuffer, RTL_SIZEOF_THROUGH_FIELD(PERF_COUNTER_IDENTIFIER, Reserved)), PERF_WILDCARD_INSTANCE, siz...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/******************************Module*Header**********************************\ * * Module Name: d3dkmdt.h * * Content: Windows Display Driver Model (WDDM) kernel mode * data type definitions * * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * \***************************...
fim
winsiderss/systeminformer
c
<|fim_suffix|> (DXGKDDI_INTERFACE_VERSION >= DXGKDDI_INTERFACE_VERSION_WDDM1_3) #endif // (NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL) #pragma warning(pop) #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ #pragma endregion #endif /* _D3DUKMDT_H_ */ <|fim_prefix|>/...
fim
winsiderss/systeminformer
c
<|fim_suffix|> sortResult = uintcmp(diskItem1->IoPriority, diskItem2->IoPriority); } END_SORT_FUNCTION BEGIN_SORT_FUNCTION(ResponseTime) { sortResult = singlecmp(diskItem1->ResponseTimeAverage, diskItem2->ResponseTimeAverage); } END_SORT_FUNCTION BEGIN_SORT_FUNCTION(OriginalFile) { sortResult = PhCompareStr...
fim
winsiderss/systeminformer
c
<|fim_suffix|>E Node, _In_opt_ PVOID Context ); _Function_class_(TOOLSTATUS_TAB_ACTIVATE_CONTENT) VOID NTAPI EtpToolStatusActivateContent( _In_ BOOLEAN Select ); _Function_class_(TOOLSTATUS_GET_TREENEW_HANDLE) HWND NTAPI EtpToolStatusGetTreeNewHandle( VOID ); #endif <|fim_prefix|>/* * Copyri...
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 * dmex 2015-2023 * */ #include "exttools.h" #include "etwmon.h" typedef struct _ETP_DISK_PACKET { SLIST_ENTRY ListEntry;...
fim
winsiderss/systeminformer
c
<|fim_suffix|> PhInitFormatSize(&format[0], networkReceiveDelta + networkSendDelta); PhMoveReference(&getUsageText->Line1, PhFormat(format, 1, 16)); } return TRUE; } return FALSE; } /** * EtGpuD3DEnumProcessesCompare function for network list section processes. * * \pa...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 <|fim_suffix|>* * Authors: * * wj32 2015 * */ #ifndef ETWMINI_H #define ETWMINI_H BOOLEAN EtpDiskListSectionCallback( _In_ struct _PH_MINIINFO_LIST_SECTION *ListSection, _In_ PH_MINIINFO_LIST_SECTION_MESSAGE Message, _In_ PVOID Parameter1, _In_ PVOID ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ess.Type = PH_NETWORK_TYPE_IPV4; destination.Port = _byteswap_ushort(data->DestinationPort); memcpy(destination.Address.Ipv4, data->DestinationAddress, sizeof(IN_ADDR)); memset(&networkEvent, 0, sizeof(ET_ETW_NETWORK_EVENT)); networkEvent.Ty...
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|>ID ); VOID EtEtwMonitorUninitialization( VOID ); VOID EtStartEtwSession( VOID ); VOID EtStopEtwSession( VOID ); V...
fim
winsiderss/systeminformer
c