| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_SECTION_UTIL_WIN_H_ | 5 #ifndef CONTENT_COMMON_SECTION_UTIL_WIN_H_ |
| 6 #define CHROME_COMMON_SECTION_UTIL_WIN_H_ | 6 #define CONTENT_COMMON_SECTION_UTIL_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 namespace chrome { | 11 namespace chrome { |
| 12 | 12 |
| 13 // Duplicates a section handle from another process to the current process. | 13 // Duplicates a section handle from another process to the current process. |
| 14 // Returns the new valid handle if the function succeed. NULL otherwise. | 14 // Returns the new valid handle if the function succeed. NULL otherwise. |
| 15 HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only); | 15 HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only); |
| 16 | 16 |
| 17 // Duplicates a section handle from the current process for use in another | 17 // Duplicates a section handle from the current process for use in another |
| 18 // process. Returns the new valid handle or NULL on failure. | 18 // process. Returns the new valid handle or NULL on failure. |
| 19 HANDLE GetSectionForProcess(HANDLE section, HANDLE process, bool read_only); | 19 HANDLE GetSectionForProcess(HANDLE section, HANDLE process, bool read_only); |
| 20 | 20 |
| 21 } // namespace chrome | 21 } // namespace chrome |
| 22 | 22 |
| 23 #endif // CHROME_COMMON_SECTION_UTIL_WIN_H_ | 23 #endif // CONTENT_COMMON_SECTION_UTIL_WIN_H_ |
| OLD | NEW |