Chromium Code Reviews| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 336 }; | 336 }; |
| 337 typename Traits::Pointer StackBase; // These don't appear to be correct. | 337 typename Traits::Pointer StackBase; // These don't appear to be correct. |
| 338 typename Traits::Pointer StackLimit; | 338 typename Traits::Pointer StackLimit; |
| 339 typename Traits::Pointer Win32StartAddress; | 339 typename Traits::Pointer Win32StartAddress; |
| 340 typename Traits::Pointer TebBase; | 340 typename Traits::Pointer TebBase; |
| 341 typename Traits::Pointer Reserved; | 341 typename Traits::Pointer Reserved; |
| 342 typename Traits::Pointer Reserved2; | 342 typename Traits::Pointer Reserved2; |
| 343 typename Traits::Pointer Reserved3; | 343 typename Traits::Pointer Reserved3; |
| 344 }; | 344 }; |
| 345 | 345 |
| 346 // See http://undocumented.ntinternals.net/source/usermode/structures/thread_bas ic_information.html. | |
|
scottmg
2015/08/18 16:56:00
No longer needed (was for GetThreadId()).
| |
| 347 template <class Traits> | |
| 348 struct THREAD_BASIC_INFORMATION { | |
| 349 union { | |
| 350 DWORD ExitStatus; | |
| 351 typename Traits::Pad padding_for_x64; | |
| 352 }; | |
| 353 typename Traits::Pointer TebBaseAddress; | |
| 354 CLIENT_ID<Traits> ClientId; | |
| 355 typename Traits::Pointer AffinityMask; | |
| 356 LONG Priority; | |
| 357 LONG BasePriority; | |
| 358 }; | |
| 359 | |
| 346 // See http://undocumented.ntinternals.net/source/usermode/undocumented%20functi ons/system%20information/structures/system_process_information.html | 360 // See http://undocumented.ntinternals.net/source/usermode/undocumented%20functi ons/system%20information/structures/system_process_information.html |
| 347 template <class Traits> | 361 template <class Traits> |
| 348 struct SYSTEM_PROCESS_INFORMATION { | 362 struct SYSTEM_PROCESS_INFORMATION { |
| 349 ULONG NextEntryOffset; | 363 ULONG NextEntryOffset; |
| 350 ULONG NumberOfThreads; | 364 ULONG NumberOfThreads; |
| 351 LARGE_INTEGER Reserved[3]; | 365 LARGE_INTEGER Reserved[3]; |
| 352 LARGE_INTEGER CreateTime; | 366 LARGE_INTEGER CreateTime; |
| 353 LARGE_INTEGER UserTime; | 367 LARGE_INTEGER UserTime; |
| 354 LARGE_INTEGER KernelTime; | 368 LARGE_INTEGER KernelTime; |
| 355 UNICODE_STRING<Traits> ImageName; | 369 UNICODE_STRING<Traits> ImageName; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 392 }; | 406 }; |
| 393 | 407 |
| 394 #pragma pack(pop) | 408 #pragma pack(pop) |
| 395 | 409 |
| 396 //! \} | 410 //! \} |
| 397 | 411 |
| 398 } // namespace process_types | 412 } // namespace process_types |
| 399 } // namespace crashpad | 413 } // namespace crashpad |
| 400 | 414 |
| 401 #endif // CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ | 415 #endif // CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ |
| OLD | NEW |