process_info.h 846 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_PROCESS_PROCESS_INFO_H_
  5. #define BASE_PROCESS_PROCESS_INFO_H_
  6. #include "base/base_export.h"
  7. #include "build/build_config.h"
  8. namespace base {
  9. #if defined(OS_WIN)
  10. enum IntegrityLevel {
  11. INTEGRITY_UNKNOWN,
  12. UNTRUSTED_INTEGRITY,
  13. LOW_INTEGRITY,
  14. MEDIUM_INTEGRITY,
  15. HIGH_INTEGRITY,
  16. };
  17. // Returns the integrity level of the process. Returns INTEGRITY_UNKNOWN in the
  18. // case of an underlying system failure.
  19. BASE_EXPORT IntegrityLevel GetCurrentProcessIntegrityLevel();
  20. // Determines whether the current process is elevated.
  21. BASE_EXPORT bool IsCurrentProcessElevated();
  22. #endif // defined(OS_WIN)
  23. } // namespace base
  24. #endif // BASE_PROCESS_PROCESS_INFO_H_