WIP - [Mouse Without Borders] - refactoring "Common" classes (Part 4) - #35155 #37579
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
Part 4 of a slow-running refactor of the giant "Common" class in Mouse Without Borders into individual classes with tighter private scope.
Common.Event.cs
->Event.cs
Common.Helper.cs
->Helper.cs
Common.Launch.cs
->Launch.cs
Common.Service.cs
->Service.cs
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed
Run manual tests from Test Checklist Template:
Install PowerToys on two PCs in the same local network:
Setup Connection:
Verify Connection Status:
Test Remote Mouse/Keyboard Control:
Test Remote Control with Elevated Apps:
get-process -Name "PowerToys.MouseWithoutBorders*" -IncludeUserName | format-table Id, ProcessName, UserName
PowerToys.MouseWithoutBorders.exe
- running asSYSTEM
PowerToys.MouseWithoutBorders.Helper.exe
- running as current userget-service -Name "PowerToys.*" | ft Status, Name, UserName; get-ciminstance -Class "Win32_Service" -Filter "Name like 'PowerToys%'" | ft ProcessId, Name
PowerToys.MWB.Service
- running asLocal System
Test Module Enable Status:
Test Disconnection/Reconnection:
Test Various Local Network Conditions:
Clipboard Sharing:
Drag and Drop:
Lock and Unlock with "Use Service" Enabled:
Test Settings:
Group Policy Tests
See https://learn.microsoft.com/en-us/windows/powertoys/grouppolicy
[missing]
- "Activation -> Enable Mouse Without Borders" enabled, with GPO warning hidden0
- "Activation -> Enable Mouse Without Borders" set to "off" and disabled, with GPO warning visible1
- "Activation -> Enable Mouse Without Borders" set to "on" and disabled, with GPO warning visible[missing]
- "Advanced Settings -> IP address mapping" enabled, with GPO warning hidden0
- "Advanced Settings -> IP address mapping" enabled, with GPO warning hidden1
- "Advanced Settings -> IP address mapping" disabled, with GPO warning visible[missing]
- "Advanced Settings -> IP address mapping" enabled, with GPO warning and GPO values hidden[empty value]
- "Advanced Settings -> IP address mapping" enabled, with GPO warning hidden and GPO values hidden[non-empty value]
- "Advanced Settings -> IP address mapping" enabled, with GPO warning visible and GPO values visible