Skip to content

About

A tiny, native C++20 network monitor for Windows that shows live upload/download speeds in a clean UI, system tray, and draggable taskbar widget. Lightweight, portable, dependency-free, and built for Windows 11.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

54 Commits

Folders and files

Repository files navigation

WinNetMeter

CI Latest release License

WinNetMeter is a lightweight Windows 10 and 11 utility for x64 and ARM64 PCs that shows real-time upload and download speed in the notification area and in a transparent meter on the taskbar. It is a native C++20 Win32 application with no installer, runtime framework, telemetry, updater, cloud service, or administrator/service requirement.

Features

  • Live upload/download speed, session totals, and resettable persisted totals.
  • Automatic adapter selection that follows whichever interface carries the default route (switching between Wi-Fi, Ethernet and VPN as you do), or a fixed adapter that is remembered across restarts and reconnects.
  • Speeds in bytes (KB/s, MB/s, binary) or bits (Kbps, Mbps, decimal), with a minimum unit and 0 to 2 decimal places.
  • A transparent, non-activating taskbar meter placed next to the tray, after the app buttons or at the left edge, plus an offset from there. On a taskbar at the left or right of the screen it stacks each speed's value over its unit to fit.
  • The meter is embedded in the taskbar, so it stays visible while Start or Search is open; a separate always-on-top overlay is still available (see Known limitations).
  • Optional meters on every taskbar when the taskbar is shown on several monitors.
  • Colors that follow the light or dark taskbar automatically, or fixed colors of your choice; configurable prefixes and font, all updated live.
  • A tray icon drawn at the size Windows uses for the taskbar's DPI.
  • Hides for genuine fullscreen applications, following the shell's own fullscreen state, and follows an auto-hiding taskbar.
  • Per-monitor DPI awareness, single-instance operation, recovery after Explorer restarts, optional start with Windows for the current user.
  • One statically linked native executable, x64 or ARM64; no .NET, Electron, Qt, WinUI, WebView, or third-party runtime. The meter is only redrawn when something it shows changes.

Installation

  1. Download WinNetMeter-v<version>-windows-x64.zip or the standalone WinNetMeter.exe from GitHub Releases; on Windows on Arm, take WinNetMeter-v<version>-windows-arm64.zip or WinNetMeter-arm64.exe. Each file has a .sha256 checksum next to it.
  2. Extract the ZIP if needed, then run WinNetMeter.exe.
  3. Keep the executable anywhere you prefer; WinNetMeter does not require installation or administrator rights.

Requires Windows 10 version 1607 or later, on x64 or ARM64; it is developed and tested on Windows 11 (Windows 10 has not been tested since 0.2.0). Release binaries are currently unsigned, so Windows SmartScreen may show a warning the first time an unfamiliar build is run. The .sha256 files detect a damaged download; because they are published next to the files, they do not prove who built them.

Usage and settings

WinNetMeter starts in the notification area. Double-click the tray icon or the taskbar meter to open its status and settings window; the meter's whole box takes the click, so keep it over an empty part of the taskbar. Starting WinNetMeter again while it runs opens the same window. Right-click the tray icon for the window, taskbar-meter visibility, and Exit.

The status panel shows the speeds, totals for the current session, and saved totals accumulated since the displayed date (up to terabytes). Totals are saved every minute while traffic flows, and when Windows shuts down or you sign out. Reset total clears the saved counters and stamps them with today's date. The adapter list starts with Automatic (adapter in use); choosing a specific adapter keeps WinNetMeter on it, and it is found again after the adapter is reconnected or renamed.

Settings provide:

  • Upload and download prefixes (empty is allowed), colors with an Automatic option that follows the taskbar theme, and the meter font.
  • Show speed in bytes or bits, the minimum speed unit, and decimal places.
  • Meter position: next to the tray, after the app buttons, at the left edge, or Classic (the fixed point used before 0.2.0, kept for upgraded settings), and an offset from there in logical pixels (-4096 to 4096), clamped to the taskbar. With a right-to-left display language the taskbar is mirrored and so are these positions (left edge is then the start of the taskbar, at the right); the offset still counts left to right.
  • Reset meter restores the default prefixes, colors, font, speed format and position. It does not clear totals or change the check boxes below.
  • Show taskbar meter and Show tray icon. At least one stays enabled so the window remains reachable.
  • Start with Windows for the current user, through the standard HKCU\Software\Microsoft\Windows\CurrentVersion\Run entry.
  • Show on all taskbars: a meter on each monitor's taskbar.
  • Embed in taskbar (stays visible over Start): on by default; see below.

