MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / GetWindowClass

Method GetWindowClass

cpp/iedriver/WindowUtilities.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77std::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
87void WindowUtilities::GetProcessesByName(const std::wstring& process_name,
88 std::vector<DWORD>* process_ids) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected