summaryrefslogtreecommitdiffstats
path: root/sandbox/src/dep.h
blob: 901628544da97db77fe2ff97b920a1cc77f33e1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SANDBOX_SRC_DEP_H__
#define SANDBOX_SRC_DEP_H__

namespace sandbox {

enum DepEnforcement {
  // DEP is completely disabled.
  DEP_DISABLED,
  // DEP is permanently enforced.
  DEP_ENABLED,
  // DEP with support for ATL7 thunking is permanently enforced.
  DEP_ENABLED_ATL7_COMPAT,
};

// Change the Data Execution Prevention (DEP) status for the current process.
// Once enabled, it cannot be disabled.
bool SetCurrentProcessDEP(DepEnforcement enforcement);

}  // namespace sandbox

#endif  // SANDBOX_SRC_DEP_H__