signed_interception.h 965 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SANDBOX_WIN_SRC_SIGNED_INTERCEPTION_H_
  5. #define SANDBOX_WIN_SRC_SIGNED_INTERCEPTION_H_
  6. #include "sandbox/win/src/nt_internals.h"
  7. #include "sandbox/win/src/sandbox_types.h"
  8. namespace sandbox {
  9. extern "C" {
  10. // Interceptor for NtCreateSection
  11. SANDBOX_INTERCEPT NTSTATUS WINAPI
  12. TargetNtCreateSection(NtCreateSectionFunction orig_CreateSection,
  13. PHANDLE section_handle,
  14. ACCESS_MASK desired_access,
  15. POBJECT_ATTRIBUTES object_attributes,
  16. PLARGE_INTEGER maximum_size,
  17. ULONG section_page_protection,
  18. ULONG allocation_attributes,
  19. HANDLE file_handle);
  20. } // extern "C"
  21. } // namespace sandbox
  22. #endif // SANDBOX_WIN_SRC_SIGNED_INTERCEPTION_H_