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

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

Issue 1225183003: CreateThread interception, to use CreateRemoteThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix up casts Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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_POLICY_H_ 5 #ifndef SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
6 #define SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ 6 #define SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Processes a 'CreateProcessW()' request from the target. 69 // Processes a 'CreateProcessW()' request from the target.
70 // 'client_info' : the target process that is making the request. 70 // 'client_info' : the target process that is making the request.
71 // 'eval_result' : The desired policy action to accomplish. 71 // 'eval_result' : The desired policy action to accomplish.
72 // 'app_name' : The full path of the process to be created. 72 // 'app_name' : The full path of the process to be created.
73 // 'command_line' : The command line passed to the created process. 73 // 'command_line' : The command line passed to the created process.
74 static DWORD CreateProcessWAction(EvalResult eval_result, 74 static DWORD CreateProcessWAction(EvalResult eval_result,
75 const ClientInfo& client_info, 75 const ClientInfo& client_info,
76 const base::string16 &app_name, 76 const base::string16 &app_name,
77 const base::string16 &command_line, 77 const base::string16 &command_line,
78 PROCESS_INFORMATION* process_info); 78 PROCESS_INFORMATION* process_info);
79
80 // Processes a 'CreateThread()' request from the target.
81 // 'client_info' : the target process that is making the request.
82 static DWORD CreateThreadAction(const ClientInfo& client_info,
83 SIZE_T stack_size,
84 LPTHREAD_START_ROUTINE start_address,
85 PVOID parameter,
86 DWORD creation_flags,
87 LPDWORD thread_id,
88 HANDLE* handle);
79 }; 89 };
80 90
81 } // namespace sandbox 91 } // namespace sandbox
82 92
83 93
84 #endif // SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ 94 #endif // SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/process_thread_interception.cc ('k') | sandbox/win/src/process_thread_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698