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
51e1c706
Commit
51e1c706
authored
Oct 12, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Oct 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/windows.devices.enumeration: Define DeviceAccessInformation class.
parent
fd125d4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
0 deletions
+80
-0
windows.devices.enumeration.idl
include/windows.devices.enumeration.idl
+80
-0
No files found.
include/windows.devices.enumeration.idl
View file @
51e1c706
...
...
@@ -32,6 +32,7 @@ namespace Windows.Devices.Enumeration {
typedef
enum
DeviceInformationKind
DeviceInformationKind
;
typedef
enum
DeviceWatcherStatus
DeviceWatcherStatus
;
typedef
enum
Panel
Panel
;
typedef
enum
DeviceAccessStatus
DeviceAccessStatus
;
interface
IDeviceInformation
;
interface
IDeviceInformationStatics
;
...
...
@@ -45,6 +46,8 @@ namespace Windows.Devices.Enumeration {
runtimeclass
DeviceThumbnail
;
runtimeclass
DeviceWatcher
;
runtimeclass
EnclosureLocation
;
runtimeclass
DeviceAccessChangedEventArgs
;
runtimeclass
DeviceAccessInformation
;
declare
{
...
...
@@ -61,6 +64,7 @@ namespace Windows.Devices.Enumeration {
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
*
>
;
interface
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceAccessInformation
*
,
Windows
.
Devices.Enumeration.DeviceAccessChangedEventArgs
*
>
;
}
}
...
...
@@ -115,6 +119,15 @@ namespace Windows.Devices.Enumeration {
Right
=
6
,
}
;
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
)
]
enum
DeviceAccessStatus
{
Unspecified
=
0
,
Allowed
=
1
,
DeniedByUser
=
2
,
DeniedBySystem
=
3
,
}
;
[
exclusiveto
(
Windows
.
Devices.Enumeration.DeviceInformation)
,
uuid
(
aba0fb95
-
4398
-489d-8
e44
-
e6130927011f
)
...
...
@@ -206,6 +219,51 @@ namespace Windows.Devices.Enumeration {
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
exclusiveto
(
Windows
.
Devices.Enumeration.DeviceAccessChangedEventArgs)
,
uuid
(
deda0bcc
-
4
f9d
-
4
f58
-
9
dba
-
a9bc800408d5
)
]
interface
IDeviceAccessChangedEventArgs
:
IInspectable
{
[
propget
]
HRESULT
Status
(
[
out
,
retval
]
Windows
.
Devices.Enumeration.DeviceAccessStatus
*
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
),
exclusiveto
(
Windows
.
Devices.Enumeration.DeviceAccessChangedEventArgs)
,
uuid
(
82523262
-
934b
-
4b30
-
a178
-
adc39f2f2be3
)
]
interface
IDeviceAccessChangedEventArgs2
:
IInspectable
requires
Windows
.
Devices.Enumeration.IDeviceAccessChangedEventArgs
{
[
propget
]
HRESULT
Id
(
[
out
,
retval
]
HSTRING
*
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
exclusiveto
(
Windows
.
Devices.Enumeration.DeviceAccessInformation)
,
uuid
(
0b
aa9a73
-
6
de5
-
4915
-
8
ddd
-
9
a0554a6f545
)
]
interface
IDeviceAccessInformation
:
IInspectable
{
[
eventadd
]
HRESULT
AccessChanged
(
[
in
]
Windows
.
Foundation.TypedEventHandler<Windows.Devices.Enumeration.DeviceAccessInformation
*
,
Windows
.
Devices.Enumeration.DeviceAccessChangedEventArgs
*
>
*
handler
,
[
out
,
retval
]
EventRegistrationToken
*
cookie
)
;
[
eventremove
]
HRESULT
AccessChanged
(
[
in
]
EventRegistrationToken
cookie
)
;
[
propget
]
HRESULT
CurrentStatus
(
[
out
,
retval
]
Windows
.
Devices.Enumeration.DeviceAccessStatus
*
status
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
exclusiveto
(
Windows
.
Devices.Enumeration.DeviceAccessInformation)
,
uuid
(
574b
d3d3
-
5
f30
-
45
cd
-
8
a94
-
724
fe5973084
),
]
interface
IDeviceAccessInformationStatics
:
IInspectable
{
HRESULT
CreateFromId
(
[
in
]
HSTRING
device_id
,
[
out
,
retval
]
Windows
.
Devices.Enumeration.DeviceAccessInformation
**
value
)
;
HRESULT
CreateFromDeviceClassId
(
[
in
]
GUID
device_class_id
,
[
out
,
retval
]
Windows
.
Devices.Enumeration.DeviceAccessInformation
**
value
)
;
HRESULT
CreateFromDeviceClass
(
[
in
]
Windows
.
Devices.Enumeration.DeviceClass
device_class
,
[
out
,
retval
]
Windows
.
Devices.Enumeration.DeviceAccessInformation
**
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
),
static
(
Windows
.
Devices.Enumeration.IDeviceInformationStatics
,
Windows
.
Foundation.UniversalApiContract
,
1.0
),
static
(
Windows
.
Devices.Enumeration.IDeviceInformationStatics2
,
Windows
.
Foundation.UniversalApiContract
,
1.0
),
...
...
@@ -265,4 +323,26 @@ namespace Windows.Devices.Enumeration {
{
[
default
]
interface
Windows
.
Devices.Enumeration.IEnclosureLocation;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
)
]
runtimeclass
DeviceAccessChangedEventArgs
{
[
default
]
interface
Windows
.
Devices.Enumeration.IDeviceAccessChangedEventArgs;
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
)
]
interface
Windows
.
Devices.Enumeration.IDeviceAccessChangedEventArgs2;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
),
static
(
Windows
.
Devices.Enumeration.IDeviceAccessInformationStatics
,
Windows
.
Foundation.UniversalApiContract
,
1.0
),
threading
(
both
)
]
runtimeclass
DeviceAccessInformation
{
[
default
]
interface
Windows
.
Devices.Enumeration.IDeviceAccessInformation;
}
}
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