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

Unified Diff: sandbox/win/src/lpc_interception.h

Issue 1296223005: Continuing changes for lpc proxy Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/lpc_dispatcher.cc ('k') | sandbox/win/src/lpc_interception.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/lpc_interception.h
diff --git a/sandbox/win/src/lpc_interception.h b/sandbox/win/src/lpc_interception.h
new file mode 100644
index 0000000000000000000000000000000000000000..e34c2b29139a3500fdfe8e4a0602e5d8fef94fbb
--- /dev/null
+++ b/sandbox/win/src/lpc_interception.h
@@ -0,0 +1,47 @@
+// Copyright (c) 2015 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.
+
+#include "sandbox/win/src/nt_internals.h"
+#include "sandbox/win/src/sandbox_types.h"
+
+#ifndef SANDBOX_SRC_LPC_INTERCEPTION_H__
+#define SANDBOX_SRC_LPC_INTERCEPTION_H__
+
+namespace sandbox {
+
+extern "C" {
+
+typedef NTSTATUS (WINAPI* NtAlpcConnectPortFunction) (
+ PHANDLE port_handle,
+ PUNICODE_STRING port_name,
+ POBJECT_ATTRIBUTES object_attributes,
+ PALPC_PORT_ATTRIBUTES port_attributes,
+ ULONG flags,
+ void* sid,
+ void* connection_message,
+ ULONG* buffer_length,
+ void* out_message_attributes,
+ void* in_message_attributes,
+ PLARGE_INTEGER timeout);
+
+// Interceptor for NtAlpcConnectPort
+SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtAlpcConnectPort(
+ NtAlpcConnectPortFunction orig_AlpcConnectPort,
+ PHANDLE port_handle,
+ PUNICODE_STRING port_name,
+ POBJECT_ATTRIBUTES object_attributes,
+ PALPC_PORT_ATTRIBUTES port_attributes,
+ ULONG flags,
+ void* sid,
+ void* connection_message,
+ ULONG* buffer_length,
+ void* out_message_attributes,
+ void* in_message_attributes,
+ PLARGE_INTEGER timeout);
+
+} // extern "C"
+
+} // namespace sandbox
+
+#endif // SANDBOX_SRC_SYNC_INTERCEPTION_H__
« no previous file with comments | « sandbox/win/src/lpc_dispatcher.cc ('k') | sandbox/win/src/lpc_interception.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698