Thinking from wine perspective , what will be the logic to find out if a hwnd is for the main window of a program ?