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

Side by Side Diff: sandbox/win/src/interceptors_64.cc

Issue 333773005: Intercept the user32!SystemParametersInfoW API in the win32k user gdi lockdown mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/interceptors_64.h ('k') | sandbox/win/src/ipc_tags.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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/interceptors_64.h" 5 #include "sandbox/win/src/interceptors_64.h"
6 6
7 #include "sandbox/win/src/interceptors.h" 7 #include "sandbox/win/src/interceptors.h"
8 #include "sandbox/win/src/filesystem_interception.h" 8 #include "sandbox/win/src/filesystem_interception.h"
9 #include "sandbox/win/src/named_pipe_interception.h" 9 #include "sandbox/win/src/named_pipe_interception.h"
10 #include "sandbox/win/src/policy_target.h" 10 #include "sandbox/win/src/policy_target.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return TargetGetStockObject(orig_fn, object); 268 return TargetGetStockObject(orig_fn, object);
269 } 269 }
270 270
271 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64( 271 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(
272 const WNDCLASS* wnd_class) { 272 const WNDCLASS* wnd_class) {
273 RegisterClassWFunction orig_fn = reinterpret_cast< 273 RegisterClassWFunction orig_fn = reinterpret_cast<
274 RegisterClassWFunction>(g_originals[REGISTERCLASSW_ID]); 274 RegisterClassWFunction>(g_originals[REGISTERCLASSW_ID]);
275 return TargetRegisterClassW(orig_fn, wnd_class); 275 return TargetRegisterClassW(orig_fn, wnd_class);
276 } 276 }
277 277
278 SANDBOX_INTERCEPT BOOL WINAPI TargetSystemParametersInfoW64(
279 UINT action, UINT ui_param, PVOID value, UINT win_ini) {
280 SystemParametersInfoWFunction orig_fn = reinterpret_cast<
281 SystemParametersInfoWFunction>(g_originals[SYSTEMPARAMETERSINFOW_ID]);
282 return TargetSystemParametersInfoW(orig_fn, action, ui_param, value,
283 win_ini);
284 }
285
286
278 } // namespace sandbox 287 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/interceptors_64.h ('k') | sandbox/win/src/ipc_tags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698