blob: a50ec38222b0984913e5a799d184066b646609eb [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SANDBOX_WIN_SRC_SIGNED_INTERCEPTION_H_
#define SANDBOX_WIN_SRC_SIGNED_INTERCEPTION_H_
#include "sandbox/win/src/nt_internals.h"
#include "sandbox/win/src/sandbox_types.h"
namespace sandbox {
extern "C" {
// Interceptor for NtCreateSection
SANDBOX_INTERCEPT NTSTATUS WINAPI
TargetNtCreateSection(NtCreateSectionFunction orig_CreateSection,
PHANDLE section_handle,
ACCESS_MASK desired_access,
POBJECT_ATTRIBUTES object_attributes,
PLARGE_INTEGER maximum_size,
ULONG section_page_protection,
ULONG allocation_attributes,
HANDLE file_handle);
} // extern "C"
} // namespace sandbox
#endif // SANDBOX_WIN_SRC_SIGNED_INTERCEPTION_H_