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
d0ec6366
Commit
d0ec6366
authored
Mar 10, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.perception.stub: Add IHolographicSpaceStatics3 stub interface.
parent
0f018523
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
holographicspace.c
dlls/windows.perception.stub/holographicspace.c
+30
-0
perception.c
dlls/windows.perception.stub/tests/perception.c
+13
-0
No files found.
dlls/windows.perception.stub/holographicspace.c
View file @
d0ec6366
...
...
@@ -26,6 +26,7 @@ struct holographicspace
{
IActivationFactory
IActivationFactory_iface
;
IHolographicSpaceStatics2
IHolographicSpaceStatics2_iface
;
IHolographicSpaceStatics3
IHolographicSpaceStatics3_iface
;
LONG
ref
;
};
...
...
@@ -57,6 +58,13 @@ static HRESULT WINAPI factory_QueryInterface( IActivationFactory *iface, REFIID
return
S_OK
;
}
if
(
IsEqualGUID
(
iid
,
&
IID_IHolographicSpaceStatics3
))
{
*
out
=
&
impl
->
IHolographicSpaceStatics3_iface
;
IInspectable_AddRef
(
*
out
);
return
S_OK
;
}
FIXME
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
iid
)
);
*
out
=
NULL
;
return
E_NOINTERFACE
;
...
...
@@ -162,10 +170,32 @@ static const struct IHolographicSpaceStatics2Vtbl holographicspace_statics2_vtbl
holographicspace_statics2_remove_IsAvailableChanged
,
};
DEFINE_IINSPECTABLE
(
holographicspace_statics3
,
IHolographicSpaceStatics3
,
struct
holographicspace
,
IActivationFactory_iface
)
static
HRESULT
WINAPI
holographicspace_statics3_get_IsConfigured
(
IHolographicSpaceStatics3
*
iface
,
boolean
*
value
)
{
FIXME
(
"iface %p, value %p stub!
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
}
static
const
struct
IHolographicSpaceStatics3Vtbl
holographicspace_statics3_vtbl
=
{
holographicspace_statics3_QueryInterface
,
holographicspace_statics3_AddRef
,
holographicspace_statics3_Release
,
/* IInspectable methods */
holographicspace_statics3_GetIids
,
holographicspace_statics3_GetRuntimeClassName
,
holographicspace_statics3_GetTrustLevel
,
/* IHolographicSpaceStatics3 methods */
holographicspace_statics3_get_IsConfigured
,
};
static
struct
holographicspace
holographicspace_statics
=
{
{
&
factory_vtbl
},
{
&
holographicspace_statics2_vtbl
},
{
&
holographicspace_statics3_vtbl
},
1
,
};
...
...
dlls/windows.perception.stub/tests/perception.c
View file @
d0ec6366
...
...
@@ -99,6 +99,7 @@ static void test_HolographicSpaceStatics(void)
{
static
const
WCHAR
*
holographicspace_statics_name
=
L"Windows.Graphics.Holographic.HolographicSpace"
;
IHolographicSpaceStatics2
*
holographicspace_statics2
;
IHolographicSpaceStatics3
*
holographicspace_statics3
;
IActivationFactory
*
factory
;
BOOLEAN
value
;
HSTRING
str
;
...
...
@@ -142,6 +143,18 @@ static void test_HolographicSpaceStatics(void)
ref
=
IHolographicSpaceStatics2_Release
(
holographicspace_statics2
);
ok
(
ref
==
2
,
"got ref %ld.
\n
"
,
ref
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IHolographicSpaceStatics3
,
(
void
**
)
&
holographicspace_statics3
);
if
(
hr
==
E_NOINTERFACE
)
/* win1703 */
{
win_skip
(
"IHolographicSpaceStatics3 is not supported, skipping tests.
\n
"
);
goto
done
;
}
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ref
=
IHolographicSpaceStatics3_Release
(
holographicspace_statics3
);
ok
(
ref
==
2
,
"got ref %ld.
\n
"
,
ref
);
done:
ref
=
IActivationFactory_Release
(
factory
);
ok
(
ref
==
1
,
"got ref %ld.
\n
"
,
ref
);
...
...
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