Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_provider.c:
+{
- return (GetAncestor(hwnd, GA_PARENT) == GetDesktopWindow()) ? TRUE : FALSE;
+}
+static HRESULT get_uia_control_type_for_hwnd(HWND hwnd, int *control_type) +{
- LONG_PTR style, ex_style;
- *control_type = 0;
- if ((ex_style = GetWindowLongPtrW(hwnd, GWL_EXSTYLE)) & WS_EX_APPWINDOW)
- {
*control_type = UIA_WindowControlTypeId;
return S_OK;
- }
- if (!(style = GetWindowLongPtrW(hwnd, GWL_STYLE)))
Is it not possible for a window to have a style of 0?