Print Preview: Refactoring print/cancel button and print summary.
[chromium-blink-merge.git] / content / common / section_util_win.h
blobb07239a4b87d4fd3a1695239c5a8dccf18d19102
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_
7 #pragma once
9 #include <windows.h>
11 namespace chrome {
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);
21 } // namespace chrome
23 #endif // CONTENT_COMMON_SECTION_UTIL_WIN_H_