Index: snapshot/win/process_snapshot_win.cc |
diff --git a/snapshot/win/process_snapshot_win.cc b/snapshot/win/process_snapshot_win.cc |
index 98e955c0e3d139e208f22c951b6d53e53f4f5445..9a6f4f68ed77b2c94f5d385d86f9e008a6005d83 100644 |
--- a/snapshot/win/process_snapshot_win.cc |
+++ b/snapshot/win/process_snapshot_win.cc |
@@ -202,6 +202,21 @@ std::vector<const MemoryMapRegionSnapshot*> ProcessSnapshotWin::MemoryMap() |
return memory_map; |
} |
+std::vector<HandleSnapshot> ProcessSnapshotWin::Handles() const { |
+ std::vector<HandleSnapshot> result; |
+ for (const auto& handle : process_reader_.GetProcessInfo().Handles()) { |
+ HandleSnapshot snapshot; |
+ snapshot.type_name = handle.type_name; |
+ snapshot.handle = handle.handle; |
+ snapshot.attributes = handle.attributes; |
+ snapshot.granted_access = handle.granted_access; |
+ snapshot.pointer_count = handle.pointer_count; |
+ snapshot.handle_count = handle.handle_count; |
+ result.push_back(snapshot); |
+ } |
+ return result; |
+} |
+ |
std::vector<const MemorySnapshot*> ProcessSnapshotWin::ExtraMemory() const { |
INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
std::vector<const MemorySnapshot*> extra_memory; |