Technology
How CPS is built
CPS is mainly written in C# on .NET 8 with WinForms and talks to Windows through COM, Win32, WMI/CIM, the shell and UEFI interfaces. This page explains the parts that are not visible in a screenshot.
Host, extend, build
-
A · Host
Run existing Windows technology inside CPS
CPS implements its own infrastructure to operate Windows management components directly in its interface. Snap-ins, Control Panel items and other components keep their original logic. The screenshot shows Server Manager in a CPS tab.
-
B · Extend
Add functions to existing components
Where Windows or third parties provide management functions, CPS adds information, views, context actions and diagnostic paths around them. The original component stays responsible for its actual task.
-
C · Build
Develop tools of its own
Where Windows has no suitable function, the interface cannot be embedded or the diagnostics are too limited, CPS has its own modules: USB topology, Bluetooth, network topology, boot editor, firmware setup.
CPS.MMC: the console, not a copy of it
The problem
Many Windows management tools are MMC snap-ins: Services, Users and Groups, Device Manager, Disk Management, Computer Management and numerous server and RSAT consoles. They need a host, and the only host Windows provides is mmc.exe. There is no public interface to embed its console engine in another application.
The approach
CPS takes the role of the console itself. The console side of the MMC snap-in protocol has been implemented independently in C# and COM interop, based on the real interfaces, GUIDs and data structures from the Windows SDK. Registered snap-ins are loaded through their intended COM interfaces and run in CPS navigation trees, result views, toolbars, context menus and property sheets. This is not a visual copy of an MMC window and not a hidden call to mmc.exe.
What it does
- Console host without dependency on mmc.exe
- Real Windows and third-party snap-ins as registered on the system
- Snap-ins, scope trees, result lists, context menus, actions and properties
- Classic COM snap-ins and various MMC 3.0 snap-ins with their views
- Loading and saving .msc files, aiming at compatibility with the Microsoft console
- Native special views, including ActiveX/OCX-based interfaces in a dedicated container
- Chromium Embedded Framework (CEF) instead of the outdated MSHTML engine
Extending original snap-ins
Because CPS is the console, it can add to snap-ins without modifying them.
Additional property pages
CPS can add tabs to the property dialogs of existing snap-ins. Implemented example: an extended details page in Services.
PowerShell actions
Actions defined per snap-in are offered according to snap-in, node type and selected object; the selection is passed as structured context. Administrators can build their own workflows on top of Microsoft consoles.
Controlled execution
Extensions are installed manually, loaded from protected directories and checked for integrity. Actions run only when the user starts them, in the current Windows security context.
Consistent appearance
Menus, trees, tables, toolbars and selected dialogs follow the CPS theme. Custom-drawn third-party views, WPF content and some native controls keep their original look.
Protective measures
The new console infrastructure takes known risks of older management formats into account: a restricted set of allowed address schemes for embedded web views, controlled handling of scriptable console content, checks of extension files, cancellation and timeout mechanisms, and deliberate management of resources and object lifetimes.
Limits: Snap-ins partly still run in the same process. This is not a security sandbox: a severe native fault in a snap-in can affect the application. Not every existing MMC extension is fully compatible yet.
Decades-old Windows technology meets .NET 8
Some of the management code CPS hosts goes back to the 1990s. Older MFC-based snap-ins, for example, expect runtime conditions of the original MMC; in a modern .NET application these assumptions can lead to serious runtime errors. For concrete, investigated cases CPS has its own compatibility mechanisms so that these components remain usable.
- COM object lifetimes and correct release of resources
- Initialisation of ActiveX views
- Thread affinity and dialogs
- Old .NET Framework dependencies
This work goes well beyond normal GUI programming: analysing runtime behaviour, native Windows diagnostics and targeted compatibility work. CPS brings historically grown Windows management technology into a modern application and adds specific protective and compatibility measures. It does not replace the original Windows code, and it does not close every old weakness of every snap-in.
Modules that work together
The modules are not isolated programs. Shared infrastructure for module registration, navigation, themes, diagnostic findings, device identities and object relationships lets a finding point to the affected system object and open the matching view in another module.
Not every conceivable diagnostic path exists yet. The goal is a continuous workflow instead of a collection of independent tools.
- A network problem leads to the affected adapter
- A device finding leads to the USB or Windows device view
- A storage problem leads to the detailed storage analysis
- A finding gets a matching next action where possible
One owner per function
A function should have exactly one responsible component. This avoids duplicate implementations and keeps the suite maintainable as it grows.
- CPS.Storage
- Drive health. Partitioning stays with Windows and MMC.
- CPS.Boot
- Windows and UEFI boot manager entries.
- CPS.Firmware
- Device-specific firmware configuration.
- CPS.Windows
- Autostart entries. CPS.MSInfo only displays them.
- CPS.Admin
- Diagnostics. Specialised modules carry out the actual actions.
Foundation
- CPS.Main
- Main application, navigation, module integration, interface
- Contracts
- Module, view, theme, navigation, diagnostic and object contracts
- CPS.Hardware
- Shared hardware identities and collection functions
- CPS.Theming · CPS.UI.WinForms
- Shared rendering and UI building blocks
Extensibility
Many tools exist as separate projects and can be developed or run on their own; in the suite they are integrated directly. Module contracts and defined extension directories allow customer-specific modules and different product editions.
The module interface is not a security sandbox, and it is not yet a stable public plugin ABI. Extension modules are treated as trusted code.
Security and working method
CPS touches sensitive parts of the system: boot configuration, firmware, BitLocker, updates, services. That is why these principles apply.
No blanket elevation
CPS does not need to run as administrator all the time. Functions that require elevated rights request them specifically or make the limitation visible.
Traceability before automation
Where possible, technical causes and concrete evidence are shown. Not every warning is a confirmed error, and a check that could not run is reported as such.
Controlled writes
Critical changes require suitable preconditions, explicit user actions and additional checks.
Backups and recoverability
The boot editor shows a change overview and creates a backup before writing.
No invented hardware data
If Windows, a device or a manufacturer does not reliably provide a piece of information, it is not guessed.
Deliberate limits
If safe access cannot be demonstrated, a function is better not offered than claimed as a risky universal intervention.
Local control
CPS is a native desktop application. Commercial licences are signed files checked locally, without a licence server. Updates, network analysis and software installation naturally need network access.
CPS does not make Windows secure. It supports specific administrative tasks with additional checks, controlled interventions and traceable diagnostics.