OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 104 matching lines...) Loading... |
115 | 115 |
116 // Determine the current integrity level of the process. | 116 // Determine the current integrity level of the process. |
117 bool GetCurrentProcessIntegrityLevel(int* level); | 117 bool GetCurrentProcessIntegrityLevel(int* level); |
118 | 118 |
119 inline bool IsCurrentProcessLowIntegrity() { | 119 inline bool IsCurrentProcessLowIntegrity() { |
120 int level; | 120 int level; |
121 return (GetCurrentProcessIntegrityLevel(&level) && | 121 return (GetCurrentProcessIntegrityLevel(&level) && |
122 level < SECURITY_MANDATORY_MEDIUM_RID); | 122 level < SECURITY_MANDATORY_MEDIUM_RID); |
123 } | 123 } |
124 | 124 |
125 bool AdjustCurrentProcessPrivilege(const TCHAR* privilege, bool to_enable); | |
126 | |
127 } // namespace rtc | 125 } // namespace rtc |
128 | 126 |
129 #endif // WEBRTC_WIN | 127 #endif // WEBRTC_WIN |
130 #endif // WEBRTC_BASE_WIN32_H_ | 128 #endif // WEBRTC_BASE_WIN32_H_ |
OLD | NEW |