| 65 | } |
| 66 | |
| 67 | std::string WindowUtilities::GetWindowCaption(HWND window_handle) { |
| 68 | std::wstring window_caption = L""; |
| 69 | std::vector<wchar_t> buffer(256); |
| 70 | int success = ::GetWindowText(window_handle, &buffer[0], 256); |
| 71 | if (success > 0) { |
| 72 | window_caption = &buffer[0]; |
| 73 | } |
| 74 | return StringUtilities::ToString(window_caption); |
| 75 | } |
| 76 | |
| 77 | std::string WindowUtilities::GetWindowClass(HWND window_handle) { |
| 78 | std::string window_class = ""; |
nothing calls this directly
no outgoing calls
no test coverage detected