11 Jun
2018
11 Jun
'18
9:08 a.m.
Nikolay Sivov <nsivov(a)codeweavers.com> writes:
@@ -2049,6 +2049,23 @@ DECL_HANDLER(set_window_owner) }
+/* get class name for a window handle */ +DECL_HANDLER(get_class_name) +{ + struct window *win = get_window( req->handle ); + WCHAR name[256]; + atom_t atom; + int len; + + if (!win) return; + + atom = win->class ? get_base_class_atom( win->class ) : DESKTOP_ATOM; + len = get_atom_string(atom, name, 256); + + set_reply_data( name, min( len, get_reply_max_size() )); +}
This should go into class.c., though I'd suggest returning the atom in the existing set_class_info request instead. -- Alexandre Julliard julliard(a)winehq.org