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
489cdd19
Commit
489cdd19
authored
Oct 29, 2021
by
Jactry Zeng
Committed by
Alexandre Julliard
Nov 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add IDeviceWatcher interface.
Signed-off-by:
Jactry Zeng
<
jzeng@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dc65dfe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
windows.devices.enumeration.idl
include/windows.devices.enumeration.idl
+50
-0
No files found.
include/windows.devices.enumeration.idl
View file @
489cdd19
...
...
@@ -30,6 +30,7 @@ import "windows.foundation.idl";
namespace
Windows
{
namespace
Devices
{
namespace
Enumeration
{
typedef
enum
DeviceWatcherStatus
DeviceWatcherStatus
;
typedef
enum
Panel
Panel
;
interface
IDeviceInformation
;
...
...
@@ -41,6 +42,7 @@ namespace Windows {
runtimeclass
DeviceInformation
;
runtimeclass
DeviceInformationUpdate
;
runtimeclass
DeviceThumbnail
;
runtimeclass
DeviceWatcher
;
runtimeclass
EnclosureLocation
;
}
}
...
...
@@ -59,6 +61,9 @@ namespace Windows
interface
Windows
.
Foundation.Collections.IMapView<HSTRING
,
IInspectable
*
>
;
interface
Windows
.
Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformation
*
>
;
interface
Windows
.
Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceThumbnail
*
>
;
interface
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceWatcher
*
,
IInspectable
*
>
;
interface
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceWatcher
*
,
Windows
.
Devices.Enumeration.DeviceInformation
*
>
;
interface
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceWatcher
*
,
Windows
.
Devices.Enumeration.DeviceInformationUpdate
*
>
;
}
}
}
...
...
@@ -82,6 +87,16 @@ namespace Windows
namespace
Windows
{
namespace
Devices
{
namespace
Enumeration
{
enum
DeviceWatcherStatus
{
Created
=
0
,
Started
=
1
,
EnumerationCompleted
=
2
,
Stopping
=
3
,
Stopped
=
4
,
Aborted
=
5
}
;
enum
Panel
{
Unknown
=
0
,
...
...
@@ -121,6 +136,32 @@ namespace Windows {
}
[
exclusiveto
(
Windows
.
Devices.Enumeration.DeviceWatcher)
,
uuid
(
c9eab97d
-
8
f6b
-
4
f96
-
a9f4
-
abc814e22271
),
]
interface
IDeviceWatcher
:
IInspectable
{
[
eventadd
]
HRESULT
Added
(
[
in
]
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceWatcher*
,
Windows
.
Devices.Enumeration.DeviceInformation
*
>
*
handler
,
[
out
,
retval
]
EventRegistrationToken
*
token
)
;
[
eventremove
]
HRESULT
Added
(
[
in
]
EventRegistrationToken
token
)
;
[
eventadd
]
HRESULT
Updated
(
[
in
]
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceWatcher
*
,
Windows
.
Devices.Enumeration.DeviceInformationUpdate
*
>
*
handler
,
[
out
,
retval
]
EventRegistrationToken
*
token
)
;
[
eventremove
]
HRESULT
Updated
(
[
in
]
EventRegistrationToken
token
)
;
[
eventadd
]
HRESULT
Removed
(
[
in
]
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceWatcher
*
,
Windows
.
Devices.Enumeration.DeviceInformationUpdate
*
>
*
handler
,
[
out
,
retval
]
EventRegistrationToken
*
token
)
;
[
eventremove
]
HRESULT
Removed
(
[
in
]
EventRegistrationToken
token
)
;
[
eventadd
]
HRESULT
EnumerationCompleted
(
[
in
]
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceWatcher
*
,
IInspectable
*
>
*
handler
,
[
out
,
retval
]
EventRegistrationToken
*
token
)
;
[
eventremove
]
HRESULT
EnumerationCompleted
(
[
in
]
EventRegistrationToken
token
)
;
[
eventadd
]
HRESULT
Stopped
(
[
in
]
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceWatcher
*
,
IInspectable
*
>
*
handler
,
[
out
,
retval
]
EventRegistrationToken
*
token
)
;
[
eventremove
]
HRESULT
Stopped
(
[
in
]
EventRegistrationToken
token
)
;
[
propget
]
HRESULT
Status
(
[
out
,
retval
]
Windows
.
Devices.Enumeration.DeviceWatcherStatus
*
status
)
;
HRESULT
Start
()
;
HRESULT
Stop
()
;
}
[
exclusiveto
(
Windows
.
Devices.Enumeration.EnclosureLocation)
,
uuid
(
42340
a27
-
5810
-
459
c
-
aabb
-
c65e1f813ecf
)
]
...
...
@@ -167,6 +208,15 @@ namespace Windows {
}
[
marshaling_behavior
(
agile
),
]
runtimeclass
DeviceWatcher
{
[
default
]
interface
Windows
.
Devices.Enumeration.IDeviceWatcher;
interface
Windows
.
Devices.Enumeration.IDeviceWatcher2;
}
[
marshaling_behavior
(
agile
)
]
runtimeclass
EnclosureLocation
...
...
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