Upstream version 11.40.277.0
[platform/framework/web/crosswalk.git] / src / rlz / win / lib / process_info.h
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 //
5 // Information about the current process.
6
7 #ifndef RLZ_WIN_LIB_PROCESS_INFO_H_
8 #define RLZ_WIN_LIB_PROCESS_INFO_H_
9
10 #include "base/basictypes.h"
11
12 namespace rlz_lib {
13
14 class ProcessInfo {
15  public:
16   // All these functions cache the result after first run.
17   static bool IsRunningAsSystem();
18   static bool HasAdminRights();  // System / Admin / High Elevation on Vista
19
20  private:
21   DISALLOW_COPY_AND_ASSIGN(ProcessInfo);
22 };  // class
23 };  // namespace
24
25 #endif  // RLZ_WIN_LIB_PROCESS_INFO_H_