Move envdlg to main program

This commit is contained in:
dmex
2026-07-19 07:40:01 +10:00
parent 943d5f084f
commit f9fa4a369d
4 changed files with 25 additions and 1567 deletions
+1
View File
@@ -154,6 +154,7 @@ set(SOURCES
"procprv.c"
"procrec.c"
"proctree.c"
"envdlg.c"
"prpgenv.c"
"prpggen.c"
"prpghndl.c"
+24
View File
@@ -794,6 +794,30 @@ VOID PhShowPagefilesDialog(
_In_ HWND ParentWindowHandle
);
// envdlg
BOOLEAN PhShowEnvironmentVariableEditDialog(
_In_ HWND ParentWindowHandle,
_In_opt_ PCWSTR InitialName,
_In_opt_ PCWSTR InitialValue,
_In_ BOOLEAN NameReadOnly,
_In_ BOOLEAN ReadOnly,
_Out_ PPH_STRING *Name,
_Out_ PPH_STRING *Value
);
BOOLEAN PhShowEnvironmentVariableSplitDialog(
_In_ HWND ParentWindowHandle,
_In_ PPH_STRING Name,
_In_ PPH_STRING Value,
_In_ BOOLEAN ReadOnly,
_Out_ PPH_STRING *NewValue
);
VOID PhShowEnvironmentVariablesDialog(
_In_ HWND ParentWindowHandle
);
// plugman
INT_PTR CALLBACK PhPluginsDlgProc(
File diff suppressed because it is too large Load Diff
-6
View File
@@ -234,11 +234,6 @@ VOID NTAPI MenuItemCallback(
EtShowPoolTableDialog(menuItem->OwnerWindow);
}
break;
case ID_ENVIRONMENT_VARIABLES:
{
EtShowEnvironmentVariablesDialog(menuItem->OwnerWindow);
}
break;
case ID_TPM:
{
EtShowTpmDialog(menuItem->OwnerWindow);
@@ -311,7 +306,6 @@ VOID NTAPI MainMenuInitializingCallback(
}
PhInsertEMenuItem(systemMenu, PhPluginCreateEMenuItem(PluginInstance, 0, ID_POOL_TABLE, L"Poo&l Table", NULL), ULONG_MAX);
PhInsertEMenuItem(systemMenu, PhPluginCreateEMenuItem(PluginInstance, 0, ID_ENVIRONMENT_VARIABLES, L"&Environment variables", NULL), ULONG_MAX);
//PhInsertEMenuItem(systemMenu, PhPluginCreateEMenuItem(PluginInstance, 0, ID_OBJMGR, L"&Object Manager", NULL), ULONG_MAX);
PhInsertEMenuItem(systemMenu, PhPluginCreateEMenuItem(PluginInstance, 0, ID_SMBIOS, L"SM&BIOS", NULL), ULONG_MAX);
PhInsertEMenuItem(systemMenu, PhPluginCreateEMenuItem(PluginInstance, 0, ID_ACPI, L"&ACPI Tables", NULL), ULONG_MAX);