{"id":15295081,"url":"https://github.com/h4rldev/check_elevation","last_synced_at":"2025-07-26T17:31:55.454Z","repository":{"id":199098087,"uuid":"702146585","full_name":"h4rldev/check_elevation","owner":"h4rldev","description":"Check elevation status directly.","archived":false,"fork":false,"pushed_at":"2023-10-11T09:36:52.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-19T01:08:30.516Z","etag":null,"topics":["admin","elevation","rust","rust-lang","uac","winapi","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h4rldev.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":"2023-10-08T16:23:57.000Z","updated_at":"2024-11-17T05:20:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ac41aa8-1aab-4fa2-9209-f79235caffb1","html_url":"https://github.com/h4rldev/check_elevation","commit_stats":null,"previous_names":["h4rldev/check_elevation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4rldev%2Fcheck_elevation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4rldev%2Fcheck_elevation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4rldev%2Fcheck_elevation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4rldev%2Fcheck_elevation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h4rldev","download_url":"https://codeload.github.com/h4rldev/check_elevation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227700442,"owners_count":17806365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","elevation","rust","rust-lang","uac","winapi","windows"],"created_at":"2024-09-30T17:08:32.984Z","updated_at":"2024-12-02T09:15:25.634Z","avatar_url":"https://github.com/h4rldev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check_elevation\n\n[![license](https://img.shields.io/github/license/h4rldev/check_elevation?style=flat-square)](https://crates.io/crates/check_elevation)\n[![version](https://img.shields.io/crates/v/check_elevation?style=flat-square)](https://crates.io/crates/check_elevation)\n\nA tool to check the elevation status through a simple function.\n\nSuccessor to [is_elevated](https://crates.io/crates/is_elevated).\n\n#### Example\n\n```rust\nuse check_elevation::is_elevated;\n\n\nfn main() {\n    if is_elevated().expect(\"Failed to get elevation status.\") {\n        println!(\"Running as administrator.\");\n    } else {\n        println!(\"Not running as administrator.\");\n    }\n}\n```\n\n#### Dependencies\n\n- [windows](https://crates.io/crates/windows)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4rldev%2Fcheck_elevation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh4rldev%2Fcheck_elevation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4rldev%2Fcheck_elevation/lists"}