{"id":19483074,"url":"https://github.com/chapvic/is_reboot_needed","last_synced_at":"2026-04-19T03:02:29.159Z","repository":{"id":177568447,"uuid":"305739158","full_name":"chapvic/is_reboot_needed","owner":"chapvic","description":"Checks if you need to restart Windows","archived":false,"fork":false,"pushed_at":"2021-01-15T19:58:40.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T11:43:21.549Z","etag":null,"topics":["admin-tool","console-tool","reboot","reboot-needed","rebooting","rename-pending","win32","win64","windows","windows-10"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chapvic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-20T14:42:51.000Z","updated_at":"2021-01-15T19:58:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a1d376e-79fd-4fcf-9cd5-74bf4fc37da5","html_url":"https://github.com/chapvic/is_reboot_needed","commit_stats":null,"previous_names":["chapvic/is_reboot_needed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chapvic/is_reboot_needed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapvic%2Fis_reboot_needed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapvic%2Fis_reboot_needed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapvic%2Fis_reboot_needed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapvic%2Fis_reboot_needed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chapvic","download_url":"https://codeload.github.com/chapvic/is_reboot_needed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapvic%2Fis_reboot_needed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31992822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin-tool","console-tool","reboot","reboot-needed","rebooting","rename-pending","win32","win64","windows","windows-10"],"created_at":"2024-11-10T20:13:25.079Z","updated_at":"2026-04-19T03:02:29.136Z","avatar_url":"https://github.com/chapvic.png","language":"C","readme":"# Checks if you need to restart Windows\n\nVersion: 0.3.0\n\nThis utility returns a set of reboot event codes:\n- Rename pending (1)\n- Reboot pending (2)\n- Reboot required (4)\n- Notification is active (8)\n\nStatus codes of these events are defined in `is_reboot_needed.h`:\n\n```C\n#define REBOOT_STATUS_CLEAN                0UL\n#define REBOOT_STATUS_RENAME_PENDING       1UL\n#define REBOOT_STATUS_REBOOT_PENDING       2UL\n#define REBOOT_STATUS_REBOOT_REQUIRED      4UL\n#define REBOOT_STATUS_NOTIFICATION_ACTIVE  8UL  /* a reboot notification is active (Windows 10) */\n```\n\nWhen system is not reboot needed this utility returns `REBOOT_STATUS_CLEAN` (zero value).\n\nSet of these flags returns through the passed pointer to an `int` variable as the parameter of the `is_reboot_needed` function, that returns `boolean` value as a result if reboot is required.\n\n### Usage\n\n```\nis_reboot_needed [options]\n\n    -a      Combination of '-s', '-d' and '-f' options.\n    -s      Show status information. This is default option.\n    -d      List driver updates, if present.\n    -f      List update pending files.\n    -n      Suppress logo.\n    -q      Suppress all messages.\n    -r      Automatic reboot if needed with no messages.\n    -i      Start reboot if notification is active only (Windows 10).\n            (used with '-r' option)\n```\n\nWarning: If you're use `-r` option and `is reboot needed` is `TRUE`, then system will be restarted immediately.\nOption `-i` allow reboot only if process `MusNotifyIcon.exe` is active (works for Windows 10)\n\n```\nNote: Since version 0.3.0 a special warning will be displayed when a reboot notification detected.\n      The \"REBOOT_STATUS_NOTIFICATION_ACTIVE\" (8) flag has been added for the return code.\n```\n                                                       \n### Compile with GCC\n```\ngcc -O2 -Wall -s -static -ladvapi32 -o is_reboot_needed.exe is_reboot_needed.c main.c\n```\n\n### Compile with MSVC\n```\ncl /MT /O2 /W3 is_reboot_needed.c main.c\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapvic%2Fis_reboot_needed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchapvic%2Fis_reboot_needed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapvic%2Fis_reboot_needed/lists"}