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

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

Issue 1225183003: CreateThread interception, to use CreateRemoteThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync to head Created 5 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PROCESS_THREAD_DISPATCHER_H_ 5 #ifndef SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_
6 #define SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_ 6 #define SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "sandbox/win/src/crosscall_server.h" 10 #include "sandbox/win/src/crosscall_server.h"
(...skipping 26 matching lines...) Expand all
37 uint32 desired_access, 37 uint32 desired_access,
38 uint32 attributes); 38 uint32 attributes);
39 39
40 // Processes IPC requests coming from calls to CreateProcessW() in the target. 40 // Processes IPC requests coming from calls to CreateProcessW() in the target.
41 bool CreateProcessW(IPCInfo* ipc, 41 bool CreateProcessW(IPCInfo* ipc,
42 base::string16* name, 42 base::string16* name,
43 base::string16* cmd_line, 43 base::string16* cmd_line,
44 base::string16* cur_dir, 44 base::string16* cur_dir,
45 CountedBuffer* info); 45 CountedBuffer* info);
46 46
47 // Processes IPC requests coming from calls to CreateThread() in the target.
48 bool CreateThread(IPCInfo* ipc,
49 LPSECURITY_ATTRIBUTES thread_attributes,
50 SIZE_T stack_size,
51 LPTHREAD_START_ROUTINE start_address,
52 PVOID parameter,
53 DWORD creation_flags);
54
47 PolicyBase* policy_base_; 55 PolicyBase* policy_base_;
48 DISALLOW_COPY_AND_ASSIGN(ThreadProcessDispatcher); 56 DISALLOW_COPY_AND_ASSIGN(ThreadProcessDispatcher);
49 }; 57 };
50 58
51 } // namespace sandbox 59 } // namespace sandbox
52 60
53 #endif // SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_ 61 #endif // SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698