parameters: (profile_dir)
docstring: Find the message window associated with profile_dir, if any.
docstring_summary: Find the message window associated with profile_dir, if any.
docstring_tokens: Find the message window associated with profile_dir if any .
function: def _FindProfileWindow(profile_dir):
    """Find the message window associated with profile_dir, if any."""
    profile_dir = os.path.abspath(profile_dir)
  
    try:
      return win32gui.FindWindowEx(None,
                                   None,
                                   _MESSAGE_WINDOW_CLASS,
                                   profile_dir)
    # This type is not found by the static analysis that pylint performs.
    # pylint: disable=E1101
    except pywintypes.error:
      # On Windows 7, FindWindowEx returns None without raising an error.
      # On older versions, it raises a FILE_NOT_FOUND error.
      return None
function_tokens: def _FindProfileWindow ( profile_dir ) : profile_dir = os . path . abspath ( profile_dir ) try : return win32gui . FindWindowEx ( None , None , _MESSAGE_WINDOW_CLASS , profile_dir ) # This type is not found by the static analysis that pylint performs. # pylint: disable=E1101 except pywintypes . error : # On Windows 7, FindWindowEx returns None without raising an error. # On older versions, it raises a FILE_NOT_FOUND error. return None