Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: sandbox/win/src/Wow64.h

Issue 1814863004: Cleanup/Remove Windows XP/Vista version checks from Windows sandbox code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert disabled reparse point check Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sandbox/win/sandbox_win.gypi ('k') | sandbox/win/src/Wow64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_WOW64_H__
6 #define SANDBOX_SRC_WOW64_H__
7
8 #include <windows.h>
9
10 #include "base/macros.h"
11 #include "base/win/scoped_handle.h"
12 #include "sandbox/win/src/sandbox_types.h"
13
14 namespace sandbox {
15
16 class TargetProcess;
17
18 // This class wraps the code needed to interact with the Windows On Windows
19 // subsystem on 64 bit OSes, from the point of view of interceptions.
20 class Wow64 {
21 public:
22 Wow64(TargetProcess* child, HMODULE ntdll);
23 ~Wow64();
24
25 // Waits for the 32 bit DLL to get loaded on the child process. This function
26 // will return immediately if not running under WOW, or launch the helper
27 // process and wait until ntdll is ready.
28 bool WaitForNtdll();
29
30 private:
31 // Runs the WOW helper process, passing the address of a buffer allocated on
32 // the child (one page).
33 bool RunWowHelper(void* buffer);
34
35 // This method receives "notifications" whenever a DLL is mapped on the child.
36 bool DllMapped();
37
38 // Returns true if ntdll.dll is mapped on the child.
39 bool NtdllPresent();
40
41 TargetProcess* child_; // Child process.
42 HMODULE ntdll_; // ntdll on the parent.
43 // Event that is signaled on dll load.
44 base::win::ScopedHandle dll_load_;
45 // Event to signal to continue execution on the child.
46 base::win::ScopedHandle continue_load_;
47 DISALLOW_IMPLICIT_CONSTRUCTORS(Wow64);
48 };
49
50 } // namespace sandbox
51
52 #endif // SANDBOX_SRC_WOW64_H__
OLDNEW
« no previous file with comments | « sandbox/win/sandbox_win.gypi ('k') | sandbox/win/src/Wow64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698