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

Side by Side Diff: sandbox/win/src/process_thread_interception.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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 #include "sandbox/win/src/nt_internals.h" 5 #include "sandbox/win/src/nt_internals.h"
6 #include "sandbox/win/src/sandbox_types.h" 6 #include "sandbox/win/src/sandbox_types.h"
7 7
8 #ifndef SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ 8 #ifndef SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__
9 #define SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ 9 #define SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 LPVOID environment, LPCWSTR current_directory, LPSTARTUPINFOW startup_info, 76 LPVOID environment, LPCWSTR current_directory, LPSTARTUPINFOW startup_info,
77 LPPROCESS_INFORMATION process_information); 77 LPPROCESS_INFORMATION process_information);
78 78
79 SANDBOX_INTERCEPT BOOL WINAPI TargetCreateProcessA( 79 SANDBOX_INTERCEPT BOOL WINAPI TargetCreateProcessA(
80 CreateProcessAFunction orig_CreateProcessA, LPCSTR application_name, 80 CreateProcessAFunction orig_CreateProcessA, LPCSTR application_name,
81 LPSTR command_line, LPSECURITY_ATTRIBUTES process_attributes, 81 LPSTR command_line, LPSECURITY_ATTRIBUTES process_attributes,
82 LPSECURITY_ATTRIBUTES thread_attributes, BOOL inherit_handles, DWORD flags, 82 LPSECURITY_ATTRIBUTES thread_attributes, BOOL inherit_handles, DWORD flags,
83 LPVOID environment, LPCSTR current_directory, LPSTARTUPINFOA startup_info, 83 LPVOID environment, LPCSTR current_directory, LPSTARTUPINFOA startup_info,
84 LPPROCESS_INFORMATION process_information); 84 LPPROCESS_INFORMATION process_information);
85 85
86 // Interception of CreateThread in kernel32.dll.
87 SANDBOX_INTERCEPT HANDLE WINAPI
88 TargetCreateThread(CreateThreadFunction orig_CreateThread,
89 LPSECURITY_ATTRIBUTES thread_attributes,
90 SIZE_T stack_size,
91 LPTHREAD_START_ROUTINE start_address,
92 PVOID parameter,
93 DWORD creation_flags,
94 LPDWORD thread_id);
95
86 } // extern "C" 96 } // extern "C"
87 97
88 } // namespace sandbox 98 } // namespace sandbox
89 99
90 #endif // SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ 100 #endif // SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698