OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
| 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at |
| 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. |
| 14 |
| 15 #ifndef CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_ |
| 16 #define CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_ |
| 17 |
| 18 #include <stdint.h> |
| 19 |
| 20 #include <string> |
| 21 |
| 22 namespace crashpad { |
| 23 |
| 24 struct HandleSnapshot { |
| 25 HandleSnapshot(); |
| 26 ~HandleSnapshot(); |
| 27 |
| 28 //! \brief A string representation of the handle's type. |
| 29 std::wstring type_name; |
| 30 |
| 31 //! \brief The handle's value. |
| 32 uint32_t handle; |
| 33 |
| 34 //! \brief The attributes for the handle, e.g. `OBJ_INHERIT`, |
| 35 //! `OBJ_CASE_INSENSITIVE`, etc. |
| 36 uint32_t attributes; |
| 37 |
| 38 //! \brief The ACCESS_MASK for the handle in this process. |
| 39 //! |
| 40 //! See |
| 41 //! http://blogs.msdn.com/b/openspecification/archive/2010/04/01/about-the-acc
ess-mask-structure.aspx |
| 42 //! for more information. |
| 43 uint32_t granted_access; |
| 44 |
| 45 //! \brief The number of kernel references to the object that this handle |
| 46 //! refers to. |
| 47 uint32_t pointer_count; |
| 48 |
| 49 //! \brief The number of open handles to the object that this handle refers |
| 50 //! to. |
| 51 uint32_t handle_count; |
| 52 }; |
| 53 |
| 54 } // namespace crashpad |
| 55 |
| 56 #endif // CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_ |
OLD | NEW |