Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
646d4407
Commit
646d4407
authored
Feb 23, 2023
by
Connor McAdams
Committed by
Alexandre Julliard
Apr 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore: Implement UIA_ProcessIdPropertyId for default HWND provider.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
8070e44f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
uiautomation.c
dlls/uiautomationcore/tests/uiautomation.c
+1
-2
uia_provider.c
dlls/uiautomationcore/uia_provider.c
+12
-0
No files found.
dlls/uiautomationcore/tests/uiautomation.c
View file @
646d4407
...
...
@@ -12357,8 +12357,7 @@ static void test_node_hwnd_provider_(HUIANODE node, HWND hwnd, const char *file,
winetest_push_context
(
"UIA_ProcessIdPropertyId"
);
hr
=
UiaGetPropertyValue
(
node
,
UIA_ProcessIdPropertyId
,
&
v
);
ok_
(
file
,
line
)(
hr
==
S_OK
,
"Unexpected hr %#lx
\n
"
,
hr
);
todo_wine
ok_
(
file
,
line
)(
V_VT
(
&
v
)
==
VT_I4
,
"Unexpected VT %d
\n
"
,
V_VT
(
&
v
));
if
(
V_VT
(
&
v
)
==
VT_I4
)
ok_
(
file
,
line
)(
V_VT
(
&
v
)
==
VT_I4
,
"Unexpected VT %d
\n
"
,
V_VT
(
&
v
));
ok_
(
file
,
line
)(
V_I4
(
&
v
)
==
pid
,
"V_I4(&v) = %#lx, expected %#lx
\n
"
,
V_I4
(
&
v
),
pid
);
VariantClear
(
&
v
);
winetest_pop_context
();
...
...
dlls/uiautomationcore/uia_provider.c
View file @
646d4407
...
...
@@ -1292,6 +1292,18 @@ static HRESULT WINAPI base_hwnd_provider_GetPropertyValue(IRawElementProviderSim
V_I4
(
ret_val
)
=
HandleToUlong
(
base_hwnd_prov
->
hwnd
);
break
;
case
UIA_ProcessIdPropertyId
:
{
DWORD
pid
;
if
(
!
GetWindowThreadProcessId
(
base_hwnd_prov
->
hwnd
,
&
pid
))
return
UIA_E_ELEMENTNOTAVAILABLE
;
V_VT
(
ret_val
)
=
VT_I4
;
V_I4
(
ret_val
)
=
pid
;
break
;
}
default:
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment