| 75 | } |
| 76 | |
| 77 | std::string WindowUtilities::GetWindowClass(HWND window_handle) { |
| 78 | std::string window_class = ""; |
| 79 | std::vector<char> buffer(256); |
| 80 | int success = ::GetClassNameA(window_handle, &buffer[0], buffer.size()); |
| 81 | if (success > 0) { |
| 82 | window_class = &buffer[0]; |
| 83 | } |
| 84 | return window_class; |
| 85 | } |
| 86 | |
| 87 | void WindowUtilities::GetProcessesByName(const std::wstring& process_name, |
| 88 | std::vector<DWORD>* process_ids) { |