Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: util/win/process_structs.h

Issue 1400413002: win: Add Handles() to ProcessInfo (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« util/win/process_info_test.cc ('K') | « util/win/process_info_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 template <class Traits> 448 template <class Traits>
449 struct EXCEPTION_POINTERS { 449 struct EXCEPTION_POINTERS {
450 typename Traits::Pointer ExceptionRecord; 450 typename Traits::Pointer ExceptionRecord;
451 typename Traits::Pointer ContextRecord; 451 typename Traits::Pointer ContextRecord;
452 }; 452 };
453 453
454 using EXCEPTION_POINTERS32 = EXCEPTION_POINTERS<internal::Traits32>; 454 using EXCEPTION_POINTERS32 = EXCEPTION_POINTERS<internal::Traits32>;
455 using EXCEPTION_POINTERS64 = EXCEPTION_POINTERS<internal::Traits64>; 455 using EXCEPTION_POINTERS64 = EXCEPTION_POINTERS<internal::Traits64>;
456 456
457 template <class Traits>
458 struct SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX {
459 typename Traits::Pointer Object;
460 typename Traits::UnsignedIntegral UniqueProcessId;
461 typename Traits::UnsignedIntegral HandleValue;
462 ULONG GrantedAccess;
463 USHORT CreatorBackTraceIndex;
464 USHORT ObjectTypeIndex;
465 ULONG HandleAttributes;
466 ULONG Reserved;
467 };
468
469 template <class Traits>
470 struct SYSTEM_HANDLE_INFORMATION_EX {
471 typename Traits::UnsignedIntegral NumberOfHandles;
472 typename Traits::UnsignedIntegral Reserved;
473 SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX<Traits> Handles[1];
474 };
475
457 #pragma pack(pop) 476 #pragma pack(pop)
458 477
459 //! \} 478 //! \}
460 479
461 } // namespace process_types 480 } // namespace process_types
462 } // namespace crashpad 481 } // namespace crashpad
463 482
464 #endif // CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ 483 #endif // CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_
OLDNEW
« util/win/process_info_test.cc ('K') | « util/win/process_info_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698