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

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

Issue 1856993003: Implement sandbox hooks to forward OPM related GDI system calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replaced shared memory implementation. Created 4 years, 8 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
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/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_INTERCEPTORS_64_H_ 8 #ifndef SANDBOX_SRC_INTERCEPTORS_64_H_
9 #define SANDBOX_SRC_INTERCEPTORS_64_H_ 9 #define SANDBOX_SRC_INTERCEPTORS_64_H_
10 10
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize64( 170 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize64(
171 HANDLE dll, 171 HANDLE dll,
172 DWORD reason); 172 DWORD reason);
173 173
174 // Interceptor for the GetStockObject function. 174 // Interceptor for the GetStockObject function.
175 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object); 175 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object);
176 176
177 // Interceptor for the RegisterClassW function. 177 // Interceptor for the RegisterClassW function.
178 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(const WNDCLASS* wnd_class); 178 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(const WNDCLASS* wnd_class);
179 179
180 SANDBOX_INTERCEPT BOOL WINAPI
181 TargetEnumDisplayMonitors64(HDC hdc,
182 LPCRECT lprcClip,
183 MONITORENUMPROC lpfnEnum,
184 LPARAM dwData);
185
186 SANDBOX_INTERCEPT BOOL WINAPI
187 TargetEnumDisplayDevicesA64(LPCSTR lpDevice,
188 DWORD iDevNum,
189 PDISPLAY_DEVICEA lpDisplayDevice,
190 DWORD dwFlags);
191
192 SANDBOX_INTERCEPT BOOL WINAPI TargetGetMonitorInfoA64(HMONITOR hMonitor,
193 LPMONITORINFO lpmi);
194
195 SANDBOX_INTERCEPT BOOL WINAPI TargetGetMonitorInfoW64(HMONITOR hMonitor,
196 LPMONITORINFO lpmi);
197
198 SANDBOX_INTERCEPT NTSTATUS WINAPI
199 TargetGetSuggestedOPMProtectedOutputArraySize64(
200 PUNICODE_STRING device_name,
201 DWORD* suggested_output_array_size);
202
203 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetCreateOPMProtectedOutputs64(
204 PUNICODE_STRING device_name,
205 DXGKMDT_OPM_VIDEO_OUTPUT_SEMANTICS vos,
206 DWORD protected_output_array_size,
207 DWORD* num_output_handles,
208 OPM_PROTECTED_OUTPUT_HANDLE* protected_output_array);
209
210 SANDBOX_INTERCEPT NTSTATUS WINAPI
211 TargetGetCertificate64(PUNICODE_STRING device_name,
212 DXGKMDT_CERTIFICATE_TYPE certificate_type,
213 BYTE* certificate,
214 ULONG certificate_length);
215
216 SANDBOX_INTERCEPT NTSTATUS WINAPI
217 TargetGetCertificateSize64(PUNICODE_STRING device_name,
218 DXGKMDT_CERTIFICATE_TYPE certificate_type,
219 ULONG* certificate_length);
220
221 SANDBOX_INTERCEPT NTSTATUS WINAPI
222 TargetDestroyOPMProtectedOutput64(OPM_PROTECTED_OUTPUT_HANDLE protected_output);
223
224 SANDBOX_INTERCEPT NTSTATUS WINAPI
225 TargetGetOPMInformation64(OPM_PROTECTED_OUTPUT_HANDLE protected_output,
226 const DXGKMDT_OPM_GET_INFO_PARAMETERS* parameters,
227 DXGKMDT_OPM_REQUESTED_INFORMATION* requested_info);
228
229 SANDBOX_INTERCEPT NTSTATUS WINAPI
230 TargetGetOPMRandomNumber64(OPM_PROTECTED_OUTPUT_HANDLE protected_output,
231 DXGKMDT_OPM_RANDOM_NUMBER* random_number);
232
233 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetSetOPMSigningKeyAndSequenceNumbers64(
234 OPM_PROTECTED_OUTPUT_HANDLE protected_output,
235 const DXGKMDT_OPM_ENCRYPTED_PARAMETERS* parameters);
236
237 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetConfigureOPMProtectedOutput64(
238 OPM_PROTECTED_OUTPUT_HANDLE protected_output,
239 const DXGKMDT_OPM_CONFIGURE_PARAMETERS* parameters,
240 ULONG additional_parameters_size,
241 const BYTE* additional_parameters);
242
180 } // extern "C" 243 } // extern "C"
181 244
182 } // namespace sandbox 245 } // namespace sandbox
183 246
184 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ 247 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698