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

Side by Side Diff: sandbox/win/src/process_mitigations_win32k_dispatcher.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/ipc_tags.h ('k') | sandbox/win/src/process_mitigations_win32k_interception.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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/process_mitigations_win32k_dispatcher.h" 5 #include "sandbox/win/src/process_mitigations_win32k_dispatcher.h"
6 #include "sandbox/win/src/interception.h" 6 #include "sandbox/win/src/interception.h"
7 #include "sandbox/win/src/interceptors.h" 7 #include "sandbox/win/src/interceptors.h"
8 #include "sandbox/win/src/ipc_tags.h" 8 #include "sandbox/win/src/ipc_tags.h"
9 #include "sandbox/win/src/process_mitigations_win32k_interception.h" 9 #include "sandbox/win/src/process_mitigations_win32k_interception.h"
10 10
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 case IPC_USER_REGISTERCLASSW_TAG: { 42 case IPC_USER_REGISTERCLASSW_TAG: {
43 if (!INTERCEPT_EAT(manager, L"user32.dll", RegisterClassW, 43 if (!INTERCEPT_EAT(manager, L"user32.dll", RegisterClassW,
44 REGISTERCLASSW_ID, 8)) { 44 REGISTERCLASSW_ID, 8)) {
45 return false; 45 return false;
46 } 46 }
47 return true; 47 return true;
48 } 48 }
49 49
50 case IPC_USER_SYSTEMPARAMETERSINFOW_TAG: {
51 if (!INTERCEPT_EAT(manager, L"user32.dll", SystemParametersInfoW,
52 SYSTEMPARAMETERSINFOW_ID, 20)) {
53 return false;
54 }
55 return true;
56 }
57
50 default: 58 default:
51 break; 59 break;
52 } 60 }
53 return false; 61 return false;
54 } 62 }
55 63
56 } // namespace sandbox 64 } // namespace sandbox
57 65
OLDNEW
« no previous file with comments | « sandbox/win/src/ipc_tags.h ('k') | sandbox/win/src/process_mitigations_win32k_interception.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698