ZeroSystem (ZeroSystem.Core) is the sovereign Windows Native, Kernel P/Invoke, DWM Desktop, and OS Internals Subsystem of the ZeroPlatform / Zero Universe ecosystem. It provides type-safe, resource-managed wrappers around low-level Win32, NTDLL, and Kernel APIs with zero external dependencies (100% pure C# BCL).
| Component | Description |
|---|---|
NativeMethods |
Centralized, hardened Win32 P/Invoke declarations for Kernel32, User32, Advapi32, Ntdll, Shell32, and DwmApi. |
DosDeviceManager |
High-level MS-DOS device mapping (DefineDosDevice). Mounts VSS Shadow Copies (\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy{N}) to unused drive letters (Z:) and cleanly unmounts them. |
ProcessGuard |
System privileges escalation (SeBackupPrivilege, SeRestorePrivilege, SeProfileSingleProcessPrivilege), safe PID detection, and foreground window querying. |
MemoryKernel |
Deep RAM optimization via undocumented NtSetSystemInformation (PurgeStandbyList = 4, SystemMemoryList = 80) and process working set trimming. |
UnsafeFileStreamFactory |
Opens permissive non-locking file streams (FileShare.ReadWrite | FileShare.Delete) to inspect locked files without sharing violations. |
DesktopWallpaperInjector |
Interacts with Progman and DWM (0x052C) to spawn the behind-icon WorkerW canvas for Live Wallpapers and HUD overlays. |
PowerAndDisplayWatcher |
Real-time monitoring of AC/Battery power state and detection of active full-screen applications. |
ShellRegistryHelper |
Registers Windows Explorer context menu actions directly into HKCU\Software\Classes without requiring Administrator privileges. |
dotnet add package ZeroSystem.Coreusing ZeroSystem;
if (DosDeviceManager.TryMountDevice(@"\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1", out char driveLetter, out string err))
{
Console.WriteLine($"VSS mounted at {driveLetter}:");
// Access historical files via $"{driveLetter}:\\..."
DosDeviceManager.TryUnmountDevice(driveLetter, null, out _);
}using ZeroSystem;
if (ProcessGuard.EnablePrivilege(ProcessGuard.SeProfileSingleProcessPrivilege))
{
bool success = MemoryKernel.PurgeStandbyList();
Console.WriteLine($"Standby List Purged: {success}");
}Released under the permissive MIT License.
Architected and developed by Phong Võ (kzxl).