XMRig CryptoMining Manager is a lightweight Windows console application written in C that automatically launches, monitors, and manages an XMRig mining process. It uses the Windows API and WinHTTP to interact with XMRig’s built-in HTTP API, detect crashes, and gracefully handle shutdowns.
About this project
🪙 XMRig CryptoMining Manager XMRig CryptoMining Manager is a lightweight Windows console application written in C that automatically launches, monitors, and manages an XMRig mining process. It uses the Windows API and WinHTTP to interact with XMRig’s built-in HTTP API, detect crashes, and gracefully handle shutdowns. ⚙️ Features ✅ Automatic XMRig launch Starts the XMRig miner with specified arguments using the Windows API (CreateProcessW). ✅ Crash detection & auto-restart Monitors the miner process using GetExitCodeProcess() and automatically restarts it if it crashes. ✅ API polling Connects to XMRig’s HTTP API (/1/summary) using WinHTTP to fetch live status updates (hashrate, uptime, etc.). ✅ Graceful shutdown Handles Ctrl+C or console close events (CTRLCEVENT, CTRLCLOSEEVENT) and stops XMRig safely. ✅ Simple configuration All miner settings (path, API host/port, polling interval) are defined as constants at the top of the code for easy modification. 🧩 Technical Overview Component Description -------------------- ------------------------------------------------------------------- Language C (WinAPI) Libraries windows.h, winhttp.h, signal.h
From the project README on
GitHub
- Stars
- 10
- Forks
- 1
- License
- MIT
- Last push
- 19 Oct 2025
Add this badge to your README
Show that your project is listed on Made in Algeria.
[](https://www.madeinalgeria.dev/projects/xmrig-cryptomining-manager)