OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_COMMON_SECTION_UTIL_WIN_H_ |
| 6 #define CHROME_COMMON_SECTION_UTIL_WIN_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <windows.h> |
| 10 |
| 11 namespace chrome { |
| 12 |
| 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); |
| 16 |
| 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); |
| 20 |
| 21 } // namespace chrome |
| 22 |
| 23 #endif // CHROME_COMMON_SECTION_UTIL_WIN_H_ |
OLD | NEW |