| 6 | #define BASE_PROCESS_PROCESS_INFO_H_ |
| 7 |
| 8 | #include "base/base_export.h" |
| 9 | #include "build/build_config.h" |
| 10 |
| 11 | namespace base { |
| 12 |
| 13 | #if defined(OS_WIN) |
| 14 | enum IntegrityLevel { |
| 15 | INTEGRITY_UNKNOWN, |
| 16 | UNTRUSTED_INTEGRITY, |
| 17 | LOW_INTEGRITY, |
| 18 | MEDIUM_INTEGRITY, |
| 19 | HIGH_INTEGRITY, |
| 20 | }; |
| 21 |
| 22 | // Returns the integrity level of the process. Returns INTEGRITY_UNKNOWN in the |
| 23 | // case of an underlying system failure. |
| 24 | BASE_EXPORT IntegrityLevel GetCurrentProcessIntegrityLevel(); |
| 25 |
| 26 | // Determines whether the current process is elevated. |
| 27 | BASE_EXPORT bool IsCurrentProcessElevated(); |
| 28 |
| 29 | #endif // defined(OS_WIN) |
| 30 |
| 31 | } // namespace base |
| 32 |
| 33 | #endif // BASE_PROCESS_PROCESS_INFO_H_ |
| 34 |