memsrch revert rewrite
This commit is contained in:
@@ -846,27 +846,34 @@ BEGIN
|
||||
PUSHBUTTON "Cancel",IDCANCEL,213,150,50,14
|
||||
END
|
||||
|
||||
IDD_MEMSTRINGS DIALOGEX 0, 0, 443, 254
|
||||
IDD_MEMRESULTS DIALOGEX 0, 0, 313, 266
|
||||
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
|
||||
CAPTION "Strings"
|
||||
CAPTION "Results"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
PUSHBUTTON "Options",IDC_SETTINGS,2,3,50,14
|
||||
PUSHBUTTON "Filter",IDC_FILTER,53,3,50,14
|
||||
EDITTEXT IDC_SEARCH,105,3,336,14,ES_AUTOHSCROLL
|
||||
CONTROL "",IDC_TREELIST,"PhTreeNew",WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_TABSTOP | 0x2,2,19,439,219,WS_EX_CLIENTEDGE
|
||||
LTEXT "",IDC_MESSAGE,8,242,427,10
|
||||
LTEXT "Results.",IDC_INTRO,7,9,299,8
|
||||
CONTROL "",IDC_LIST,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | LVS_OWNERDATA | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,21,299,221
|
||||
PUSHBUTTON "Filter",IDC_FILTER,7,245,50,14
|
||||
PUSHBUTTON "Save...",IDC_SAVE,149,245,50,14
|
||||
PUSHBUTTON "Copy",IDC_COPY,203,245,50,14
|
||||
DEFPUSHBUTTON "Close",IDOK,256,245,50,14
|
||||
END
|
||||
|
||||
IDD_MEMSTRINGSMINLEN DIALOGEX 0, 0, 123, 46
|
||||
IDD_MEMSTRING DIALOGEX 0, 0, 241, 86
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "String Search"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
LTEXT "Minimum length:",IDC_STATIC,7,8,54,8
|
||||
EDITTEXT IDC_MINIMUMLENGTH,67,7,51,12,ES_AUTOHSCROLL
|
||||
DEFPUSHBUTTON "OK",IDOK,13,25,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,67,25,50,14
|
||||
CONTROL "Detect Unicode",IDC_DETECTUNICODE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,22,65,10
|
||||
LTEXT "Search in the following types of memory regions:",IDC_STATIC,7,36,157,8
|
||||
CONTROL "Private",IDC_PRIVATE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,49,39,10
|
||||
CONTROL "Image",IDC_IMAGE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,55,49,36,10
|
||||
CONTROL "Mapped",IDC_MAPPED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,101,49,41,10
|
||||
DEFPUSHBUTTON "OK",IDOK,131,65,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,184,65,50,14
|
||||
CONTROL "Extended Unicode",IDC_EXTENDEDUNICODE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,80,22,74,10
|
||||
END
|
||||
|
||||
IDD_OPTGRAPHS DIALOGEX 0, 0, 250, 156
|
||||
|
||||
@@ -488,6 +488,7 @@
|
||||
<ClCompile Include="memlists.c" />
|
||||
<ClCompile Include="memprot.c" />
|
||||
<ClCompile Include="memprv.c" />
|
||||
<ClCompile Include="memrslt.c" />
|
||||
<ClCompile Include="memsrch.c" />
|
||||
<ClCompile Include="miniinfo.c" />
|
||||
<ClCompile Include="modlist.c" />
|
||||
@@ -591,6 +592,7 @@
|
||||
<ClInclude Include="include\phuisup.h" />
|
||||
<ClInclude Include="include\miniinfo.h" />
|
||||
<ClInclude Include="include\hidnproc.h" />
|
||||
<ClInclude Include="include\memsrch.h" />
|
||||
<ClInclude Include="include\phapp.h" />
|
||||
<ClInclude Include="include\phsvc.h" />
|
||||
<ClInclude Include="include\phsvcapi.h" />
|
||||
|
||||
@@ -99,6 +99,9 @@
|
||||
<ClCompile Include="memprv.c">
|
||||
<Filter>System Informer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="memrslt.c">
|
||||
<Filter>System Informer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="memsrch.c">
|
||||
<Filter>System Informer</Filter>
|
||||
</ClCompile>
|
||||
@@ -344,6 +347,9 @@
|
||||
<ClInclude Include="include\hidnproc.h">
|
||||
<Filter>Headers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="include\memsrch.h">
|
||||
<Filter>Headers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="include\phapp.h">
|
||||
<Filter>Headers</Filter>
|
||||
</ClInclude>
|
||||
|
||||
@@ -38,6 +38,7 @@ typedef enum _PH_MAINWINDOW_CALLBACK_TYPE
|
||||
PH_MAINWINDOW_CALLBACK_TYPE_CANCEL_EARLY_SHUTDOWN,
|
||||
PH_MAINWINDOW_CALLBACK_TYPE_TOGGLE_VISIBLE,
|
||||
PH_MAINWINDOW_CALLBACK_TYPE_SHOW_MEMORY_EDITOR,
|
||||
PH_MAINWINDOW_CALLBACK_TYPE_SHOW_MEMORY_RESULTS,
|
||||
PH_MAINWINDOW_CALLBACK_TYPE_SELECT_TAB_PAGE,
|
||||
PH_MAINWINDOW_CALLBACK_TYPE_GET_CALLBACK_LAYOUT_PADDING,
|
||||
PH_MAINWINDOW_CALLBACK_TYPE_INVALIDATE_LAYOUT_PADDING,
|
||||
@@ -86,6 +87,8 @@ PhPluginInvokeWindowCallback(
|
||||
PhPluginInvokeWindowCallback(PH_MAINWINDOW_CALLBACK_TYPE_TOGGLE_VISIBLE, (PVOID)(ULONG_PTR)(AlwaysShow), 0)
|
||||
#define SystemInformer_ShowMemoryEditor(ShowMemoryEditor) \
|
||||
PhPluginInvokeWindowCallback(PH_MAINWINDOW_CALLBACK_TYPE_SHOW_MEMORY_EDITOR, 0, (PVOID)(ULONG_PTR)(ShowMemoryEditor))
|
||||
#define SystemInformer_ShowMemoryResults(ShowMemoryResults) \
|
||||
PhPluginInvokeWindowCallback(PH_MAINWINDOW_CALLBACK_TYPE_SHOW_MEMORY_RESULTS, 0, (PVOID)(ULONG_PTR)(ShowMemoryResults))
|
||||
#define SystemInformer_SelectTabPage(Index) \
|
||||
PhPluginInvokeWindowCallback(PH_MAINWINDOW_CALLBACK_TYPE_SELECT_TAB_PAGE, (PVOID)(ULONG_PTR)(Index), 0)
|
||||
#define SystemInformer_GetCallbackLayoutPadding() \
|
||||
@@ -155,6 +158,12 @@ typedef struct _PH_SHOW_MEMORY_EDITOR
|
||||
ULONG Flags;
|
||||
} PH_SHOW_MEMORY_EDITOR, *PPH_SHOW_MEMORY_EDITOR;
|
||||
|
||||
typedef struct _PH_SHOW_MEMORY_RESULTS
|
||||
{
|
||||
HANDLE ProcessId;
|
||||
PPH_LIST Results;
|
||||
} PH_SHOW_MEMORY_RESULTS, *PPH_SHOW_MEMORY_RESULTS;
|
||||
|
||||
// begin_phapppub
|
||||
typedef struct _PH_LAYOUT_PADDING_DATA
|
||||
{
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
#ifndef PH_MEMSRCH_H
|
||||
#define PH_MEMSRCH_H
|
||||
|
||||
typedef struct _PH_MEMORY_RESULT
|
||||
{
|
||||
LONG RefCount;
|
||||
PVOID Address;
|
||||
PVOID BaseAddress;
|
||||
SIZE_T Length;
|
||||
PH_STRINGREF Display;
|
||||
} PH_MEMORY_RESULT, *PPH_MEMORY_RESULT;
|
||||
|
||||
typedef VOID (NTAPI *PPH_MEMORY_RESULT_CALLBACK)(
|
||||
_In_ _Assume_refs_(1) PPH_MEMORY_RESULT Result,
|
||||
_In_opt_ PVOID Context
|
||||
);
|
||||
|
||||
#define PH_DISPLAY_BUFFER_COUNT (PAGE_SIZE * 2 - 1)
|
||||
|
||||
typedef struct _PH_MEMORY_SEARCH_OPTIONS
|
||||
{
|
||||
BOOLEAN Cancel;
|
||||
PPH_MEMORY_RESULT_CALLBACK Callback;
|
||||
PVOID Context;
|
||||
} PH_MEMORY_SEARCH_OPTIONS, *PPH_MEMORY_SEARCH_OPTIONS;
|
||||
|
||||
typedef struct _PH_MEMORY_STRING_OPTIONS
|
||||
{
|
||||
PH_MEMORY_SEARCH_OPTIONS Header;
|
||||
|
||||
ULONG MinimumLength;
|
||||
ULONG MemoryTypeMask;
|
||||
union
|
||||
{
|
||||
BOOLEAN Flags;
|
||||
struct
|
||||
{
|
||||
BOOLEAN DetectUnicode : 1;
|
||||
BOOLEAN ExtendedUnicode : 1;
|
||||
BOOLEAN Spare : 6;
|
||||
};
|
||||
};
|
||||
} PH_MEMORY_STRING_OPTIONS, *PPH_MEMORY_STRING_OPTIONS;
|
||||
|
||||
PVOID PhAllocateForMemorySearch(
|
||||
_In_ SIZE_T Size
|
||||
);
|
||||
|
||||
VOID PhFreeForMemorySearch(
|
||||
_In_ _Post_invalid_ PVOID Memory
|
||||
);
|
||||
|
||||
PVOID PhCreateMemoryResult(
|
||||
_In_ PVOID Address,
|
||||
_In_ PVOID BaseAddress,
|
||||
_In_ SIZE_T Length
|
||||
);
|
||||
|
||||
VOID PhReferenceMemoryResult(
|
||||
_In_ PPH_MEMORY_RESULT Result
|
||||
);
|
||||
|
||||
VOID PhDereferenceMemoryResult(
|
||||
_In_ PPH_MEMORY_RESULT Result
|
||||
);
|
||||
|
||||
VOID PhDereferenceMemoryResults(
|
||||
_In_reads_(NumberOfResults) PPH_MEMORY_RESULT *Results,
|
||||
_In_ ULONG NumberOfResults
|
||||
);
|
||||
|
||||
#endif
|
||||
@@ -593,6 +593,13 @@ VOID PhShowMemoryProtectDialog(
|
||||
_In_ PPH_MEMORY_ITEM MemoryItem
|
||||
);
|
||||
|
||||
// memrslt
|
||||
|
||||
VOID PhShowMemoryResultsDialog(
|
||||
_In_ HANDLE ProcessId,
|
||||
_In_ PPH_LIST Results
|
||||
);
|
||||
|
||||
// memsrch
|
||||
|
||||
VOID PhShowMemoryStringDialog(
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <actions.h>
|
||||
#include <colsetmgr.h>
|
||||
#include <memsrch.h>
|
||||
#include <netlist.h>
|
||||
#include <netprv.h>
|
||||
#include <notifico.h>
|
||||
@@ -4234,6 +4235,24 @@ VOID PhMwpInvokeShowMemoryEditorDialog(
|
||||
PhFree(showMemoryEditor);
|
||||
}
|
||||
|
||||
VOID PhMwpInvokeShowMemoryResultsDialog(
|
||||
_In_ PVOID Parameter
|
||||
)
|
||||
{
|
||||
PPH_SHOW_MEMORY_RESULTS showMemoryResults = (PPH_SHOW_MEMORY_RESULTS)Parameter;
|
||||
|
||||
PhShowMemoryResultsDialog(
|
||||
showMemoryResults->ProcessId,
|
||||
showMemoryResults->Results
|
||||
);
|
||||
PhDereferenceMemoryResults(
|
||||
(PPH_MEMORY_RESULT*)showMemoryResults->Results->Items,
|
||||
showMemoryResults->Results->Count
|
||||
);
|
||||
PhDereferenceObject(showMemoryResults->Results);
|
||||
PhFree(showMemoryResults);
|
||||
}
|
||||
|
||||
VOID PhMwpInvokeUpdateWindowFont(
|
||||
_In_opt_ PVOID Parameter
|
||||
)
|
||||
@@ -4430,6 +4449,13 @@ PVOID PhPluginInvokeWindowCallback(
|
||||
PostMessage(PhMainWndHandle, WM_PH_INVOKE, (WPARAM)showMemoryEditor, (LPARAM)PhMwpInvokeShowMemoryEditorDialog);
|
||||
}
|
||||
break;
|
||||
case PH_MAINWINDOW_CALLBACK_TYPE_SHOW_MEMORY_RESULTS:
|
||||
{
|
||||
PPH_SHOW_MEMORY_RESULTS showMemoryResults = (PPH_SHOW_MEMORY_RESULTS)lparam;
|
||||
|
||||
PostMessage(PhMainWndHandle, WM_PH_INVOKE, (WPARAM)showMemoryResults, (LPARAM)PhMwpInvokeShowMemoryResultsDialog);
|
||||
}
|
||||
break;
|
||||
case PH_MAINWINDOW_CALLBACK_TYPE_SELECT_TAB_PAGE:
|
||||
{
|
||||
SendMessage(PhMainWndHandle, WM_PH_INVOKE, (WPARAM)wparam, (LPARAM)PhMwpInvokeSelectTabPage);
|
||||
|
||||
@@ -0,0 +1,754 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
|
||||
*
|
||||
* This file is part of System Informer.
|
||||
*
|
||||
* Authors:
|
||||
*
|
||||
* wj32 2010-2016
|
||||
* dmex 2017-2023
|
||||
*
|
||||
*/
|
||||
|
||||
#include <phapp.h>
|
||||
#include <emenu.h>
|
||||
|
||||
#include <mainwnd.h>
|
||||
#include <memsrch.h>
|
||||
#include <procprv.h>
|
||||
#include <settings.h>
|
||||
|
||||
#include "../tools/thirdparty/pcre/pcre2.h"
|
||||
|
||||
#define FILTER_CONTAINS 1
|
||||
#define FILTER_CONTAINS_IGNORECASE 2
|
||||
#define FILTER_REGEX 3
|
||||
#define FILTER_REGEX_IGNORECASE 4
|
||||
|
||||
typedef struct _MEMORY_RESULTS_CONTEXT
|
||||
{
|
||||
HANDLE ProcessId;
|
||||
PPH_LIST Results;
|
||||
|
||||
PH_LAYOUT_MANAGER LayoutManager;
|
||||
} MEMORY_RESULTS_CONTEXT, *PMEMORY_RESULTS_CONTEXT;
|
||||
|
||||
INT_PTR CALLBACK PhpMemoryResultsDlgProc(
|
||||
_In_ HWND hwndDlg,
|
||||
_In_ UINT uMsg,
|
||||
_In_ WPARAM wParam,
|
||||
_In_ LPARAM lParam
|
||||
);
|
||||
|
||||
static RECT MinimumSize = { -1, -1, -1, -1 };
|
||||
|
||||
VOID PhShowMemoryResultsDialog(
|
||||
_In_ HANDLE ProcessId,
|
||||
_In_ PPH_LIST Results
|
||||
)
|
||||
{
|
||||
HWND windowHandle;
|
||||
PMEMORY_RESULTS_CONTEXT context;
|
||||
ULONG i;
|
||||
|
||||
context = PhAllocateZero(sizeof(MEMORY_RESULTS_CONTEXT));
|
||||
context->ProcessId = ProcessId;
|
||||
context->Results = Results;
|
||||
|
||||
PhReferenceObject(Results);
|
||||
|
||||
for (i = 0; i < Results->Count; i++)
|
||||
PhReferenceMemoryResult(Results->Items[i]);
|
||||
|
||||
windowHandle = PhCreateDialog(
|
||||
PhInstanceHandle,
|
||||
MAKEINTRESOURCE(IDD_MEMRESULTS),
|
||||
NULL,
|
||||
PhpMemoryResultsDlgProc,
|
||||
context
|
||||
);
|
||||
ShowWindow(windowHandle, SW_SHOW);
|
||||
SetForegroundWindow(windowHandle);
|
||||
}
|
||||
|
||||
static PPH_STRING PhpGetStringForSelectedResults(
|
||||
_In_ HWND ListViewHandle,
|
||||
_In_ PPH_LIST Results,
|
||||
_In_ BOOLEAN All
|
||||
)
|
||||
{
|
||||
PH_STRING_BUILDER stringBuilder;
|
||||
|
||||
PhInitializeStringBuilder(&stringBuilder, 0x100);
|
||||
|
||||
for (ULONG i = 0; i < Results->Count; i++)
|
||||
{
|
||||
PPH_MEMORY_RESULT result;
|
||||
WCHAR value[PH_PTR_STR_LEN_1];
|
||||
|
||||
if (!All)
|
||||
{
|
||||
if (!(ListView_GetItemState(ListViewHandle, i, LVIS_SELECTED) & LVIS_SELECTED))
|
||||
continue;
|
||||
}
|
||||
|
||||
result = Results->Items[i];
|
||||
|
||||
PhPrintPointer(value, result->Address);
|
||||
PhAppendFormatStringBuilder(
|
||||
&stringBuilder,
|
||||
L"%s (%lu): %s\r\n",
|
||||
value,
|
||||
(ULONG)result->Length,
|
||||
result->Display.Buffer ? result->Display.Buffer : L""
|
||||
);
|
||||
}
|
||||
|
||||
return PhFinalStringBuilderString(&stringBuilder);
|
||||
}
|
||||
|
||||
static VOID FilterResults(
|
||||
_In_ HWND hwndDlg,
|
||||
_In_ PMEMORY_RESULTS_CONTEXT Context,
|
||||
_In_ ULONG Type
|
||||
)
|
||||
{
|
||||
PPH_STRING selectedChoice = NULL;
|
||||
PPH_LIST results;
|
||||
pcre2_code *compiledExpression;
|
||||
pcre2_match_data *matchData;
|
||||
|
||||
results = Context->Results;
|
||||
|
||||
PhSetCursor(PhLoadCursor(NULL, IDC_WAIT));
|
||||
|
||||
while (PhaChoiceDialog(
|
||||
hwndDlg,
|
||||
L"Filter",
|
||||
L"Enter the filter pattern:",
|
||||
NULL,
|
||||
0,
|
||||
NULL,
|
||||
PH_CHOICE_DIALOG_USER_CHOICE,
|
||||
&selectedChoice,
|
||||
NULL,
|
||||
L"MemFilterChoices"
|
||||
))
|
||||
{
|
||||
PPH_LIST newResults = NULL;
|
||||
ULONG i;
|
||||
|
||||
if (Type == FILTER_CONTAINS || Type == FILTER_CONTAINS_IGNORECASE)
|
||||
{
|
||||
newResults = PhCreateList(1024);
|
||||
|
||||
if (Type == FILTER_CONTAINS)
|
||||
{
|
||||
for (i = 0; i < results->Count; i++)
|
||||
{
|
||||
PPH_MEMORY_RESULT result = results->Items[i];
|
||||
|
||||
if (wcsstr(result->Display.Buffer, selectedChoice->Buffer))
|
||||
{
|
||||
PhReferenceMemoryResult(result);
|
||||
PhAddItemList(newResults, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
PPH_STRING upperChoice;
|
||||
|
||||
upperChoice = PhaUpperString(selectedChoice);
|
||||
|
||||
for (i = 0; i < results->Count; i++)
|
||||
{
|
||||
PPH_MEMORY_RESULT result = results->Items[i];
|
||||
PWSTR upperDisplay;
|
||||
|
||||
upperDisplay = PhAllocateForMemorySearch(result->Display.Length + sizeof(WCHAR));
|
||||
// Copy the null terminator as well.
|
||||
memcpy(upperDisplay, result->Display.Buffer, result->Display.Length + sizeof(WCHAR));
|
||||
|
||||
_wcsupr(upperDisplay);
|
||||
|
||||
if (wcsstr(upperDisplay, upperChoice->Buffer))
|
||||
{
|
||||
PhReferenceMemoryResult(result);
|
||||
PhAddItemList(newResults, result);
|
||||
}
|
||||
|
||||
PhFreeForMemorySearch(upperDisplay);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (Type == FILTER_REGEX || Type == FILTER_REGEX_IGNORECASE)
|
||||
{
|
||||
int errorCode;
|
||||
PCRE2_SIZE errorOffset;
|
||||
|
||||
compiledExpression = pcre2_compile(
|
||||
selectedChoice->Buffer,
|
||||
selectedChoice->Length / sizeof(WCHAR),
|
||||
(Type == FILTER_REGEX_IGNORECASE ? PCRE2_CASELESS : 0) | PCRE2_DOTALL,
|
||||
&errorCode,
|
||||
&errorOffset,
|
||||
NULL
|
||||
);
|
||||
|
||||
if (!compiledExpression)
|
||||
{
|
||||
PhShowError2(hwndDlg, L"Unable to compile the regular expression.",
|
||||
L"\"%s\" at position %zu.",
|
||||
PhGetStringOrDefault(PH_AUTO(PhPcre2GetErrorMessage(errorCode)), L"Unknown error"),
|
||||
errorOffset
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
matchData = pcre2_match_data_create_from_pattern(compiledExpression, NULL);
|
||||
|
||||
newResults = PhCreateList(1024);
|
||||
|
||||
for (i = 0; i < results->Count; i++)
|
||||
{
|
||||
PPH_MEMORY_RESULT result = results->Items[i];
|
||||
|
||||
if (pcre2_match(
|
||||
compiledExpression,
|
||||
result->Display.Buffer,
|
||||
result->Display.Length / sizeof(WCHAR),
|
||||
0,
|
||||
0,
|
||||
matchData,
|
||||
NULL
|
||||
) >= 0)
|
||||
{
|
||||
PhReferenceMemoryResult(result);
|
||||
PhAddItemList(newResults, result);
|
||||
}
|
||||
}
|
||||
|
||||
pcre2_match_data_free(matchData);
|
||||
pcre2_code_free(compiledExpression);
|
||||
}
|
||||
|
||||
if (newResults)
|
||||
{
|
||||
PhShowMemoryResultsDialog(Context->ProcessId, newResults);
|
||||
PhDereferenceMemoryResults((PPH_MEMORY_RESULT *)newResults->Items, newResults->Count);
|
||||
PhDereferenceObject(newResults);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
PhSetCursor(PhLoadCursor(NULL, IDC_ARROW));
|
||||
}
|
||||
|
||||
INT_PTR CALLBACK PhpMemoryResultsDlgProc(
|
||||
_In_ HWND hwndDlg,
|
||||
_In_ UINT uMsg,
|
||||
_In_ WPARAM wParam,
|
||||
_In_ LPARAM lParam
|
||||
)
|
||||
{
|
||||
PMEMORY_RESULTS_CONTEXT context;
|
||||
|
||||
if (uMsg != WM_INITDIALOG)
|
||||
{
|
||||
context = PhGetWindowContext(hwndDlg, PH_WINDOW_CONTEXT_DEFAULT);
|
||||
}
|
||||
else
|
||||
{
|
||||
context = (PMEMORY_RESULTS_CONTEXT)lParam;
|
||||
PhSetWindowContext(hwndDlg, PH_WINDOW_CONTEXT_DEFAULT, context);
|
||||
}
|
||||
|
||||
if (!context)
|
||||
return FALSE;
|
||||
|
||||
switch (uMsg)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
{
|
||||
HWND lvHandle;
|
||||
|
||||
PhSetApplicationWindowIcon(hwndDlg);
|
||||
|
||||
PhRegisterDialog(hwndDlg);
|
||||
|
||||
{
|
||||
PPH_PROCESS_ITEM processItem;
|
||||
|
||||
if (processItem = PhReferenceProcessItem(context->ProcessId))
|
||||
{
|
||||
PhSetWindowText(hwndDlg, PhaFormatString(L"Results - %s (%u)",
|
||||
processItem->ProcessName->Buffer, HandleToUlong(processItem->ProcessId))->Buffer);
|
||||
PhDereferenceObject(processItem);
|
||||
}
|
||||
}
|
||||
|
||||
lvHandle = GetDlgItem(hwndDlg, IDC_LIST);
|
||||
PhSetListViewStyle(lvHandle, FALSE, TRUE);
|
||||
PhSetControlTheme(lvHandle, L"explorer");
|
||||
PhAddListViewColumn(lvHandle, 0, 0, 0, LVCFMT_LEFT, 120, L"Address");
|
||||
PhAddListViewColumn(lvHandle, 1, 1, 1, LVCFMT_LEFT, 120, L"Base Address");
|
||||
PhAddListViewColumn(lvHandle, 2, 2, 2, LVCFMT_LEFT, 80, L"Length");
|
||||
PhAddListViewColumn(lvHandle, 3, 3, 3, LVCFMT_LEFT, 200, L"Result");
|
||||
|
||||
PhLoadListViewColumnsFromSetting(L"MemResultsListViewColumns", lvHandle);
|
||||
|
||||
PhInitializeLayoutManager(&context->LayoutManager, hwndDlg);
|
||||
PhAddLayoutItem(&context->LayoutManager, GetDlgItem(hwndDlg, IDC_LIST), NULL,
|
||||
PH_ANCHOR_ALL);
|
||||
PhAddLayoutItem(&context->LayoutManager, GetDlgItem(hwndDlg, IDOK), NULL,
|
||||
PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM);
|
||||
PhAddLayoutItem(&context->LayoutManager, GetDlgItem(hwndDlg, IDC_COPY), NULL,
|
||||
PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM);
|
||||
PhAddLayoutItem(&context->LayoutManager, GetDlgItem(hwndDlg, IDC_SAVE), NULL,
|
||||
PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM);
|
||||
PhAddLayoutItem(&context->LayoutManager, GetDlgItem(hwndDlg, IDC_FILTER), NULL,
|
||||
PH_ANCHOR_BOTTOM | PH_ANCHOR_LEFT);
|
||||
|
||||
if (MinimumSize.left == -1)
|
||||
{
|
||||
RECT rect;
|
||||
|
||||
rect.left = 0;
|
||||
rect.top = 0;
|
||||
rect.right = 250;
|
||||
rect.bottom = 180;
|
||||
MapDialogRect(hwndDlg, &rect);
|
||||
MinimumSize = rect;
|
||||
MinimumSize.left = 0;
|
||||
}
|
||||
|
||||
ListView_SetItemCount(lvHandle, context->Results->Count);
|
||||
|
||||
PhSetDialogItemText(hwndDlg, IDC_INTRO, PhaFormatString(L"%s results.",
|
||||
PhaFormatUInt64(context->Results->Count, TRUE)->Buffer)->Buffer);
|
||||
|
||||
{
|
||||
PH_RECTANGLE windowRectangle = {0};
|
||||
RECT rect;
|
||||
LONG dpiValue;
|
||||
|
||||
windowRectangle.Position = PhGetIntegerPairSetting(L"MemResultsPosition");
|
||||
|
||||
rect = PhRectangleToRect(windowRectangle);
|
||||
dpiValue = PhGetMonitorDpi(&rect);
|
||||
|
||||
windowRectangle.Size = PhGetScalableIntegerPairSetting(L"MemResultsSize", TRUE, dpiValue).Pair;
|
||||
PhAdjustRectangleToWorkingArea(NULL, &windowRectangle);
|
||||
|
||||
MoveWindow(hwndDlg, windowRectangle.Left, windowRectangle.Top,
|
||||
windowRectangle.Width, windowRectangle.Height, FALSE);
|
||||
|
||||
// Implement cascading by saving an offsetted rectangle.
|
||||
windowRectangle.Left += 20;
|
||||
windowRectangle.Top += 20;
|
||||
|
||||
PhSetIntegerPairSetting(L"MemResultsPosition", windowRectangle.Position);
|
||||
PhSetScalableIntegerPairSetting2(L"MemResultsSize", windowRectangle.Size, dpiValue);
|
||||
}
|
||||
|
||||
PhInitializeWindowTheme(hwndDlg, PhEnableThemeSupport);
|
||||
}
|
||||
break;
|
||||
case WM_DESTROY:
|
||||
{
|
||||
PhSaveWindowPlacementToSetting(L"MemResultsPosition", L"MemResultsSize", hwndDlg);
|
||||
PhSaveListViewColumnsToSetting(L"MemResultsListViewColumns", GetDlgItem(hwndDlg, IDC_LIST));
|
||||
|
||||
PhDeleteLayoutManager(&context->LayoutManager);
|
||||
PhUnregisterDialog(hwndDlg);
|
||||
PhRemoveWindowContext(hwndDlg, PH_WINDOW_CONTEXT_DEFAULT);
|
||||
|
||||
PhDereferenceMemoryResults((PPH_MEMORY_RESULT *)context->Results->Items, context->Results->Count);
|
||||
PhDereferenceObject(context->Results);
|
||||
PhFree(context);
|
||||
}
|
||||
break;
|
||||
case WM_COMMAND:
|
||||
{
|
||||
switch (GET_WM_COMMAND_ID(wParam, lParam))
|
||||
{
|
||||
case IDCANCEL:
|
||||
case IDOK:
|
||||
DestroyWindow(hwndDlg);
|
||||
break;
|
||||
case IDC_COPY:
|
||||
{
|
||||
HWND lvHandle;
|
||||
PPH_STRING string;
|
||||
ULONG selectedCount;
|
||||
|
||||
lvHandle = GetDlgItem(hwndDlg, IDC_LIST);
|
||||
selectedCount = ListView_GetSelectedCount(lvHandle);
|
||||
|
||||
if (selectedCount == 0)
|
||||
{
|
||||
// User didn't select anything, so copy all items.
|
||||
string = PhpGetStringForSelectedResults(lvHandle, context->Results, TRUE);
|
||||
PhSetStateAllListViewItems(lvHandle, LVIS_SELECTED, LVIS_SELECTED);
|
||||
}
|
||||
else
|
||||
{
|
||||
string = PhpGetStringForSelectedResults(lvHandle, context->Results, FALSE);
|
||||
}
|
||||
|
||||
PhSetClipboardString(hwndDlg, &string->sr);
|
||||
PhDereferenceObject(string);
|
||||
|
||||
PhSetDialogFocus(hwndDlg, lvHandle);
|
||||
}
|
||||
break;
|
||||
case IDC_SAVE:
|
||||
{
|
||||
static PH_FILETYPE_FILTER filters[] =
|
||||
{
|
||||
{ L"Text files (*.txt)", L"*.txt" },
|
||||
{ L"All files (*.*)", L"*.*" }
|
||||
};
|
||||
PVOID fileDialog;
|
||||
|
||||
fileDialog = PhCreateSaveFileDialog();
|
||||
|
||||
PhSetFileDialogFilter(fileDialog, filters, sizeof(filters) / sizeof(PH_FILETYPE_FILTER));
|
||||
PhSetFileDialogFileName(fileDialog, L"Search results.txt");
|
||||
|
||||
if (PhShowFileDialog(hwndDlg, fileDialog))
|
||||
{
|
||||
NTSTATUS status;
|
||||
PPH_STRING fileName;
|
||||
PPH_FILE_STREAM fileStream;
|
||||
PPH_STRING string;
|
||||
|
||||
fileName = PH_AUTO(PhGetFileDialogFileName(fileDialog));
|
||||
|
||||
if (NT_SUCCESS(status = PhCreateFileStream(
|
||||
&fileStream,
|
||||
fileName->Buffer,
|
||||
FILE_GENERIC_WRITE,
|
||||
FILE_SHARE_READ,
|
||||
FILE_OVERWRITE_IF,
|
||||
0
|
||||
)))
|
||||
{
|
||||
PhWriteStringAsUtf8FileStream(fileStream, (PPH_STRINGREF)&PhUnicodeByteOrderMark);
|
||||
PhWritePhTextHeader(fileStream);
|
||||
|
||||
string = PhpGetStringForSelectedResults(GetDlgItem(hwndDlg, IDC_LIST), context->Results, TRUE);
|
||||
PhWriteStringAsUtf8FileStreamEx(fileStream, string->Buffer, string->Length);
|
||||
PhDereferenceObject(string);
|
||||
|
||||
PhDereferenceObject(fileStream);
|
||||
}
|
||||
|
||||
if (!NT_SUCCESS(status))
|
||||
PhShowStatus(hwndDlg, L"Unable to create the file", status, 0);
|
||||
}
|
||||
|
||||
PhFreeFileDialog(fileDialog);
|
||||
}
|
||||
break;
|
||||
case IDC_FILTER:
|
||||
{
|
||||
PPH_EMENU menu;
|
||||
RECT buttonRect;
|
||||
POINT point;
|
||||
PPH_EMENU_ITEM selectedItem;
|
||||
ULONG filterType = 0;
|
||||
|
||||
menu = PhCreateEMenu();
|
||||
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_FILTER_CONTAINS, L"Contains...", NULL, NULL), ULONG_MAX);
|
||||
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_FILTER_CONTAINS_CASEINSENSITIVE, L"Contains (case-insensitive)...", NULL, NULL), ULONG_MAX);
|
||||
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_FILTER_REGEX, L"Regex...", NULL, NULL), ULONG_MAX);
|
||||
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_FILTER_REGEX_CASEINSENSITIVE, L"Regex (case-insensitive)...", NULL, NULL), ULONG_MAX);
|
||||
|
||||
GetClientRect(GetDlgItem(hwndDlg, IDC_FILTER), &buttonRect);
|
||||
point.x = 0;
|
||||
point.y = buttonRect.bottom;
|
||||
|
||||
ClientToScreen(GetDlgItem(hwndDlg, IDC_FILTER), &point);
|
||||
selectedItem = PhShowEMenu(menu, hwndDlg, PH_EMENU_SHOW_LEFTRIGHT,
|
||||
PH_ALIGN_LEFT | PH_ALIGN_TOP, point.x, point.y);
|
||||
|
||||
if (selectedItem)
|
||||
{
|
||||
switch (selectedItem->Id)
|
||||
{
|
||||
case ID_FILTER_CONTAINS:
|
||||
filterType = FILTER_CONTAINS;
|
||||
break;
|
||||
case ID_FILTER_CONTAINS_CASEINSENSITIVE:
|
||||
filterType = FILTER_CONTAINS_IGNORECASE;
|
||||
break;
|
||||
case ID_FILTER_REGEX:
|
||||
filterType = FILTER_REGEX;
|
||||
break;
|
||||
case ID_FILTER_REGEX_CASEINSENSITIVE:
|
||||
filterType = FILTER_REGEX_IGNORECASE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (filterType != 0)
|
||||
FilterResults(hwndDlg, context, filterType);
|
||||
|
||||
PhDestroyEMenu(menu);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case WM_NOTIFY:
|
||||
{
|
||||
LPNMHDR header = (LPNMHDR)lParam;
|
||||
HWND lvHandle;
|
||||
|
||||
lvHandle = GetDlgItem(hwndDlg, IDC_LIST);
|
||||
PhHandleListViewNotifyForCopy(lParam, lvHandle);
|
||||
|
||||
switch (header->code)
|
||||
{
|
||||
case LVN_GETDISPINFO:
|
||||
{
|
||||
NMLVDISPINFO *dispInfo = (NMLVDISPINFO *)header;
|
||||
|
||||
if (dispInfo->item.mask & LVIF_TEXT)
|
||||
{
|
||||
PPH_MEMORY_RESULT result = context->Results->Items[dispInfo->item.iItem];
|
||||
|
||||
switch (dispInfo->item.iSubItem)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
WCHAR addressString[PH_PTR_STR_LEN_1];
|
||||
|
||||
PhPrintPointer(addressString, result->Address);
|
||||
wcsncpy_s(
|
||||
dispInfo->item.pszText,
|
||||
dispInfo->item.cchTextMax,
|
||||
addressString,
|
||||
_TRUNCATE
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
WCHAR baseAddressString[PH_PTR_STR_LEN_1];
|
||||
|
||||
PhPrintPointer(baseAddressString, result->BaseAddress);
|
||||
wcsncpy_s(
|
||||
dispInfo->item.pszText,
|
||||
dispInfo->item.cchTextMax,
|
||||
baseAddressString,
|
||||
_TRUNCATE
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
WCHAR lengthString[PH_INT32_STR_LEN_1];
|
||||
|
||||
PhPrintUInt32(lengthString, (ULONG)result->Length);
|
||||
wcsncpy_s(
|
||||
dispInfo->item.pszText,
|
||||
dispInfo->item.cchTextMax,
|
||||
lengthString,
|
||||
_TRUNCATE
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
wcsncpy_s(
|
||||
dispInfo->item.pszText,
|
||||
dispInfo->item.cchTextMax,
|
||||
result->Display.Buffer,
|
||||
_TRUNCATE
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case NM_DBLCLK:
|
||||
{
|
||||
if (header->hwndFrom == lvHandle)
|
||||
{
|
||||
INT index;
|
||||
|
||||
if ((index = PhFindListViewItemByFlags(lvHandle, -1, LVNI_SELECTED)) != -1)
|
||||
{
|
||||
NTSTATUS status;
|
||||
PPH_MEMORY_RESULT result = context->Results->Items[index];
|
||||
HANDLE processHandle;
|
||||
MEMORY_BASIC_INFORMATION basicInfo;
|
||||
PPH_SHOW_MEMORY_EDITOR showMemoryEditor;
|
||||
|
||||
if (NT_SUCCESS(status = PhOpenProcess(
|
||||
&processHandle,
|
||||
PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
|
||||
context->ProcessId
|
||||
)))
|
||||
{
|
||||
if (NT_SUCCESS(status = NtQueryVirtualMemory(
|
||||
processHandle,
|
||||
result->Address,
|
||||
MemoryBasicInformation,
|
||||
&basicInfo,
|
||||
sizeof(MEMORY_BASIC_INFORMATION),
|
||||
NULL
|
||||
)))
|
||||
{
|
||||
showMemoryEditor = PhAllocateZero(sizeof(PH_SHOW_MEMORY_EDITOR));
|
||||
showMemoryEditor->ProcessId = context->ProcessId;
|
||||
showMemoryEditor->BaseAddress = basicInfo.BaseAddress;
|
||||
showMemoryEditor->RegionSize = basicInfo.RegionSize;
|
||||
showMemoryEditor->SelectOffset = (ULONG)((ULONG_PTR)result->Address - (ULONG_PTR)basicInfo.BaseAddress);
|
||||
showMemoryEditor->SelectLength = (ULONG)result->Length;
|
||||
|
||||
SystemInformer_ShowMemoryEditor(showMemoryEditor);
|
||||
}
|
||||
|
||||
NtClose(processHandle);
|
||||
}
|
||||
|
||||
if (!NT_SUCCESS(status))
|
||||
PhShowStatus(hwndDlg, L"Unable to edit memory", status, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case NM_RCLICK:
|
||||
{
|
||||
if (header->hwndFrom == lvHandle)
|
||||
{
|
||||
POINT point;
|
||||
PPH_EMENU menu;
|
||||
PPH_EMENU_ITEM selectedItem;
|
||||
|
||||
menu = PhCreateEMenu();
|
||||
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_MEMORY_READWRITEMEMORY, L"Read/Write memory", NULL, NULL), ULONG_MAX);
|
||||
PhInsertEMenuItem(menu, PhCreateEMenuSeparator(), ULONG_MAX);
|
||||
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, IDC_COPY, L"Copy", NULL, NULL), ULONG_MAX);
|
||||
PhInsertCopyListViewEMenuItem(menu, IDC_COPY, lvHandle);
|
||||
|
||||
GetCursorPos(&point);
|
||||
|
||||
selectedItem = PhShowEMenu(
|
||||
menu,
|
||||
hwndDlg,
|
||||
PH_EMENU_SHOW_LEFTRIGHT,
|
||||
PH_ALIGN_LEFT | PH_ALIGN_TOP,
|
||||
point.x,
|
||||
point.y
|
||||
);
|
||||
|
||||
if (selectedItem)
|
||||
{
|
||||
if (!PhHandleCopyListViewEMenuItem(selectedItem))
|
||||
{
|
||||
switch (selectedItem->Id)
|
||||
{
|
||||
case ID_MEMORY_READWRITEMEMORY:
|
||||
{
|
||||
INT index;
|
||||
|
||||
if ((index = PhFindListViewItemByFlags(lvHandle, -1, LVNI_SELECTED)) != -1)
|
||||
{
|
||||
NTSTATUS status;
|
||||
PPH_MEMORY_RESULT result = context->Results->Items[index];
|
||||
HANDLE processHandle;
|
||||
MEMORY_BASIC_INFORMATION basicInfo;
|
||||
PPH_SHOW_MEMORY_EDITOR showMemoryEditor;
|
||||
|
||||
if (NT_SUCCESS(status = PhOpenProcess(
|
||||
&processHandle,
|
||||
PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
|
||||
context->ProcessId
|
||||
)))
|
||||
{
|
||||
if (NT_SUCCESS(status = NtQueryVirtualMemory(
|
||||
processHandle,
|
||||
result->Address,
|
||||
MemoryBasicInformation,
|
||||
&basicInfo,
|
||||
sizeof(MEMORY_BASIC_INFORMATION),
|
||||
NULL
|
||||
)))
|
||||
{
|
||||
showMemoryEditor = PhAllocateZero(sizeof(PH_SHOW_MEMORY_EDITOR));
|
||||
showMemoryEditor->ProcessId = context->ProcessId;
|
||||
showMemoryEditor->BaseAddress = basicInfo.BaseAddress;
|
||||
showMemoryEditor->RegionSize = basicInfo.RegionSize;
|
||||
showMemoryEditor->SelectOffset = (ULONG)((ULONG_PTR)result->Address - (ULONG_PTR)basicInfo.BaseAddress);
|
||||
showMemoryEditor->SelectLength = (ULONG)result->Length;
|
||||
|
||||
SystemInformer_ShowMemoryResults(showMemoryEditor);
|
||||
}
|
||||
|
||||
NtClose(processHandle);
|
||||
}
|
||||
|
||||
if (!NT_SUCCESS(status))
|
||||
PhShowStatus(hwndDlg, L"Unable to edit memory", status, 0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case IDC_COPY:
|
||||
{
|
||||
PPH_STRING string;
|
||||
ULONG selectedCount;
|
||||
|
||||
selectedCount = ListView_GetSelectedCount(lvHandle);
|
||||
|
||||
if (selectedCount == 0)
|
||||
{
|
||||
// User didn't select anything, so copy all items.
|
||||
string = PhpGetStringForSelectedResults(lvHandle, context->Results, TRUE);
|
||||
PhSetStateAllListViewItems(lvHandle, LVIS_SELECTED, LVIS_SELECTED);
|
||||
}
|
||||
else
|
||||
{
|
||||
string = PhpGetStringForSelectedResults(lvHandle, context->Results, FALSE);
|
||||
}
|
||||
|
||||
PhSetClipboardString(hwndDlg, &string->sr);
|
||||
PhDereferenceObject(string);
|
||||
|
||||
PhSetDialogFocus(hwndDlg, lvHandle);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PhDestroyEMenu(menu);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case WM_SIZE:
|
||||
{
|
||||
PhLayoutManagerLayout(&context->LayoutManager);
|
||||
}
|
||||
break;
|
||||
case WM_SIZING:
|
||||
{
|
||||
PhResizingMinimumSize((PRECT)lParam, wParam, MinimumSize.right, MinimumSize.bottom);
|
||||
}
|
||||
break;
|
||||
case WM_CTLCOLORBTN:
|
||||
return HANDLE_WM_CTLCOLORBTN(hwndDlg, wParam, lParam, PhWindowThemeControlColor);
|
||||
case WM_CTLCOLORDLG:
|
||||
return HANDLE_WM_CTLCOLORDLG(hwndDlg, wParam, lParam, PhWindowThemeControlColor);
|
||||
case WM_CTLCOLORSTATIC:
|
||||
return HANDLE_WM_CTLCOLORSTATIC(hwndDlg, wParam, lParam, PhWindowThemeControlColor);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
+407
-1227
File diff suppressed because it is too large
Load Diff
@@ -62,8 +62,8 @@
|
||||
#define IDD_LOG 178
|
||||
#define IDD_MEMEDIT 180
|
||||
#define IDD_MEMPROTECT 182
|
||||
#define IDD_MEMSTRINGS 183
|
||||
#define IDD_MEMSTRINGSMINLEN 185
|
||||
#define IDD_MEMRESULTS 183
|
||||
#define IDD_MEMSTRING 185
|
||||
#define IDD_OPTGRAPHS 186
|
||||
#define IDD_PLUGINS 187
|
||||
#define IDD_PLUGINMANAGER 187
|
||||
@@ -407,6 +407,11 @@
|
||||
#define IDC_VALUE 1230
|
||||
#define IDC_DELAYEDSTART 1234
|
||||
#define IDC_MINIMUMLENGTH 1236
|
||||
#define IDC_DETECTUNICODE 1237
|
||||
#define IDC_PRIVATE 1238
|
||||
#define IDC_IMAGE 1239
|
||||
#define IDC_MAPPED 1240
|
||||
#define IDC_EXTENDEDUNICODE 1241
|
||||
#define IDC_SHOWTEXT 1245
|
||||
#define IDC_ICONPROCESSES 1248
|
||||
#define IDC_CLEANUP 1251
|
||||
|
||||
@@ -159,12 +159,10 @@ VOID PhAddDefaultSettings(
|
||||
PhpAddStringSetting(L"MemEditGotoChoices", L"");
|
||||
PhpAddIntegerPairSetting(L"MemEditPosition", L"0,0");
|
||||
PhpAddScalableIntegerPairSetting(L"MemEditSize", L"@96|600,500");
|
||||
PhpAddStringSetting(L"MemStringsTreeListColumns", L"");
|
||||
PhpAddStringSetting(L"MemStringsTreeListSort", L"0,1"); // 0, AscendingSortOrder
|
||||
PhpAddIntegerSetting(L"MemStringsTreeListFlags", L"b"); // ANSI, Unicode, Private
|
||||
PhpAddIntegerSetting(L"MemStringsMinimumLength", L"a"); // 10
|
||||
PhpAddIntegerPairSetting(L"MemStringsWindowPosition", L"0,0");
|
||||
PhpAddScalableIntegerPairSetting(L"MemStringsWindowSize", L"@96|550,420");
|
||||
PhpAddStringSetting(L"MemFilterChoices", L"");
|
||||
PhpAddStringSetting(L"MemResultsListViewColumns", L"");
|
||||
PhpAddIntegerPairSetting(L"MemResultsPosition", L"300,300");
|
||||
PhpAddScalableIntegerPairSetting(L"MemResultsSize", L"@96|500,520");
|
||||
PhpAddIntegerSetting(L"MemoryListFlags", L"3");
|
||||
PhpAddStringSetting(L"MemoryTreeListColumns", L"");
|
||||
PhpAddStringSetting(L"MemoryTreeListSort", L"0,0"); // 0, NoSortOrder
|
||||
|
||||
Reference in New Issue
Block a user