mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #242] [MERGED] Core: ProcessHasAdminRights() function is added to utility functions. #262
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#262
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/242
Author: @ismail-yilmaz
Created: 3/17/2025
Status: ✅ Merged
Merged: 4/18/2025
Merged by: @mirek-fidler
Base:
master← Head:detect_root📝 Commits (5)
72d2d22Core: ProcessHasAdminRights() function is added to utility functions.4ad0a81reference/DetectPrivegedProcess: Cosmetics.989525eCore: ProcessHasAdminRights() renamed as IsAdmin()4f75e49Merge branch 'ultimatepp:master' into detect_root640164eCore: IsAdmin() renamed as IsUserAdmin().📊 Changes
5 files changed (+54 additions, -0 deletions)
View changed files
➕
reference/DetectPrivilegedProcess/DetectPrivilegedProcess.upp(+11 -0)➕
reference/DetectPrivilegedProcess/main.cpp(+12 -0)📝
uppsrc/Core/App.cpp(+24 -0)📝
uppsrc/Core/App.h(+2 -0)📝
uppsrc/Core/src.tpp/AppEnv_en-us.tpp(+5 -0)📄 Description
Sometimes it is very useful to know if the current process/app is running in administrator/root mode. In this way, developers can enable or disable certain set of features or warn the user about the security risk posed by escalated privileges.
This PR,
ProcessHasAdminRights()function to U++, which can check if the current process is running in admin (Win) or root (POSIX) mode.Tested on Linux, Win 10/11.
Please review.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.