Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6254f663
Commit
6254f663
authored
Feb 02, 2023
by
Connor McAdams
Committed by
Alexandre Julliard
Feb 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore: Implement IUIAutomationElement::GetCurrentPropertyValueEx.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
2d8bf67b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
uiautomation.c
dlls/uiautomationcore/tests/uiautomation.c
+0
-0
uia_com_client.c
dlls/uiautomationcore/uia_com_client.c
+37
-2
No files found.
dlls/uiautomationcore/tests/uiautomation.c
View file @
6254f663
This diff is collapsed.
Click to expand it.
dlls/uiautomationcore/uia_com_client.c
View file @
6254f663
...
...
@@ -134,11 +134,46 @@ static HRESULT WINAPI uia_element_GetCurrentPropertyValue(IUIAutomationElement9
return
E_NOTIMPL
;
}
static
HRESULT
create_uia_element
(
IUIAutomationElement
**
iface
,
BOOL
from_cui8
,
HUIANODE
node
);
static
HRESULT
WINAPI
uia_element_GetCurrentPropertyValueEx
(
IUIAutomationElement9
*
iface
,
PROPERTYID
prop_id
,
BOOL
ignore_default
,
VARIANT
*
ret_val
)
{
FIXME
(
"%p: stub
\n
"
,
iface
);
return
E_NOTIMPL
;
const
struct
uia_prop_info
*
prop_info
=
uia_prop_info_from_id
(
prop_id
);
struct
uia_element
*
element
=
impl_from_IUIAutomationElement9
(
iface
);
HRESULT
hr
;
TRACE
(
"%p, %d, %d, %p
\n
"
,
iface
,
prop_id
,
ignore_default
,
ret_val
);
if
(
!
ignore_default
)
FIXME
(
"Default values currently unimplemented
\n
"
);
VariantInit
(
ret_val
);
if
(
prop_info
->
type
==
UIAutomationType_ElementArray
)
{
FIXME
(
"ElementArray property types currently unsupported for IUIAutomationElement
\n
"
);
return
E_NOTIMPL
;
}
hr
=
UiaGetPropertyValue
(
element
->
node
,
prop_id
,
ret_val
);
if
((
prop_info
->
type
==
UIAutomationType_Element
)
&&
(
V_VT
(
ret_val
)
!=
VT_UNKNOWN
))
{
IUIAutomationElement
*
out_elem
;
HUIANODE
node
;
hr
=
UiaHUiaNodeFromVariant
(
ret_val
,
&
node
);
VariantClear
(
ret_val
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
create_uia_element
(
&
out_elem
,
element
->
from_cui8
,
node
);
if
(
SUCCEEDED
(
hr
))
{
V_VT
(
ret_val
)
=
VT_UNKNOWN
;
V_UNKNOWN
(
ret_val
)
=
(
IUnknown
*
)
out_elem
;
}
}
return
hr
;
}
static
HRESULT
WINAPI
uia_element_GetCachedPropertyValue
(
IUIAutomationElement9
*
iface
,
PROPERTYID
prop_id
,
...
...
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