UI/HelpWindow.xaml
|
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="PSRPM - Help & Information Reference" Height="640" Width="840" MinHeight="520" MinWidth="700" WindowStartupLocation="CenterOwner" ResizeMode="CanResizeWithGrip" Background="{DynamicResource BrushWindowBg}" Foreground="{DynamicResource BrushTextPrimary}" FontFamily="Segoe UI" FontSize="12" TextOptions.TextFormattingMode="Display" UseLayoutRounding="True" SnapsToDevicePixels="True"> <Window.Resources> <!-- Default Clean Light Fallback Brushes --> <SolidColorBrush x:Key="BrushWindowBg" Color="#F8FAFC"/> <SolidColorBrush x:Key="BrushToolbarBg" Color="#F1F5F9"/> <SolidColorBrush x:Key="BrushSurfaceBg" Color="#FFFFFF"/> <SolidColorBrush x:Key="BrushHeaderBg" Color="#E2E8F0"/> <SolidColorBrush x:Key="BrushBorderSubtle" Color="#CBD5E1"/> <SolidColorBrush x:Key="BrushTextPrimary" Color="#0F172A"/> <SolidColorBrush x:Key="BrushTextSecondary" Color="#334155"/> <SolidColorBrush x:Key="BrushTextMuted" Color="#475569"/> <SolidColorBrush x:Key="BrushAccent" Color="#0369A1"/> <SolidColorBrush x:Key="BrushBadgeBg" Color="#0369A1"/> <SolidColorBrush x:Key="BrushBadgeFg" Color="#FFFFFF"/> <SolidColorBrush x:Key="BrushHelpSuccessFg" Color="#166534"/> <SolidColorBrush x:Key="BrushHelpAmberFg" Color="#92400E"/> <SolidColorBrush x:Key="BrushHelpVioletFg" Color="#6D28D9"/> <SolidColorBrush x:Key="BrushKillFg" Color="#B91C1C"/> <SolidColorBrush x:Key="BrushSwatchSvcBg" Color="#FFE4E6"/> <SolidColorBrush x:Key="BrushSwatchSvcBorder" Color="#FDA4AF"/> <SolidColorBrush x:Key="BrushSwatchSvcFg" Color="#0F172A"/> <SolidColorBrush x:Key="BrushSwatchOwnBg" Color="#E0E7FF"/> <SolidColorBrush x:Key="BrushSwatchOwnBorder" Color="#A5B4FC"/> <SolidColorBrush x:Key="BrushSwatchOwnFg" Color="#0F172A"/> <SolidColorBrush x:Key="BrushSwatchPkgBg" Color="#67E8F9"/> <SolidColorBrush x:Key="BrushSwatchPkgBorder" Color="#06B6D4"/> <SolidColorBrush x:Key="BrushSwatchPkgFg" Color="#0F172A"/> <SolidColorBrush x:Key="BrushSwatchSuspBg" Color="#94A3B8"/> <SolidColorBrush x:Key="BrushSwatchSuspBorder" Color="#64748B"/> <SolidColorBrush x:Key="BrushSwatchSuspFg" Color="#0F172A"/> <SolidColorBrush x:Key="BrushSwatchNewBg" Color="#86EFAC"/> <SolidColorBrush x:Key="BrushSwatchNewBorder" Color="#22C55E"/> <SolidColorBrush x:Key="BrushSwatchNewFg" Color="#0F172A"/> <SolidColorBrush x:Key="BrushSwatchExitBg" Color="#FCA5A5"/> <SolidColorBrush x:Key="BrushSwatchExitBorder" Color="#EF4444"/> <SolidColorBrush x:Key="BrushSwatchExitFg" Color="#0F172A"/> <!-- Key Combo Badge Style --> <Style x:Key="KeyBadge" TargetType="Border"> <Setter Property="Background" Value="{DynamicResource BrushHeaderBg}"/> <Setter Property="BorderBrush" Value="{DynamicResource BrushBorderSubtle}"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="CornerRadius" Value="3"/> <Setter Property="Padding" Value="6,2"/> <Setter Property="Margin" Value="0,1,8,1"/> <Setter Property="VerticalAlignment" Value="Center"/> </Style> <Style x:Key="KeyBadgeText" TargetType="TextBlock"> <Setter Property="FontFamily" Value="Consolas, Segoe UI"/> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="FontSize" Value="11"/> <Setter Property="Foreground" Value="{DynamicResource BrushTextPrimary}"/> <Setter Property="VerticalAlignment" Value="Center"/> </Style> <!-- Descriptive Shortcut Text Style --> <Style x:Key="ShortcutDescText" TargetType="TextBlock"> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="Foreground" Value="{DynamicResource BrushTextPrimary}"/> <Setter Property="FontSize" Value="12"/> </Style> <!-- Section Header Text Style --> <Style x:Key="SectionHeader" TargetType="TextBlock"> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="FontSize" Value="13"/> <Setter Property="Foreground" Value="{DynamicResource BrushAccent}"/> <Setter Property="Margin" Value="0,8,0,4"/> </Style> <!-- Info Label & Value Styles --> <Style x:Key="InfoLabel" TargetType="TextBlock"> <Setter Property="Foreground" Value="{DynamicResource BrushTextMuted}"/> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="Margin" Value="0,2,8,2"/> <Setter Property="FontWeight" Value="SemiBold"/> </Style> <Style x:Key="InfoValue" TargetType="TextBlock"> <Setter Property="Foreground" Value="{DynamicResource BrushTextPrimary}"/> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="Margin" Value="0,2,0,2"/> </Style> <Style TargetType="GroupBox"> <Setter Property="BorderBrush" Value="{DynamicResource BrushBorderSubtle}"/> <Setter Property="Foreground" Value="{DynamicResource BrushTextPrimary}"/> </Style> <Style TargetType="Button"> <Setter Property="Background" Value="{DynamicResource BrushToolbarBg}"/> <Setter Property="Foreground" Value="{DynamicResource BrushTextPrimary}"/> <Setter Property="BorderBrush" Value="{DynamicResource BrushBorderSubtle}"/> <Setter Property="BorderThickness" Value="1"/> </Style> </Window.Resources> <Grid Margin="12"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <!-- Top Header Bar with Icon, Title and Version Badge --> <Border Grid.Row="0" Background="{DynamicResource BrushToolbarBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="4" Padding="12,10" Margin="0,0,0,10"> <DockPanel> <Border DockPanel.Dock="Right" Background="{DynamicResource BrushBadgeBg}" CornerRadius="3" Padding="8,3" VerticalAlignment="Center"> <TextBlock x:Name="TxtHeaderBadge" Text="v1.13.0" Foreground="{DynamicResource BrushBadgeFg}" FontSize="11" FontWeight="Bold"/> </Border> <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> <!-- Tachometer Vector Icon --> <Grid Width="28" Height="28" Margin="0,0,10,0" VerticalAlignment="Center"> <Path Data="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12C20,14.4 18.9,16.5 17.2,17.9L15.8,16.5C17.2,15.3 18,13.7 18,12A6,6 0 0,0 12,6A6,6 0 0,0 6,12C6,13.7 6.8,15.3 8.2,16.5L6.8,17.9C5.1,16.5 4,14.4 4,12A8,8 0 0,1 12,4M12,8A4,4 0 0,0 8,12C8,13.1 8.5,14.1 9.3,14.7L13.4,10.6C13.2,10.2 13,9.8 13,9.4A1.4,1.4 0 0,1 14.4,8C14.8,8 15.2,8.2 15.6,8.4L17,7C15.6,5.8 13.9,5 12,5V8Z" Fill="{DynamicResource BrushAccent}" Stretch="Uniform"/> </Grid> <StackPanel VerticalAlignment="Center"> <TextBlock Text="PSRPM - PowerShell Remote Process Manager" FontWeight="Bold" FontSize="14" Foreground="{DynamicResource BrushTextPrimary}"/> <TextBlock Text="Sysinternals Process Explorer Ergonomics over Fileless WinRM & Local PowerShell" Foreground="{DynamicResource BrushTextSecondary}" FontSize="11" Margin="0,1,0,0"/> </StackPanel> </StackPanel> </DockPanel> </Border> <!-- Main Tab Control --> <TabControl x:Name="HelpTabControl" AutomationProperties.Name="Help and Documentation Tabs" Grid.Row="1" Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}"> <!-- TAB 1: KEYBOARD SHORTCUTS --> <TabItem Header="_Shortcuts" Padding="12,4"> <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10"> <StackPanel> <!-- Section: Navigation & Views --> <TextBlock Text="Navigation & View Controls" Style="{StaticResource SectionHeader}"/> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="3" Padding="8,4" Margin="0,0,0,10"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="130"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Border Grid.Row="0" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+T" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="0" Grid.Column="1" Text="Toggle between Hierarchical Process Tree and Flat List view" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="1" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+Shift+T" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="1" Grid.Column="1" Text="Toggle Always On Top window pinning" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="2" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+F" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="2" Grid.Column="1" Text="Focus the instant search/filter box (Processes, Services, or Network Activity tab)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="3" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Esc" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="3" Grid.Column="1" Text="Clear active search filter and return focus to Processes, Services, or Network grid" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="4" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Left Arrow" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="4" Grid.Column="1" Text="Collapse branch in Tree View, or jump to parent process if leaf/collapsed" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="5" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Right Arrow" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="5" Grid.Column="1" Text="Expand branch in Tree View, or jump to first child process if expanded" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="6" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+I" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="6" Grid.Column="1" Text="Open 5-Tab System Information window (Summary, CPU, Memory, I/O, Network)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="7" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+L" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="7" Grid.Column="1" Text="Toggle bottom Audit Trail & Network Telemetry Console pane" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="8" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+Shift+N" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="8" Grid.Column="1" Text="Toggle opt-in Per-Process Kernel Network Monitoring (ETW)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="9" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+D" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="9" Grid.Column="1" Text="Cycle through themes: Clean Light, Dark Mode, Tokyo Night, Tokyo Night Light, Classic, and High-Contrast" Style="{StaticResource ShortcutDescText}"/> </Grid> </Border> <!-- Section: Process Control & Operations --> <TextBlock Text="Process Operations & Inspection" Style="{StaticResource SectionHeader}"/> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="3" Padding="8,4" Margin="0,0,0,10"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="130"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Border Grid.Row="0" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Enter / Dbl-Click" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="0" Grid.Column="1" Text="Open 7-Tab Process Properties Inspector (or Service Inspector / Network Process Properties)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="1" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl / Shift+Click" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="1" Grid.Column="1" Text="Select multiple processes (Ctrl+Click) or contiguous range (Shift+Click / Shift+Arrows) for batch actions" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="2" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Del" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="2" Grid.Column="1" Text="Terminate selected process(es) (KillProcess) with confirmation" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="3" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Shift+Del" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="3" Grid.Column="1" Text="Terminate selected process tree(s) (KillTree) with two-phase atomic suspension" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="4" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+C" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="4" Grid.Column="1" Text="Copy selected row details (Process Command Line, Service Name, or Network Endpoint Details)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="5" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+Shift+F" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="5" Grid.Column="1" Text="Open Find Handle or DLL Substring search window" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="6" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Space" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="6" Grid.Column="1" Text="Pause / resume real-time telemetry polling (when grid or toolbar has focus)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="7" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="F5" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="7" Grid.Column="1" Text="Trigger immediate telemetry poll and differential UI sync" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="8" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+B" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="8" Grid.Column="1" Text="Capture or update process baseline snapshot for active host delta comparisons" Style="{StaticResource ShortcutDescText}"/> </Grid> </Border> <!-- Section: Multi-Host Tabbed Sessions --> <TextBlock Text="Multi-Host Session Management" Style="{StaticResource SectionHeader}"/> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="3" Padding="8,4" Margin="0,0,0,10"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="130"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Border Grid.Row="0" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+K" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="0" Grid.Column="1" Text="Open Connect modal to switch the active host target or switch to Local mode" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="1" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+Shift+K" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="1" Grid.Column="1" Text="Open Connect modal in 'New Tab' mode (keep current target warm in standby)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="2" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+W" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="2" Grid.Column="1" Text="Close the current host session tab and switch to the nearest tab" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="3" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+Tab" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="3" Grid.Column="1" Text="Cycle forward to next open host session tab (< 5ms in-place swap)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="4" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+Shift+Tab" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="4" Grid.Column="1" Text="Cycle backward to previous open host session tab" Style="{StaticResource ShortcutDescText}"/> </Grid> </Border> <!-- Section: Application & Exports --> <TextBlock Text="File & Application" Style="{StaticResource SectionHeader}"/> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="3" Padding="8,4"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="130"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Border Grid.Row="0" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Ctrl+S" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="0" Grid.Column="1" Text="Export current process snapshot to CSV format" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="1" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="F1" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="1" Grid.Column="1" Text="Open this Help, Keyboard Shortcuts & Reference modal" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="2" Grid.Column="0" Style="{StaticResource KeyBadge}"><TextBlock Text="Alt+F4" Style="{StaticResource KeyBadgeText}"/></Border> <TextBlock Grid.Row="2" Grid.Column="1" Text="Close and cleanly terminate PSRPM sessions and runspaces" Style="{StaticResource ShortcutDescText}"/> </Grid> </Border> </StackPanel> </ScrollViewer> </TabItem> <!-- TAB 2: ARCHITECTURE & SAFETY --> <TabItem Header="_Architecture & Safety" Padding="12,4"> <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10"> <StackPanel> <TextBlock Text="Core Architectural Pillars & Performance Budget" Style="{StaticResource SectionHeader}"/> <!-- Card 1: 100% Fileless Security --> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="4" Padding="10" Margin="0,0,0,8"> <StackPanel> <TextBlock Text="100% Fileless & EDR-Safe Security Posture" FontWeight="Bold" FontSize="13" Foreground="{DynamicResource BrushHelpSuccessFg}"/> <TextBlock Text="- Zero csc.exe compiler child processes and zero temporary .dll or .cs files written to %TEMP% on local or remote endpoints.
- Win32 / NTAPI P/Invoke signatures emitted directly into memory via in-memory .NET Reflection.Emit (AssemblyBuilderAccess.Run).
- ViewModels implemented as pure Windows PowerShell 5.1 AST classes (INotifyPropertyChanged)." Foreground="{DynamicResource BrushTextPrimary}" TextWrapping="Wrap" Margin="0,4,0,0" LineHeight="18"/> </StackPanel> </Border> <!-- Card 2: Ultra-Low Remote Target Overhead --> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="4" Padding="10" Margin="0,0,0,8"> <StackPanel> <TextBlock Text="Ultra-Low Target Impact (< 0.25% CPU, 2-10 ms Collection)" FontWeight="Bold" FontSize="13" Foreground="{DynamicResource BrushAccent}"/> <TextBlock Text="- Queries ntdll!NtQuerySystemInformation(5) and kernel32!GlobalMemoryStatusEx in a single kernel transition into persistent 512 KB unmanaged memory.
- Zero WmiPrvSE.exe CPU spikes, zero N+1 CIM GetOwner() roundtrips, and zero 5-second UI hangs from $p.Responding.
- Dead process tokens, CPU baselines, and state maps are synchronously evicted every tick to eliminate memory growth." Foreground="{DynamicResource BrushTextPrimary}" TextWrapping="Wrap" Margin="0,4,0,0" LineHeight="18"/> </StackPanel> </Border> <!-- Card 3: Differential Network Wire Protocol --> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="4" Padding="10" Margin="0,0,0,8"> <StackPanel> <TextBlock Text="Differential GZIP Wire Streaming (~1.1 - 1.8 KB/s)" FontWeight="Bold" FontSize="13" Foreground="{DynamicResource BrushHelpAmberFg}"/> <TextBlock Text="- Static metadata (Path, CommandLine, User, Description, Company, Architecture) transmitted only once per process upon spawn (keyed by PID + CreateTime).
- Subsequent ticks transmit only changed dynamic metrics ([PID, CPU, WorkingSet, PrivateBytes, Threads, Handles, Status]) compressed with in-memory GZIP.
- 80%+ network bandwidth reduction compared to standard WinRM CLIXML object serialization." Foreground="{DynamicResource BrushTextPrimary}" TextWrapping="Wrap" Margin="0,4,0,0" LineHeight="18"/> </StackPanel> </Border> <!-- Card 4: Zero-Leak Local Workstation Memory --> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="4" Padding="10" Margin="0,0,0,8"> <StackPanel> <TextBlock Text="Zero-Leak Memory Architecture & In-Place Reconciler" FontWeight="Bold" FontSize="13" Foreground="{DynamicResource BrushHelpVioletFg}"/> <TextBlock Text="- Telemetry sparkline and system information histories stored in strictly bounded Queue[double] circular ring buffers (240 samples = < 20 KB per session).
- Live UI DataGrids reconcile in-place via dirty-checked INotifyPropertyChanged. The collection is never cleared, ensuring scroll position, selected rows, and expanders remain solid.
- Inactive tabs in the Multi-Host session bar drop to 0 KB/s wire and 0% CPU in standby." Foreground="{DynamicResource BrushTextPrimary}" TextWrapping="Wrap" Margin="0,4,0,0" LineHeight="18"/> </StackPanel> </Border> <!-- Card 5: Safe Bulk Handle Enumeration --> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="4" Padding="10"> <StackPanel> <TextBlock Text="Kernel Named-Pipe Deadlock Prevention" FontWeight="Bold" FontSize="13" Foreground="{DynamicResource BrushKillFg}"/> <TextBlock Text="- When inspecting open kernel handles, File handles are pre-checked via kernel32!GetFileType and resolved safely with GetFinalPathNameByHandleW only for disk files (FILE_TYPE_DISK = 1).
- Synchronous named-pipe, socket, and character device handles are bypassed before NtQueryObject(ObjectNameInformation), eliminating kernel deadlocks on Chromium / msedgewebview2.exe Mojo IPC pipes." Foreground="{DynamicResource BrushTextPrimary}" TextWrapping="Wrap" Margin="0,4,0,0" LineHeight="18"/> </StackPanel> </Border> </StackPanel> </ScrollViewer> </TabItem> <!-- TAB 3: REMOTING & CONNECTIVITY --> <TabItem Header="_Connectivity" Padding="12,4"> <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10"> <StackPanel> <TextBlock Text="Remoting & Host Connectivity Guide" Style="{StaticResource SectionHeader}"/> <!-- Remote WinRM Guide --> <GroupBox Header="1. Remote Computer via WinRM (-ComputerName)" BorderBrush="{DynamicResource BrushBorderSubtle}" Padding="10" Margin="0,0,0,10"> <StackPanel> <TextBlock Text="PSRPM establishes a single persistent PowerShell PSSession over WinRM (TCP 5985 for HTTP or 5986 for HTTPS/SSL). No secondary RPC, DCOM, or SMB ports are opened." TextWrapping="Wrap"/> <TextBlock Text="Target Host Configuration Requirements:" FontWeight="SemiBold" Margin="0,6,0,2"/> <Border Background="{DynamicResource BrushToolbarBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" Padding="6" CornerRadius="3"> <TextBlock Text="# Enable PowerShell Remoting on the remote computer (run as Administrator):
Enable-PSRemoting -Force" FontFamily="Consolas" FontSize="11"/> </Border> <TextBlock Text="Workgroup or Non-Domain Endpoints:" FontWeight="SemiBold" Margin="0,6,0,2"/> <Border Background="{DynamicResource BrushToolbarBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" Padding="6" CornerRadius="3"> <TextBlock Text="# On your local workstation (elevated), add target IP to TrustedHosts:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value '10.20.30.40' -Concatenate -Force" FontFamily="Consolas" FontSize="11"/> </Border> </StackPanel> </GroupBox> <!-- Local Only Guide --> <GroupBox Header="2. Local Host Execution (Default Zero-Arg / -LocalOnly)" BorderBrush="{DynamicResource BrushBorderSubtle}" Padding="10" Margin="0,0,0,10"> <StackPanel> <TextBlock Text="Launching PSRPM without parameters runs locally by default in an unlocked background STA window with zero WinRM setup or Administrator privileges (pass -Wait to block the terminal, or -ComputerName for remote WinRM targets):" TextWrapping="Wrap"/> <Border Background="{DynamicResource BrushToolbarBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" Padding="6" CornerRadius="3" Margin="0,6,0,0"> <TextBlock Text="Start-PSRPM
# Block terminal or temporarily skip saved preferences:
psrpm -LocalOnly -Wait
psrpm -Defaults" FontFamily="Consolas" FontSize="11"/> </Border> </StackPanel> </GroupBox> <!-- Process Color Legend --> <GroupBox Header="3. Semantic Row Color Legend" BorderBrush="{DynamicResource BrushBorderSubtle}" Padding="10"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="130"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Border Grid.Row="0" Grid.Column="0" Background="{DynamicResource BrushSwatchSvcBg}" BorderBrush="{DynamicResource BrushSwatchSvcBorder}" BorderThickness="1" CornerRadius="2" Padding="6,1" Margin="0,2,8,2"><TextBlock Text="Services" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BrushSwatchSvcFg}"/></Border> <TextBlock Grid.Row="0" Grid.Column="1" Text="Processes hosting Windows background services (svchost.exe, services.exe)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="1" Grid.Column="0" Background="{DynamicResource BrushSwatchOwnBg}" BorderBrush="{DynamicResource BrushSwatchOwnBorder}" BorderThickness="1" CornerRadius="2" Padding="6,1" Margin="0,2,8,2"><TextBlock Text="Own / User" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BrushSwatchOwnFg}"/></Border> <TextBlock Grid.Row="1" Grid.Column="1" Text="Interactive processes running within the operator's logon session" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="2" Grid.Column="0" Background="{DynamicResource BrushSwatchPkgBg}" BorderBrush="{DynamicResource BrushSwatchPkgBorder}" BorderThickness="1" CornerRadius="2" Padding="6,1" Margin="0,2,8,2"><TextBlock Text="Packaged / WebView" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BrushSwatchPkgFg}"/></Border> <TextBlock Grid.Row="2" Grid.Column="1" Text="AppContainer, UWP, and Chromium msedgewebview2.exe child processes" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="3" Grid.Column="0" Background="{DynamicResource BrushSwatchSuspBg}" BorderBrush="{DynamicResource BrushSwatchSuspBorder}" BorderThickness="1" CornerRadius="2" Padding="6,1" Margin="0,2,8,2"><TextBlock Text="Suspended" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BrushSwatchSuspFg}"/></Border> <TextBlock Grid.Row="3" Grid.Column="1" Text="Processes whose threads are suspended (WaitReason == Suspended)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="4" Grid.Column="0" Background="{DynamicResource BrushSwatchNewBg}" BorderBrush="{DynamicResource BrushSwatchNewBorder}" BorderThickness="1" CornerRadius="2" Padding="6,1" Margin="0,2,8,2"><TextBlock Text="New (1 Tick)" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BrushSwatchNewFg}"/></Border> <TextBlock Grid.Row="4" Grid.Column="1" Text="Newly spawned process (flashes lime green for one refresh tick)" Style="{StaticResource ShortcutDescText}"/> <Border Grid.Row="5" Grid.Column="0" Background="{DynamicResource BrushSwatchExitBg}" BorderBrush="{DynamicResource BrushSwatchExitBorder}" BorderThickness="1" CornerRadius="2" Padding="6,1" Margin="0,2,8,2"><TextBlock Text="Exiting (1 Tick)" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BrushSwatchExitFg}"/></Border> <TextBlock Grid.Row="5" Grid.Column="1" Text="Terminated process before removal from tree (flashes crimson for one tick)" Style="{StaticResource ShortcutDescText}"/> </Grid> </GroupBox> </StackPanel> </ScrollViewer> </TabItem> <!-- TAB 4: ABOUT & SYSTEM --> <TabItem Header="_About" Padding="12,4"> <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10"> <StackPanel> <TextBlock Text="About PSRPM" Style="{StaticResource SectionHeader}"/> <!-- App Identity Card --> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="4" Padding="12" Margin="0,0,0,10"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="64"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <!-- App Vector Logo --> <Grid Grid.Column="0" Width="48" Height="48" HorizontalAlignment="Left" VerticalAlignment="Top"> <Path Data="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12C20,14.4 18.9,16.5 17.2,17.9L15.8,16.5C17.2,15.3 18,13.7 18,12A6,6 0 0,0 12,6A6,6 0 0,0 6,12C6,13.7 6.8,15.3 8.2,16.5L6.8,17.9C5.1,16.5 4,14.4 4,12A8,8 0 0,1 12,4M12,8A4,4 0 0,0 8,12C8,13.1 8.5,14.1 9.3,14.7L13.4,10.6C13.2,10.2 13,9.8 13,9.4A1.4,1.4 0 0,1 14.4,8C14.8,8 15.2,8.2 15.6,8.4L17,7C15.6,5.8 13.9,5 12,5V8Z" Fill="{DynamicResource BrushAccent}" Stretch="Uniform"/> </Grid> <StackPanel Grid.Column="1" VerticalAlignment="Center"> <StackPanel Orientation="Horizontal"> <TextBlock Text="PowerShell Remote Process Manager" FontWeight="Bold" FontSize="14" Foreground="{DynamicResource BrushTextPrimary}"/> <Border Background="{DynamicResource BrushToolbarBg}" BorderBrush="{DynamicResource BrushAccent}" BorderThickness="1" CornerRadius="2" Padding="4,1" Margin="8,0,0,0" VerticalAlignment="Center"> <TextBlock x:Name="TxtAboutVersion" Text="1.13.0" Foreground="{DynamicResource BrushAccent}" FontSize="11" FontWeight="Bold"/> </Border> </StackPanel> <TextBlock Text="100% Fileless Sysinternals Process Explorer over WinRM & Localhost" Foreground="{DynamicResource BrushTextSecondary}" FontSize="11" Margin="0,2,0,4"/> <TextBlock Text="Copyright (c) 2026 exh555. Licensed under the MIT License." Foreground="{DynamicResource BrushTextMuted}" FontSize="10.5"/> <TextBlock Text="Project & Documentation: https://github.com/exh555/psrpm" Foreground="{DynamicResource BrushAccent}" FontSize="10.5" Margin="0,2,0,0"/> </StackPanel> </Grid> </Border> <!-- Live Diagnostic Runtime Environment --> <TextBlock Text="Active Diagnostic Environment" Style="{StaticResource SectionHeader}"/> <Border Background="{DynamicResource BrushSurfaceBg}" BorderBrush="{DynamicResource BrushBorderSubtle}" BorderThickness="1" CornerRadius="4" Padding="12"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="140"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Grid.Column="0" Text="Local Workstation:" Style="{StaticResource InfoLabel}"/> <TextBlock Grid.Row="0" Grid.Column="1" x:Name="TxtAboutHost" Text="Loading..." Style="{StaticResource InfoValue}" FontWeight="SemiBold"/> <TextBlock Grid.Row="1" Grid.Column="0" Text="Operator Identity:" Style="{StaticResource InfoLabel}"/> <TextBlock Grid.Row="1" Grid.Column="1" x:Name="TxtAboutUser" Text="Loading..." Style="{StaticResource InfoValue}"/> <TextBlock Grid.Row="2" Grid.Column="0" Text="Current Target Session:" Style="{StaticResource InfoLabel}"/> <TextBlock Grid.Row="2" Grid.Column="1" x:Name="TxtAboutTarget" Text="Loading..." Style="{StaticResource InfoValue}" FontWeight="SemiBold"/> <TextBlock Grid.Row="3" Grid.Column="0" Text="Transport Protocol:" Style="{StaticResource InfoLabel}"/> <TextBlock Grid.Row="3" Grid.Column="1" x:Name="TxtAboutTransport" Text="Loading..." Style="{StaticResource InfoValue}"/> <TextBlock Grid.Row="4" Grid.Column="0" Text="PowerShell Version:" Style="{StaticResource InfoLabel}"/> <TextBlock Grid.Row="4" Grid.Column="1" x:Name="TxtAboutPsVersion" Text="Loading..." Style="{StaticResource InfoValue}"/> <TextBlock Grid.Row="5" Grid.Column="0" Text="CLR / .NET Runtime:" Style="{StaticResource InfoLabel}"/> <TextBlock Grid.Row="5" Grid.Column="1" x:Name="TxtAboutClrVersion" Text="Loading..." Style="{StaticResource InfoValue}"/> <TextBlock Grid.Row="6" Grid.Column="0" Text="Process Bitness / Arch:" Style="{StaticResource InfoLabel}"/> <TextBlock Grid.Row="6" Grid.Column="1" x:Name="TxtAboutArch" Text="Loading..." Style="{StaticResource InfoValue}"/> </Grid> </Border> </StackPanel> </ScrollViewer> </TabItem> </TabControl> <!-- Bottom Action Bar with Close Button --> <Border Grid.Row="2" Padding="0,10,0,0"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <Button x:Name="BtnHelpClose" Content="Close" Width="90" Height="28" IsCancel="True" FontWeight="SemiBold" Cursor="Hand" AutomationProperties.Name="Close Help Window"/> </StackPanel> </Border> </Grid> </Window> |