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_DEP_H__ | 5 #ifndef SANDBOX_SRC_DEP_H__ |
6 #define SANDBOX_SRC_DEP_H__ | 6 #define SANDBOX_SRC_DEP_H__ |
7 | 7 |
8 namespace sandbox { | 8 namespace sandbox { |
9 | 9 |
10 enum DepEnforcement { | 10 enum DepEnforcement { |
11 // DEP is completely disabled. | 11 // DEP is completely disabled. |
12 DEP_DISABLED, | 12 DEP_DISABLED, |
13 // DEP is permanently enforced. | 13 // DEP is permanently enforced. |
14 DEP_ENABLED, | 14 DEP_ENABLED, |
15 // DEP with support for ATL7 thunking is permanently enforced. | 15 // DEP with support for ATL7 thunking is permanently enforced. |
16 DEP_ENABLED_ATL7_COMPAT, | 16 DEP_ENABLED_ATL7_COMPAT, |
17 }; | 17 }; |
18 | 18 |
19 // Change the Data Execution Prevention (DEP) status for the current process. | 19 // Change the Data Execution Prevention (DEP) status for the current process. |
20 // Once enabled, it cannot be disabled. | 20 // Once enabled, it cannot be disabled. |
21 bool SetCurrentProcessDEP(DepEnforcement enforcement); | 21 bool SetCurrentProcessDEP(DepEnforcement enforcement); |
22 | 22 |
23 } // namespace sandbox | 23 } // namespace sandbox |
24 | 24 |
25 #endif // SANDBOX_SRC_DEP_H__ | 25 #endif // SANDBOX_SRC_DEP_H__ |
OLD | NEW |