| OLD | NEW |
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with 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 | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace internal { | 31 namespace internal { |
| 32 | 32 |
| 33 //! \brief This structure matches PROCESS_BASIC_INFORMATION in winternl.h but | 33 //! \brief This structure matches PROCESS_BASIC_INFORMATION in winternl.h but |
| 34 //! gives names to the Reserved fields (matching the WDK's ntddk.h). | 34 //! gives names to the Reserved fields (matching the WDK's ntddk.h). |
| 35 struct FULL_PROCESS_BASIC_INFORMATION { | 35 struct FULL_PROCESS_BASIC_INFORMATION { |
| 36 NTSTATUS ExitStatus; | 36 NTSTATUS ExitStatus; |
| 37 PPEB PebBaseAddress; | 37 PPEB PebBaseAddress; |
| 38 KAFFINITY AffinityMask; | 38 KAFFINITY AffinityMask; |
| 39 PVOID BasePriority; | 39 PVOID BasePriority; |
| 40 ULONG UniqueProcessId; | 40 ULONG_PTR UniqueProcessId; |
| 41 ULONG InheritedFromUniqueProcessId; | 41 ULONG_PTR InheritedFromUniqueProcessId; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace internal | 44 } // namespace internal |
| 45 | 45 |
| 46 //! \brief Gathers information about a process given its `HANDLE`. This consists | 46 //! \brief Gathers information about a process given its `HANDLE`. This consists |
| 47 //! primarily of information stored in the Process Environment Block. | 47 //! primarily of information stored in the Process Environment Block. |
| 48 class ProcessInfo { | 48 class ProcessInfo { |
| 49 public: | 49 public: |
| 50 ProcessInfo(); | 50 ProcessInfo(); |
| 51 ~ProcessInfo(); | 51 ~ProcessInfo(); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool is_64_bit_; | 90 bool is_64_bit_; |
| 91 bool is_wow64_; | 91 bool is_wow64_; |
| 92 InitializationStateDcheck initialized_; | 92 InitializationStateDcheck initialized_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(ProcessInfo); | 94 DISALLOW_COPY_AND_ASSIGN(ProcessInfo); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace crashpad | 97 } // namespace crashpad |
| 98 | 98 |
| 99 #endif // CRASHPAD_UTIL_WIN_PROCESS_INFO_H_ | 99 #endif // CRASHPAD_UTIL_WIN_PROCESS_INFO_H_ |
| OLD | NEW |