ipc_args.h 798 B

123456789101112131415161718192021222324
  1. // Copyright 2017 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_IPC_ARGS_H_
  5. #define SANDBOX_WIN_SRC_IPC_ARGS_H_
  6. #include "sandbox/win/src/crosscall_params.h"
  7. #include "sandbox/win/src/crosscall_server.h"
  8. namespace sandbox {
  9. // Releases memory allocated for IPC arguments.
  10. void ReleaseArgs(const IPCParams* ipc_params, void* args[kMaxIpcParams]);
  11. // Fills up the list of arguments (args and ipc_params) for an IPC call.
  12. // Call ReleaseArgs on |ipc_params| and |args| after calling this.
  13. bool GetArgs(CrossCallParamsEx* params,
  14. IPCParams* ipc_params,
  15. void* args[kMaxIpcParams]);
  16. } // namespace sandbox
  17. #endif // SANDBOX_WIN_SRC_IPC_ARGS_H_