log_debug ("XXX %*shwnd=%p `%s'", level*2, "", child, buf);
nname = GetClassName (child, name, sizeof (name)-1); if (nname) pname = name; else pname = NULL; log_debug ("XXX %*shwnd=%p (%s) `%s'", level*2, "", child, pname? pname:"", buf);
show_window_hierarchy (HWND parent, int level){  HWND child;  child = GetWindow (parent, GW_CHILD);  while (child)    {      char buf[1024+1];            memset (buf, 0, sizeof (buf));      GetWindowText (child, buf, sizeof (buf)-1);      log_debug ("XXX %*shwnd=%p `%s'", level*2, "", child, buf);      show_window_hierarchy (child, level+1);      child = GetNextWindow (child, GW_HWNDNEXT);	    }  return NULL;}