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
586cc5ee
Commit
586cc5ee
authored
Aug 01, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Aug 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.devices.enumeration: Implement IDeviceInformationStatics::CreateWatcherAqsFilter().
Needed by Lenovo Ready For Assistant.
parent
cf7048d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
main.c
dlls/windows.devices.enumeration/main.c
+17
-2
No files found.
dlls/windows.devices.enumeration/main.c
View file @
586cc5ee
...
...
@@ -31,6 +31,7 @@ struct device_watcher
LONG
ref
;
struct
list
stopped_handlers
;
HSTRING
filter
;
};
static
inline
struct
device_watcher
*
impl_from_IDeviceWatcher
(
IDeviceWatcher
*
iface
)
...
...
@@ -75,6 +76,7 @@ static ULONG WINAPI device_watcher_Release( IDeviceWatcher *iface )
if
(
!
ref
)
{
typed_event_handlers_clear
(
&
impl
->
stopped_handlers
);
WindowsDeleteString
(
impl
->
filter
);
free
(
impl
);
}
...
...
@@ -374,8 +376,20 @@ static HRESULT WINAPI device_statics_CreateWatcherDeviceClass( IDeviceInformatio
static
HRESULT
WINAPI
device_statics_CreateWatcherAqsFilter
(
IDeviceInformationStatics
*
iface
,
HSTRING
filter
,
IDeviceWatcher
**
watcher
)
{
FIXME
(
"iface %p, filter %s, watcher %p stub!
\n
"
,
iface
,
debugstr_hstring
(
filter
),
watcher
);
return
E_NOTIMPL
;
struct
device_watcher
*
this
;
TRACE
(
"iface %p, filter %s, watcher %p
\n
"
,
iface
,
debugstr_hstring
(
filter
),
watcher
);
if
(
!
(
this
=
calloc
(
1
,
sizeof
(
*
this
)
)))
return
E_OUTOFMEMORY
;
this
->
IDeviceWatcher_iface
.
lpVtbl
=
&
device_watcher_vtbl
;
this
->
ref
=
1
;
WindowsDuplicateString
(
filter
,
&
this
->
filter
);
list_init
(
&
this
->
stopped_handlers
);
*
watcher
=
&
this
->
IDeviceWatcher_iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
device_statics_CreateWatcherAqsFilterAndAdditionalProperties
(
IDeviceInformationStatics
*
iface
,
HSTRING
filter
,
...
...
@@ -448,6 +462,7 @@ static HRESULT WINAPI device_statics2_CreateWatcher( IDeviceInformationStatics2
this
->
IDeviceWatcher_iface
.
lpVtbl
=
&
device_watcher_vtbl
;
this
->
ref
=
1
;
WindowsDuplicateString
(
filter
,
&
this
->
filter
);
list_init
(
&
this
->
stopped_handlers
);
...
...
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