| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |