len = GetClassName (child, buf, sizeof buf - 1); if (len && !strcmp (buf, "RichEdit20W")) { log_debug ("found class RichEdit20W"); return child; }
find_message_window (HWND parent){  HWND child;  if (!parent)    return NULL;  child = GetWindow (parent, GW_CHILD);  while (child)    {      char buf[1024+1];      HWND w;      size_t len;      const char *s;            memset (buf, 0, sizeof (buf));      GetWindowText (child, buf, sizeof (buf)-1);      len = strlen (buf);      if (len > 22          && (s = strstr (buf, "-----BEGIN PGP "))          &&  (!strncmp (s+15, "MESSAGE-----", 12)               || !strncmp (s+15, "SIGNED MESSAGE-----", 19)))        return child;      w = find_message_window (child);      if (w)        return w;      child = GetNextWindow (child, GW_HWNDNEXT);	    }  return NULL;}