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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_SECTION_UTIL_WIN_H_
6 #define CONTENT_COMMON_SECTION_UTIL_WIN_H_
13 // Duplicates a section handle from another process to the current process.
14 // Returns the new valid handle if the function succeed. NULL otherwise.
15 HANDLE
GetSectionFromProcess(HANDLE section
, HANDLE process
, bool read_only
);
17 // Duplicates a section handle from the current process for use in another
18 // process. Returns the new valid handle or NULL on failure.
19 HANDLE
GetSectionForProcess(HANDLE section
, HANDLE process
, bool read_only
);
23 #endif // CONTENT_COMMON_SECTION_UTIL_WIN_H_