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