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

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: Removed header Created 4 years, 7 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
« no previous file with comments | « sandbox/win/src/interceptors.h ('k') | sandbox/win/src/interceptors_64.cc » ('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/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 TargetGetCertificateByHandle64(OPM_PROTECTED_OUTPUT_HANDLE protected_output,
223 DXGKMDT_CERTIFICATE_TYPE certificate_type,
224 BYTE* certificate,
225 ULONG certificate_length);
226
227 SANDBOX_INTERCEPT NTSTATUS WINAPI
228 TargetGetCertificateSizeByHandle64(OPM_PROTECTED_OUTPUT_HANDLE protected_output,
229 DXGKMDT_CERTIFICATE_TYPE certificate_type,
230 ULONG* certificate_length);
231
232 SANDBOX_INTERCEPT NTSTATUS WINAPI
233 TargetDestroyOPMProtectedOutput64(OPM_PROTECTED_OUTPUT_HANDLE protected_output);
234
235 SANDBOX_INTERCEPT NTSTATUS WINAPI
236 TargetGetOPMInformation64(OPM_PROTECTED_OUTPUT_HANDLE protected_output,
237 const DXGKMDT_OPM_GET_INFO_PARAMETERS* parameters,
238 DXGKMDT_OPM_REQUESTED_INFORMATION* requested_info);
239
240 SANDBOX_INTERCEPT NTSTATUS WINAPI
241 TargetGetOPMRandomNumber64(OPM_PROTECTED_OUTPUT_HANDLE protected_output,
242 DXGKMDT_OPM_RANDOM_NUMBER* random_number);
243
244 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetSetOPMSigningKeyAndSequenceNumbers64(
245 OPM_PROTECTED_OUTPUT_HANDLE protected_output,
246 const DXGKMDT_OPM_ENCRYPTED_PARAMETERS* parameters);
247
248 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetConfigureOPMProtectedOutput64(
249 OPM_PROTECTED_OUTPUT_HANDLE protected_output,
250 const DXGKMDT_OPM_CONFIGURE_PARAMETERS* parameters,
251 ULONG additional_parameters_size,
252 const BYTE* additional_parameters);
253
180 } // extern "C" 254 } // extern "C"
181 255
182 } // namespace sandbox 256 } // namespace sandbox
183 257
184 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ 258 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/interceptors.h ('k') | sandbox/win/src/interceptors_64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698