OLD | NEW |
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 Loading... |
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 // 'eval_result' : The desired policy action to accomplish. |
| 83 static DWORD CreateThreadAction(EvalResult eval_result, |
| 84 const ClientInfo& client_info, |
| 85 SIZE_T stack_size, |
| 86 LPTHREAD_START_ROUTINE start_address, |
| 87 PVOID parameter, |
| 88 DWORD creation_flags, |
| 89 LPDWORD thread_id, |
| 90 HANDLE* handle); |
79 }; | 91 }; |
80 | 92 |
81 } // namespace sandbox | 93 } // namespace sandbox |
82 | 94 |
83 | 95 |
84 #endif // SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ | 96 #endif // SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ |
OLD | NEW |