Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ | 5 #ifndef SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ |
| 6 #define SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ | 6 #define SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ |
| 7 | 7 |
| 8 #include <accctrl.h> | 8 #include <accctrl.h> |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 // Sets the integrity level on a token. This is only valid on Vista. It returns | 71 // Sets the integrity level on a token. This is only valid on Vista. It returns |
| 72 // without failing on XP. If the integrity level that you specify is greater | 72 // without failing on XP. If the integrity level that you specify is greater |
| 73 // than the current integrity level, the function will fail. | 73 // than the current integrity level, the function will fail. |
| 74 DWORD SetTokenIntegrityLevel(HANDLE token, IntegrityLevel integrity_level); | 74 DWORD SetTokenIntegrityLevel(HANDLE token, IntegrityLevel integrity_level); |
| 75 | 75 |
| 76 // Sets the integrity level on the current process on Vista. It returns without | 76 // Sets the integrity level on the current process on Vista. It returns without |
| 77 // failing on XP. If the integrity level that you specify is greater than the | 77 // failing on XP. If the integrity level that you specify is greater than the |
| 78 // current integrity level, the function will fail. | 78 // current integrity level, the function will fail. |
| 79 DWORD SetProcessIntegrityLevel(IntegrityLevel integrity_level); | 79 DWORD SetProcessIntegrityLevel(IntegrityLevel integrity_level); |
| 80 | 80 |
| 81 // Returns the integrity level SDDL string associated with a given | |
| 82 // IntegrityLevel value. | |
| 83 const wchar_t* GetIntegrityLevelString(IntegrityLevel integrity_level); | |
|
rvargas (doing something else)
2014/06/13 19:46:11
nit: this should go at line 76
jschuh
2014/06/13 22:29:36
Done.
| |
| 84 | |
| 81 } // namespace sandbox | 85 } // namespace sandbox |
| 82 | 86 |
| 83 #endif // SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ | 87 #endif // SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ |
| OLD | NEW |