Show taskbar meter, Show tray icon, Start with Windows, Show on all taskbars and Embed in taskbar take effect with Apply; the other settings apply as you change them. Settings are stored in:

%APPDATA%\WinNetMeter\settings.ini

If that file exists but cannot be read when WinNetMeter starts (another program holds it open), WinNetMeter runs on default settings, says so when its window is opened, and does not save over the file until it is restarted, so the saved totals are not lost.

Settings files from earlier releases keep working: an upgraded meter keeps its exact position (shown as Classic), and the old default white colors become Automatic.

Known limitations

Start and Search. When Start or Search opens, Windows moves the taskbar into a higher z-order band than any application window can use, including always-on-top ones. That is why the meter is embedded in the taskbar by default: as a child window of the taskbar it moves, hides and stays visible with it, including over Start and Search. No code is injected into Explorer, but the meter does live inside Explorer's taskbar window, so a taskbar customization tool or a future Windows update could hide or misplace it. Unticking Embed in taskbar then switches to a separate always-on-top overlay, which Start and Search cover while they are open (measured on Windows 11: none of its pixels visible; back within about 150 ms after Start closes). WinNetMeter also falls back to that overlay by itself when the meter cannot be embedded at all.

Several monitors. Meters on secondary taskbars are covered by automated tests that simulate a second taskbar, but have not been tested on real multi-monitor hardware. Windows 11 secondary taskbars expose no window for their clock, so "next to the tray" keeps the same distance from the end of the taskbar as on the main one.

Fullscreen applications hide the meter on purpose until fullscreen ends. WinNetMeter relies on public Win32 APIs and the taskbar's long-standing window class names (to find the taskbar, its tray and its app buttons); it does not use UIAccess, code injection or undocumented shell interfaces.

Building from source

Requirements:

  • Windows 10 or 11, x64 or ARM64.
  • Visual Studio 2022 or later (or its Build Tools) with the MSVC C++ tools for your architecture (x64, or ARM64 on Windows on Arm).
  • A Windows SDK containing the resource compiler and Win32 headers/libraries.

From the repository root:

cd src
.\build.bat

This builds for the machine you are on; .\build.bat arm64 cross-compiles for Windows on Arm from an x64 machine that has the MSVC ARM64 build tools. The build script locates an installed MSVC toolchain and compiles with C++20, /W4, /WX, /permissive-, /MT, and /O2, with Control Flow Guard, CET shadow-stack compatibility (x64) and system DLLs loaded from System32 only (/DEPENDENTLOADFLAG:0x800). The output is:

src\out\WinNetMeter.exe

Run the native unit suite with:

cd src\tests
.\run_tests.bat

Behavioral checks run against the built executable with pwsh src\tests\windows_integration_tests.ps1 -Check <Name>; the check names are listed at the top of that script. They use their own settings file and startup entry, so they never touch a real installation, but they drive the real desktop: they take the foreground, create fullscreen windows and open Start.

CI builds the executable for every push to main and every pull request, natively for x64 and for ARM64 (on GitHub's Windows on Arm runners), runs the unit suite, verifies the PE metadata, manifest, architecture, static runtime and imports, and runs every behavioral check on both. A release tag first runs that whole CI workflow, then rebuilds for both architectures, refuses a tag that does not match src/version.h, and publishes the ZIPs, the executables and their SHA-256 checksums; only the publishing job can write to the repository. Dependabot keeps the GitHub Actions up to date.

Technical notes and privacy

WinNetMeter uses raw Win32/GDI, layered windows for the transparent meter, Windows IP Helper APIs for 64-bit interface counters, and QueryPerformanceCounter for monotonic sampling. The taskbar meter runs on its own thread, so a busy Explorer cannot stall the settings window and the reverse. Automatic adapter selection asks the local routing table which interface would reach a public address; no packet is sent. Measurements stay local: WinNetMeter does not capture packets, transmit traffic data, or use telemetry or a cloud service.

The executable links the C/C++ runtime statically with /MT; only standard Windows system DLLs are required.

Credits

WinNetMeter is an independent native C++20 rewrite inspired by NetworkMonitorLite by mcagriaksoy. It is not affiliated with or endorsed by the original project or author.

License

Licensed under the Apache License, Version 2.0.

About

A tiny, native C++20 network monitor for Windows that shows live upload/download speeds in a clean UI, system tray, and draggable taskbar widget. Lightweight, portable, dependency-free, and built for Windows 11.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages