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 SANDBOX_SRC_HANDLE_TABLE_H_ | 5 #ifndef SANDBOX_SRC_HANDLE_TABLE_H_ |
6 #define SANDBOX_SRC_HANDLE_TABLE_H_ | 6 #define SANDBOX_SRC_HANDLE_TABLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <vector> | 10 #include <vector> |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 SYSTEM_HANDLE_INFORMATION_EX* handle_info_internal() { | 148 SYSTEM_HANDLE_INFORMATION_EX* handle_info_internal() { |
149 return reinterpret_cast<SYSTEM_HANDLE_INFORMATION_EX*>( | 149 return reinterpret_cast<SYSTEM_HANDLE_INFORMATION_EX*>( |
150 &(handle_info_buffer_[0])); | 150 &(handle_info_buffer_[0])); |
151 } | 151 } |
152 | 152 |
153 std::vector<BYTE> handle_info_buffer_; | 153 std::vector<BYTE> handle_info_buffer_; |
154 | 154 |
155 DISALLOW_COPY_AND_ASSIGN(HandleTable); | 155 DISALLOW_COPY_AND_ASSIGN(HandleTable); |
156 }; | 156 }; |
157 | 157 |
158 // Returns the object manager's name associated with a handle | |
159 bool GetHandleName(HANDLE handle, string16* handle_name); | |
160 | |
161 | |
162 } // namespace sandbox | 158 } // namespace sandbox |
163 | 159 |
164 #endif // SANDBOX_SRC_HANDLE_TABLE_H_ | 160 #endif // SANDBOX_SRC_HANDLE_TABLE_H_ |
OLD | NEW |