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: * * dmex 2022 * */ #include <ph.h> NTSTATUS InitializeAttributeList( _Out_ STARTUPINFOEX* StartupInfo ) { static ULONG64 mitigationFlags[] ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> } <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors<|fim_middle|>: * * wj32 * */ namespace GenerateZw { public static class Program { public static void Main(string[] args) ...
fim
winsiderss/systeminformer
csharp
<|fim_suffix|>ions.Distinct().ToList(); _defs.Sort((x, y) => string.Compare(x.Name, y.Name, StringComparison.OrdinalIgnoreCase)); // Header sw.Write(Header); // Definitions foreach (var d in _defs) { ...
fim
winsiderss/systeminformer
csharp
<|fim_suffix|>BJECT_HEADER *)member.Data; // Changes header->NameType = IMPORT_OBJECT_NAME_UNDECORATE; } } PhUnloadMappedArchive(&mappedArchive); } <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of Syste...
fim
winsiderss/systeminformer
c
<|fim_suffix|> SendMessage(Context->EditWindow, WM_SETTEXT, FALSE, (LPARAM)manifestString->Buffer); SendMessage(Context->EditWindow, WM_SETREDRAW, TRUE, 0); PhDereferenceObject(manifestString); } } goto Cleanup; } } INT_PTR CALLBACK PvPeAppManifest...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2018-2022 * */ #include <peview.h> typedef struct _PV_PE_ATTRIBUTES_CONTEXT { HWND WindowHandle; HWND ListViewHandle; PH_LAYOUT_MA...
fim
winsiderss/systeminformer
c
<|fim_suffix|>EFT, 50, L"Type"); PhAddListViewColumn(context->ListViewHandle, 3, 3, 3, LVCFMT_LEFT, 250, L"Name"); PhAddListViewColumn(context->ListViewHandle, 4, 4, 4, LVCFMT_LEFT, 100, L"Flags"); PhAddListViewColumn(context->ListViewHandle, 5, 5, 5, LVCFMT_LEFT, 100, L"XFG Hash"); ...
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-2021 * */ // NOTE: Copied from processhacker\ProcessHacker\chcol.c #include <peview.h> #include <settings.h> typedef...
fim
winsiderss/systeminformer
c
<|fim_suffix|> ))) { PPH_STRING string; PPH_STRING hash; // The MVID is a hash of both the file and the PDB file for repro images. (dmex) string = PhFormatGuid(PTR_ADD_OFFSET(ClrMetaData, streamHeader->Offset)); 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 <peview.h> typedef struct _PVP_PE_CLR_CONTEXT { HWND WindowHandle; HWND ListViewHandle; PH_LAYOUT_MANAGER Layou...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2021-2022 * */ #include <peview.h> #ifdef __has_include #if __has_include (<metahost.h>) #include <metahost.h> #else #include "metahost/metaho...
fim
winsiderss/systeminformer
c
<|fim_suffix|> TBL_Module = 0, TBL_TypeRef = 1, TBL_TypeDef = 2, TBL_FieldPtr = 3, TBL_Field = 4, TBL_MethodPtr = 5, TBL_Method = 6, TBL_ParamPtr = 7, TBL_Param = 8, TBL_InterfaceImpl = 9, TBL_MemberRef = 10, TBL_Constant = 11, TBL_CustomAttribute = 12, TBL_FieldMar...
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 2011-2016 * */ #include <peview.h> #include "colmgr.h" //#include <extmgri.h> //#include <phplug.h> typedef struct _PH_CM_SORT_CONTEXT { /...
fim
winsiderss/systeminformer
c
<|fim_prefix|>#ifndef PH_COLMGR_H #define PH_COLMGR_H #define PH_CM_ORDER_LIMIT 160 // begin_phapppub typedef LONG (NTAPI *PPH_CM_POST_SORT_FUNCTION)( _In_ LONG Result, _In_ PVOID Node1, _In_ PVOID Node2, _In_ PH_SORT_ORDER SortOrder ); // end_phapppub typedef struct _PH_CM_MANAGER { HWND Han...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2021-2023 * */ #include <peview.h> typedef struct _PVP_PE_DEBUG_CONTEXT { HWND WindowHandle; HWND ListViewHandle; PH_LAYOUT_MANAGE...
fim
winsiderss/systeminformer
c
<|fim_suffix|>owHandle, ps.rcPaint); // //if (BufferedPaint = BeginBufferedPaint(ps.hdc, &ps.rcPaint, BPBF_COMPATIBLEBITMAP, NULL, &BufferedHDC)) //{ // ThemeWindowRenderHeaderControl(context, WindowHandle, BufferedHDC, &ps.rcPaint, oldWndProc); ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> USHORT length; va = PhMappedImageVaToVa(&PvMappedImage, Va, NULL); if (!va) { dprintf("PvReadAnsiStringStructAtVa: Failed to map struct at 0x%llx\n", Va); return FALSE; } if (is64) { length = *(PUSHORT)va; bufferVa = (ULONG_PTR)*(PULONG64)PTR_AD...
fim
winsiderss/systeminformer
c
<|fim_suffix|> continue; } } switch (symbolResolveLevel) { case PhsrlFunction: { if (displacement) { PhSetListViewSubItem( ListVi...
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 2019 * */ #include <peview.h> PWSTR PvpGetDynamicTagName( _In_ LONGLONG Tag ) { switch (Tag) { case DT_NULL: retur...
fim
winsiderss/systeminformer
c
<|fim_suffix|> PvAddPropPageLayoutItem(hwndDlg, GetDlgItem(hwndDlg, IDC_LIST), dialogItem, PH_ANCHOR_ALL); PvDoPropPageLayout(hwndDlg); propPageContext->LayoutInitialized = TRUE; } } break; case WM_NOTIFY: { PvHandleListViewNotify...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2017 * */ #include <peview.h> VOID PvpProcessElfImports( _In_ HWND ListViewHandle ) { PPH_LIST imports; ULONG count = 0; PhGetMappedWsl...
fim
winsiderss/systeminformer
c
<|fim_suffix|>_GNU_HASH: return L"GNU_HASH"; case SHT_GNU_LIBLIST: return L"GNU_LIBLIST"; case SHT_SUNW_verdef: return L"VERDEF"; case SHT_SUNW_verneed: return L"VERNEED"; case SHT_SUNW_versym: return L"VERSYM"; } return L"***ERROR***"; } PPH_STRING PvpG...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * wj32 2010-2011 * dmex 2017-2023 * */ #include <peview.h> #include "colmgr.h" static PH_STRINGREF EmptyExportsText = PH_STRINGREF_INIT(L"There are no expo...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2021-2023 * */ #include <peview.h> #include <bcrypt.h> #include <wincrypt.h> #include <wintrust.h> #include <thirdparty.h> #include <phcrypt.h>...
fim
winsiderss/systeminformer
c
<|fim_suffix|>= Context; assert(context); context->SearchMatchHandle = MatchHandle; if (!context->SearchMatchHandle) { //PhExpandAllNodes(TRUE); //PhDeselectAllNodes(); } PhApplyTreeNewFilters(&context->FilterSupport); } INT_PTR CALLBACK PvPeImportsDlgProc( _In_ HWND hwn...
fim
winsiderss/systeminformer
c
<|fim_suffix|>am, _In_ LPARAM lParam ); INT_PTR CALLBACK PvpPeEhContDlgProc( _In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam ); INT_PTR CALLBACK PvpPeVolatileDlgProc( _In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam ); ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>OPSHEETPAGE *PropSheetPage, _Out_ PPV_PROPPAGECONTEXT *PropPageContext ) { LPPROPSHEETPAGE propSheetPage; if (uMsg == WM_INITDIALOG) { // Save the context. PhSetWindowContext(hwndDlg, ULONG_MAX, (PVOID)lParam); } propSheetPage = (LPPROPSHEETPAGE)PhGetWindowCon...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2020-2023 * */ #include <peview.h> #include <cryptuiapi.h> #include "colmgr.h" #define WM_PV_LAYOUT_CONTEXTMENU (WM_APP + 801) typedef struct...
fim
winsiderss/systeminformer
c
<|fim_suffix|> ADD_VALUE(L"Volatile metadata pointer", PhaFormatString(L"0x%Ix", (Config)->VolatileMetadataPointer)->Buffer); \ } \ if (RTL_CONTAINS_FIELD((Config), (Config)->Size, GuardEHContinuationTable)) \ { \ ADD_VALUE(L"Guard EH Continuation tab...
fim
winsiderss/systeminformer
c
<|fim_suffix|> PWSTR type; name = PhZeroExtendToUtf16(importEntry.DllName); lvItemIndex = PhAddListViewItem(lvHandle, MAXINT, name->Buffer, NULL); PhDereferenceObject(name); name = PhZeroExtendToUtf16(importEntry.Name); ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> // // ); // // // // PhSetListViewSubItem(ListViewHandle, lvItemIndex, 2, fileIdString->Buffer); // // PhDereferenceObject(fileIdString); // //} ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>leName), PvFileName->Buffer, NULL, SW_SHOWNORMAL, PH_SHELL_EXECUTE_DEFAULT, 0, NULL ))) { PhEx...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ewItem(ListViewHandle, MAXINT, L"Session", NULL); } else if (Entry->ViewMapType == VIEW_MAP_TYPE_SYSTEM_CACHE) { lvItemIndex = PhAddListViewItem(ListViewHandle, MAXINT, L"System", NULL); } else { lvItemIndex = PhAddListViewItem(ListViewHandle, MAXINT, L"Unknown", NU...
fim
winsiderss/systeminformer
c
<|fim_suffix|>5) #define CORDBG_E_VTABLE_HAS_NO_METADATA EMAKEHR(0x1c66) #define CORDBG_E_NO_GENERIC_INFO EMAKEHR(0x1c67) #define PEFMT_E_NO_CONTENTS EMAKEHR(0x1d00) #define PEFMT_E_NO_NTHEADERS EMAKEHR(0x1d01) #define PEFMT_E_64BIT EMAKEHR(0x1d02) #define PEFMT_E_NO_CORHEADER EMAKEHR(0x1d03) #define PEFMT_E_NOT_ILONLY...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ns.cs typedef enum CompilationRelaxationsEnum { CompilationRelaxations_NoStringInterning = 0x0008, } CompilationRelaxationEnum; #define COMPILATIONRELAXATIONS_TYPE_W L"System.Runtime.CompilerServices.CompilationRelaxationsAttribute" #define COMPILATIONRELAXATIONS_TYPE ...
fim
winsiderss/systeminformer
c
<|fim_prefix|> /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.00.0603 */ /* @@MIDL_FILE_HEADING( ) */ #pragma warning( disable: 4049 ) /* more than 64k source lines */ /* verify that the <rpcndr.h> version is high enough to compile this f...
fim
winsiderss/systeminformer
c
<|fim_prefix|> /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.00.0603 */ /* @@MIDL_FILE_HEADING( ) */ #pragma warning( disable: 4049 ) /* more than 64k source lines */ /* verify that the <rpcndr.h> version is high enough to compile this f...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ppvObject) ) #define IVEHandler_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IVEHandler_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IVEHandler_VEHandler(This,VECode,Context,psa) \ ( (This)->lpVtbl -> VEHandler(This,VECode,Context,psa) ) #define IVEHandler_...
fim
winsiderss/systeminformer
c
<|fim_suffix|> HRESULT ( STDMETHODCALLTYPE *GetHashFromBlob )( ICLRStrongName * This, /* [in] */ BYTE *pbBlob, /* [in] */ DWORD cchBlob, /* [out][in] */ unsigned int *piHashAlg, /* [length_is][size_is][out] */ BYTE *pbHash, /* [in] */ DWORD cchHas...
fim
winsiderss/systeminformer
c
<|fim_suffix|>uilder.String->Length != 0 && selectedCount == 1) PhRemoveEndStringBuilder(&stringBuilder, 2); PhSetClipboardString(context->TreeNewHandle, &stringBuilder.String->sr); PhDeleteStringBuilder(&stringBuilder); return TRUE; } #pragma endregion VOID PvSetListViewImageList( _In_ 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: * * dmex 2020-2022 * */ #include <peview.h> typedef enum _PHP_OPTIONS_INDEX { PHP_OPTIONS_INDEX_ENABLE_THEME_SUPPORT, PHP_OPTIONS_INDEX_ENABLE_...
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-2022 * */ #include <peview.h> #include <symprv.h> #include <dbghelp.h> #ifndef COM_NO_WINDOWS_H #define COM_NO_WINDOWS_H 1 #endif #includ...
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 * */ #include <peview.h> #include <emenu.h> #include "colmgr.h" static PH_STRINGREF EmptySymbolsText = PH_STRINGREF_INIT(L"There are no symbols to...
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 <peview.h> typedef struct _PV_PE_CHPE_CONTEXT { HWND WindowHandle; HWND ListViewHandle; PH_LAYOUT_MANAGER Layo...
fim
winsiderss/systeminformer
c
<|fim_suffix|>d); } return TRUE; case TreeNewKeyDown: case TreeNewNodeExpanding: return TRUE; case TreeNewLeftDoubleClick: { // SendMessage(context->ParentWindowHandle, WM_COMMAND, WM_ACTION, (LPARAM)context); } return TRUE; case TreeNewContextM...
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 <peview.h> typedef struct _PVP_PE_DYNAMIC_RELOCATION_CONTEXT { HWND WindowHandle; HWND ListViewHandle; PH_LAYO...
fim
winsiderss/systeminformer
c
<|fim_suffix|>imageMachine == IMAGE_FILE_MACHINE_ARM64) { PhAddListViewColumn(context->ListViewHandle, 1, 1, 1, LVCFMT_LEFT, 100, L"Type"); PhAddListViewColumn(context->ListViewHandle, 2, 2, 2, LVCFMT_LEFT, 100, L"RVA (start)"); PhAddListViewColumn(context->Li...
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 * */ #include <peview.h> typedef struct _PVP_PE_HEADER_CONTEXT { HWND WindowHandle; HWND ListViewHandle; PH_LAYOUT_MANAGER La...
fim
winsiderss/systeminformer
c
<|fim_suffix|> L"%s, ", PhaFormatUInt64(identifierTypesList[i], TRUE)->Buffer); if (PhEndsWithString2(stringBuilder.String, L", ", FALSE)) PhRemoveEndStringBuilder(&stringBuilder, 2); PvAddMuiInfoItem(ListViewHandle, &count, 3, L"Types", PhGetString(PhFinalStringBuilderString(&stringBuilder)...
fim
winsiderss/systeminformer
c
<|fim_suffix|>COLORLISTBOX: { SetBkMode((HDC)wParam, TRANSPARENT); SetTextColor((HDC)wParam, RGB(0, 0, 0)); SetDCBrushColor((HDC)wParam, RGB(255, 255, 255)); return (INT_PTR)PhGetStockBrush(DC_BRUSH); } break; } return FALSE; } _Success_(...
fim
winsiderss/systeminformer
c
<|fim_suffix|>AppendStringBuilder2(&stringBuilder, L"16 alignment, "); break; case IMAGE_SCN_ALIGN_32BYTES: PhAppendStringBuilder2(&stringBuilder, L"32 alignment, "); break; case IMAGE_SCN_ALIGN_64BYTES: PhAppendStringBuilder2(&stringBuilder, L"64 alignment, "); break; ...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2021 * */ #include <peview.h> #include <secedit.h> typedef struct _PV_WINDOW_SECTION { PH_STRINGREF Name; PVOID Instance; PWSTR Template; D...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ction; directorySection = PhMappedImageRvaToSection( &PvMappedImage, (entry->BlockRva - entry->Record.Offset) ); if (directorySection) { WCHAR sectionName[IMAGE_SIZEOF_SHORT_NA...
fim
winsiderss/systeminformer
c
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2019-2022 * */ #include <peview.h> #include "colmgr.h" #include "../thirdparty/ssdeep/fuzzy.h" #include "../thirdparty/tlsh/tlsh_wrapper.h" static PH_STRIN...
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 2019-2022 * */ #include <peview.h> typedef struct _PV_PE_PREVIEW_CONTEXT { HWND WindowHandle; HWND EditWindow; HIMAGELIST ListView...
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 2019-2022 * */ #include <peview.h> typedef struct _PVP_PE_PROCESSES_CONTEXT { HWND WindowHandle; HWND ListViewHandle; HIMAGELIST L...
fim
winsiderss/systeminformer
c
<|fim_suffix|> SetTextColor((HDC)wParam, RGB(0, 0, 0)); SetDCBrushColor((HDC)wParam, RGB(255, 255, 255)); return (INT_PTR)PhGetStockBrush(DC_BRUSH); } break; } return FALSE; } <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights 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: * * dmex 2017-2021 * */ // NOTE: Copied from processhacker\ProcessHacker\procprp.c #include <peview.h> #include <secedit.h> #include <settings.h> PPH_...
fim
winsiderss/systeminformer
c
<|fim_prefix|>//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by peview.rc // #define IDR_RT_MANIFEST 1 #define IDD_PEGENERAL 101 #define IDD_PEIMPORTS 102 #define IDD_PEEXPORTS 103 #define IDD_LIBEXPORTS ...
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-2022 * */ #include <peview.h> #include "colmgr.h" static PH_STRINGREF EmptyResourcesText = PH_STRINGREF_INIT(L"There are no resources to ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> SetTextColor((HDC)wParam, RGB(0, 0, 0)); SetDCBrushColor((HDC)wParam, RGB(255, 255, 255)); return (INT_PTR)PhGetStockBrush(DC_BRUSH); } break; } return FALSE; } <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights r...
fim
winsiderss/systeminformer
c
<|fim_suffix|>N_DARK), PhEnableThemeSupport ? MAKEINTRESOURCE(IDB_SEARCH_CASE_MODERN_LIGHT) : MAKEINTRESOURCE(IDB_SEARCH_CASE_MODERN_DARK), L"SearchControlRegex", L"SearchControlCaseSensitive", Callback, Context ); } <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminar...
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-2022 * */ #include <peview.h> #include <cryptuiapi.h> #include "colmgr.h" #define WM_PV_CERTIFICATE_PROPERTIES (WM_APP + 801) #define WM_...
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 <peview.h> static PPH_STRING PvSettingsFileName = NULL; VOID PvAddDefaultSettings( VOID ) { PhpAddInteger...
fim
winsiderss/systeminformer
c
<|fim_suffix|>(255, 255, 255)); return (INT_PTR)PhGetStockBrush(DC_BRUSH); } break; } return FALSE; } <|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2018-20...
fim
winsiderss/systeminformer
c
<|fim_suffix|>h) { context->Settings.MinimumLength = length; PvpSaveSettingsStrings(context); PvpSearchStrings(context); } } ...
fim
winsiderss/systeminformer
c
<|fim_prefix|>/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex 2019-2022 * */ #include <peview.h> typedef struct _PVP_PE_TLS_CONTEXT { HWND WindowHandle; HWND ListViewHandle; HIMAGELIST ListVie...
fim
winsiderss/systeminformer
c
<|fim_suffix|>re)->Buffer); PvAddVersionInfoItem(ListViewHandle, &count, 0, L"Struct version", PhaFormatString(L"%lu.%lu", HIWORD(rootBlock->dwStrucVersion), LOWORD(rootBlock->dwStrucVersion))->Buffer); PvAddVersionInfoItem(ListViewHandle, &count, 0, L"File version", PhaFormatString(L"%lu.%lu.%lu.%lu", ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> PhLayoutManagerUpdate(&context->LayoutManager, LOWORD(wParam)); } break; case WM_SIZE: { PhLayoutManagerLayout(&context->LayoutManager); } break; case WM_NOTIFY: { PvHandleListViewNotifyForCopy(lParam, context->ListView...
fim
winsiderss/systeminformer
c
<|fim_suffix|>ATUS status; status = PhInitializePhLib(L"phlib-test"); assert(NT_SUCCESS(status)); Test_basesup(); Test_avltree(); Test_format(); Test_util(); return 0; } <|fim_prefix|>/* * Copyright (c) 2<|fim_middle|>022 Winsider Seminars & Solutions, Inc. All rights reserved. * * Th...
fim
winsiderss/systeminformer
c
<|fim_suffix|>sert(ubound(&tree, 7) == -1); assert(ubound(&tree, 8) == -1); assert(ldbound(&tree, 0) == -1); assert(ldbound(&tree, 1) == -1); assert(ldbound(&tree, 2) == 1); assert(ldbound(&tree, 3) == 1); assert(ldbound(&tree, 4) == 3); assert(ldbound(&tree, 5) == 3); assert(ldbound(&t...
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 * */ #include "tests.h" static VOID Test_time( VOID ) { LARGE_INTEGER time; FILETIME fileTime; LARGE_INTEGER loc...
fim
winsiderss/systeminformer
c
<|fim_suffix|>mat[0].u.Double = -12345; format[0].Precision = 0; result = PhFormatToBuffer(format, 1, buffer, sizeof(buffer), NULL); assert(result && wcscmp(buffer, L"-12,345") == 0); format[0].u.Double = -12345; format[0].Precision = 2; result = PhFormatToBuffer(format, 1, buffer, sizeof(buffer...
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 * */ #include "tests.h" static VOID Test_rectangle( VOID ) { PH_RECTANGLE r1; PH_RECTANGLE r2; r1.Left = 0; r1.Top = 0; ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>#include <ph.h> VOID Test_basesup( VOID ); VOID Test_avltree( VOID ); VOID Test_format( VOID ); VOID Test_util( VOID ); #endif <|fim_prefix|>/* * Copyri<|fim_middle|>ght (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of Syst...
fim
winsiderss/systeminformer
c
<|fim_suffix|>RSION_PATCH) #define SYMCRYPT_BUILD_INFO_TIMESTAMP "2026-05-16T01:52:03" <|fim_prefix|>#include "symcrypt_internal_shared.inc" #define _SYMCRYPT_STRING_INT(a) #a #define _SYMCRYPT_STRING(a) _SYMCRYPT_STRING_INT(a) #define SYMCRYPT_BUILD_INFO_BRANCH "main" #define SYMCRYPT_BUILD_INFO_COMMIT "2026-03...
fim
winsiderss/systeminformer
c
<|fim_suffix|> // S6 12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11, 10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8, 9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6, 4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13, // S7 4, 11,...
fim
winsiderss/systeminformer
c
<|fim_suffix|>0xde,0x6c, 0x9a,0x86,0xc5,0x7b, 0x91,0x88,0xcc,0x76, 0xa0,0xa2,0xf3,0x55, 0xab,0xac,0xfa,0x58, 0xb6,0xbe,0xe1,0x4f, 0xbd,0xb0,0xe8,0x42, 0xd4,0xea,0x9f,0x09, 0xdf,0xe4,0x96,0x04, 0xc2,0xf6,0x8d,0x13, 0xc9,0xf8,0x84,0x1e, 0xf8,0xd2,0xbb,0x3d, 0xf3,0xdc,0xb2,0x30, 0xee,0xce,0xa9,0x27, 0xe5,0xc0,0xa0,0x2a, 0...
fim
winsiderss/systeminformer
c
<|fim_suffix|>00020,0x20000030, 0x00010020,0x00010030,0x20010020,0x20010030, 0x00000820,0x00000830,0x20000820,0x20000830, 0x00010820,0x00010830,0x20010820,0x20010830, 0x00080000,0x00080010,0x20080000,0x20080010, 0x00090000,0x00090010,0x20090000,0x20090010, 0x00080800,0x00080810,0x20080800,0x20080810, 0x00090800,0x00090...
fim
winsiderss/systeminformer
c
<|fim_suffix|>poration. Licensed under the MIT license. // // // Empty function which our test code can replace to intercept any Fatal calls. // Used in Kernel-mode tests so that an error doesn't bugcheck the machine. // Rather, it can kill the current thread and not take down the machine. // // This is in its own C f...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // IEEE802_11SaeCustom.c Implementation of the custom crypto of IEEE 802.11 SAE // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // // #include "precomp.h" // Used in SAE Hunting and Pecking methods where NIST P256 is hardcoded #define PRIME_LENGTH_BITS 256 // // This data...
fim
winsiderss/systeminformer
c
<|fim_suffix|> j = nInterleaves; pD = pDst; do { pD[0] |= (mask0 & pSrc[0]) | (mask1 & pSrc[4]) | (mask2 & pSrc[ 8]) | (mask3 & pSrc[12]); pD[1] |= (mask0 & pSrc[1]) | (mask1 & pSrc[5]) | (mask2 & pSrc[ 9]) | (mask3 & pSrc[13]); pD[2] |= (mask0 & pSrc[2]) | (ma...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // a_dispatch.c Dispatch between different arithmetic format implementations. // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // // SymCrypt can have multiple implementations of the arithmetic operations, and these can // have incompatible formats used to store the integers...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // aes-asm.c code for AES implementation // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // #include "precomp.h" #if SYMCRYPT_CPU_X86 | SYMCRYPT_CPU_AMD64 | SYMCRYPT_CPU_ARM VOID SYMCRYPT_CALL SymCryptAesEcbEncryptAsm( _In_ PC...
fim
winsiderss/systeminformer
c
<|fim_suffix|>t BYTE (*keyLimit)[4][4]; #if NEED_ALIGN SYMCRYPT_ALIGN BYTE alignBuffer[SYMCRYPT_AES_BLOCK_SIZE]; #endif #if NEED_ALIGN // // Callers who don't have their buffers aligned don't care about speed, // so we do this in the simplest way. // if( !(IS_UINT32_ALIGNED( pbPlaintext ) & ...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // aes-default-bc.c code for AES implementation // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // #include "precomp.h" // // The SymCrypt API allows callers to use the generic block cipher mode functions and pass // a pointer to a structure that describes the block ciphe...
fim
winsiderss/systeminformer
c
// // aes-default.c code for AES implementation // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // // This is the interface for the default AES implementation. // On each platform, this is the fastest AES implementation irrespective of code size. // It uses assembler, XMM, or any other tric...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // aes.c code for AES implementation // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // // The actual encryption and decryption routines here are not nearly as fast as the // assembler ones. They are used on platforms that don't have assembler implementations // and for var...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // aes-neon.c code for AES implementation // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // // All NEON-based code for AES operations // #include "precomp.h" #if SYMCRYPT_CPU_ARM64 #define vzeroq() vdupq_n_u64(0) VOID SYMCRYPT_CALL SymCryptAes4SboxNeon( _In_reads_(...
fim
winsiderss/systeminformer
c
<|fim_suffix|> chain = MM_ADD_EPIXX( chain, chainIncrement1 ); _mm_storeu_si128( (__m128i *) (pbDst + 48), _mm_xor_si128( c3, _mm_loadu_si128( ( __m128i * ) (pbSrc + 48 ) ) ) ); } } } else { // Exactly 1 block to process c0 ...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // aes-selftest.c // // Copyright (c) Microsoft Cor<|fim_suffix|>askTestsToRun & SYMCRYPT_AES_SELFTEST_ECB ) { SymCryptAesEcbEncrypt( &key, SymCryptTestMsg16, buf, SYMCRYPT_AES_BLOCK_SIZE ); SymCryptInjectError( buf, SYMCRYPT_AES_BLOCK_SIZE ); if( memcmp( buf, SymCryptAesNi...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // aes-xmm.c code for AES implementation // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // // All XMM code for AES operations // Requires compiler support for ssse3, aesni and pclmulqdq // #include "precomp.h" #if SYMCRYPT_CPU_X86 | SYMCRYPT_CPU_AMD64 #include "xtsaes_d...
fim
winsiderss/systeminformer
c
// // aes-ymm.c code for AES implementation // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // // All YMM code for AES operations // Requires compiler support for aesni, pclmulqdq, avx2, vaes and vpclmulqdq // #include "precomp.h" #if SYMCRYPT_CPU_X86 | SYMCRYPT_CPU_AMD64 #include "xtsa...
fim
winsiderss/systeminformer
c
<|fim_suffix|>, 3 /* Highest 128 bits */ ); _mm256_zeroupper(); XTS_MUL_ALPHA( t7, t0 ); _mm_storeu_si128( (__m128i *) pbTweakBlock, t0 ); SymCryptXtsAesDecryptDataUnitXmm( pExpandedKey, pbTweakBlock, pbScratch, pbSrc, pbDst, cbDataTail ); } else { _mm256_zeroupper(); ...
fim
winsiderss/systeminformer
c
<|fim_suffix|> // to be equal. The only way this could happen is if the first block of one request is the same as // the last block of the previous request. But the probability of this happening is 2^{-128}. // This never happens, so the whole check is technically useless. // Nevertheless, it is required...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // aescmac.c Implementation of the AES-CMAC block cipher mode // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // #include "precomp.h" const SYMCRYPT_MAC SymCryptAesCmacAlgorithm_fast = { SymCryptAesCmacExpandKey, SymCryptAesCmacInit, SymCryptAesCmacAppend, ...
fim
winsiderss/systeminformer
c
<|fim_suffix|>YMCRYPT_ERROR scError = SYMCRYPT_NO_ERROR; PBYTE pbScratch = NULL; UINT32 cbScratch = 0; UINT32 cbPlaintext = 0; UINT32 cbPad = 0; UINT32 mVerificationError = 0; // Mask indicating whether the decrypted buffer is malformed UINT32 mIsPlaintext = 0; // Mask for plaintext byt...
fim
winsiderss/systeminformer
c
<|fim_suffix|> pbDst, SIZE_T cbData ) { SYMCRYPT_ALIGN BYTE buf[2*SYMCRYPT_MAX_BLOCK_SIZE]; PBYTE chain = &buf[0]; PBYTE tmp = &buf[SYMCRYPT_MAX_BLOCK_SIZE]; SIZE_T blockSize; blockSize = pBlockCipher->blockSize; SYMCRYPT...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // CCM.c implementation of the CCM block cipher mode // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // #include "precomp.h" #define CCM_MIN_NONCE_SIZE (7) #define CCM_MAX_NONCE_SIZE (13) #define CCM_MIN_TAG_SIZE (4) #define CCM_MAX_TAG_SIZE (16) #define CCM_MAX...
fim
winsiderss/systeminformer
c
<|fim_prefix|>// // ChaCha20.c // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // #include "precomp.h" VOID SYMCRYPT_CALL SymCryptChaCha20CryptBlocks( _Inout_ PSYMCRYPT_CHACHA20_STATE pState, _In_reads_( cbData ) PCBYTE pbSrc, _Out_writ...
fim
winsiderss/systeminformer
c