| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | ProcessCrashInformation.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | This file contains the definition of the WinRT wrapper for the WSLC SDK ProcessCrashInformation class. |
| 12 | |
| 13 | --*/ |
| 14 | |
| 15 | #pragma once |
| 16 | #include "Microsoft.WSL.Containers.ProcessCrashInformation.g.h" |
| 17 | #include "Helpers.h" |
| 18 | |
| 19 | namespace winrt::Microsoft::WSL::Containers::implementation { |
| 20 | struct ProcessCrashInformation : ProcessCrashInformationT<ProcessCrashInformation> |
| 21 | { |
| 22 | ProcessCrashInformation(const WslcSessionCrashDumpInfo* info); |
| 23 | |
| 24 | hstring DumpPath() const; |
| 25 | hstring ProcessName() const; |
| 26 | uint32_t Pid() const; |
| 27 | uint32_t Signal() const; |
| 28 | winrt::Windows::Foundation::DateTime Timestamp() const; |
| 29 | |
| 30 | private: |
| 31 | hstring m_dumpPath; |
| 32 | hstring m_processName; |
| 33 | uint32_t m_pid{}; |
| 34 | uint32_t m_signal{}; |
| 35 | winrt::Windows::Foundation::DateTime m_timestamp{}; |
| 36 | }; |
| 37 | } // namespace winrt::Microsoft::WSL::Containers::implementation |
| 38 | |
| 39 | DEFINE_TYPE_HELPERS(ProcessCrashInformation); |