| 537 | } |
| 538 | |
| 539 | void ShowErrorMessageDialog( |
| 540 | _In_opt_ HWND ParentWindowHandle, |
| 541 | _In_ winrt::hresult_error const& Exception) |
| 542 | { |
| 543 | ::ShowMessageDialog( |
| 544 | ParentWindowHandle, |
| 545 | Mile::WinRT::GetLocalizedString( |
| 546 | L"Messages/ErrorInstructionText"), |
| 547 | winrt::hstring(Mile::FormatWideString( |
| 548 | L"[0x%08lX] - %s", |
| 549 | static_cast<HRESULT>(Exception.code()), |
| 550 | Exception.message().c_str()))); |
| 551 | } |
| 552 | |
| 553 | void ShowErrorMessageDialog( |
| 554 | _In_ winrt::hresult_error const& Exception) |
no test coverage detected