]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Devices/Enumeration/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Devices / Enumeration / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[cfg(feature = "Devices_Enumeration_Pnp")]
3 pub mod Pnp;
4 #[link(name = "windows")]
5 extern "system" {}
6 pub type DeviceAccessChangedEventArgs = *mut ::core::ffi::c_void;
7 pub type DeviceAccessInformation = *mut ::core::ffi::c_void;
8 #[repr(transparent)]
9 pub struct DeviceAccessStatus(pub i32);
10 impl DeviceAccessStatus {
11 pub const Unspecified: Self = Self(0i32);
12 pub const Allowed: Self = Self(1i32);
13 pub const DeniedByUser: Self = Self(2i32);
14 pub const DeniedBySystem: Self = Self(3i32);
15 }
16 impl ::core::marker::Copy for DeviceAccessStatus {}
17 impl ::core::clone::Clone for DeviceAccessStatus {
18 fn clone(&self) -> Self {
19 *self
20 }
21 }
22 #[repr(transparent)]
23 pub struct DeviceClass(pub i32);
24 impl DeviceClass {
25 pub const All: Self = Self(0i32);
26 pub const AudioCapture: Self = Self(1i32);
27 pub const AudioRender: Self = Self(2i32);
28 pub const PortableStorageDevice: Self = Self(3i32);
29 pub const VideoCapture: Self = Self(4i32);
30 pub const ImageScanner: Self = Self(5i32);
31 pub const Location: Self = Self(6i32);
32 }
33 impl ::core::marker::Copy for DeviceClass {}
34 impl ::core::clone::Clone for DeviceClass {
35 fn clone(&self) -> Self {
36 *self
37 }
38 }
39 pub type DeviceConnectionChangeTriggerDetails = *mut ::core::ffi::c_void;
40 pub type DeviceDisconnectButtonClickedEventArgs = *mut ::core::ffi::c_void;
41 pub type DeviceInformation = *mut ::core::ffi::c_void;
42 pub type DeviceInformationCollection = *mut ::core::ffi::c_void;
43 pub type DeviceInformationCustomPairing = *mut ::core::ffi::c_void;
44 #[repr(transparent)]
45 pub struct DeviceInformationKind(pub i32);
46 impl DeviceInformationKind {
47 pub const Unknown: Self = Self(0i32);
48 pub const DeviceInterface: Self = Self(1i32);
49 pub const DeviceContainer: Self = Self(2i32);
50 pub const Device: Self = Self(3i32);
51 pub const DeviceInterfaceClass: Self = Self(4i32);
52 pub const AssociationEndpoint: Self = Self(5i32);
53 pub const AssociationEndpointContainer: Self = Self(6i32);
54 pub const AssociationEndpointService: Self = Self(7i32);
55 pub const DevicePanel: Self = Self(8i32);
56 }
57 impl ::core::marker::Copy for DeviceInformationKind {}
58 impl ::core::clone::Clone for DeviceInformationKind {
59 fn clone(&self) -> Self {
60 *self
61 }
62 }
63 pub type DeviceInformationPairing = *mut ::core::ffi::c_void;
64 pub type DeviceInformationUpdate = *mut ::core::ffi::c_void;
65 #[repr(transparent)]
66 pub struct DevicePairingKinds(pub u32);
67 impl DevicePairingKinds {
68 pub const None: Self = Self(0u32);
69 pub const ConfirmOnly: Self = Self(1u32);
70 pub const DisplayPin: Self = Self(2u32);
71 pub const ProvidePin: Self = Self(4u32);
72 pub const ConfirmPinMatch: Self = Self(8u32);
73 pub const ProvidePasswordCredential: Self = Self(16u32);
74 }
75 impl ::core::marker::Copy for DevicePairingKinds {}
76 impl ::core::clone::Clone for DevicePairingKinds {
77 fn clone(&self) -> Self {
78 *self
79 }
80 }
81 #[repr(transparent)]
82 pub struct DevicePairingProtectionLevel(pub i32);
83 impl DevicePairingProtectionLevel {
84 pub const Default: Self = Self(0i32);
85 pub const None: Self = Self(1i32);
86 pub const Encryption: Self = Self(2i32);
87 pub const EncryptionAndAuthentication: Self = Self(3i32);
88 }
89 impl ::core::marker::Copy for DevicePairingProtectionLevel {}
90 impl ::core::clone::Clone for DevicePairingProtectionLevel {
91 fn clone(&self) -> Self {
92 *self
93 }
94 }
95 pub type DevicePairingRequestedEventArgs = *mut ::core::ffi::c_void;
96 pub type DevicePairingResult = *mut ::core::ffi::c_void;
97 #[repr(transparent)]
98 pub struct DevicePairingResultStatus(pub i32);
99 impl DevicePairingResultStatus {
100 pub const Paired: Self = Self(0i32);
101 pub const NotReadyToPair: Self = Self(1i32);
102 pub const NotPaired: Self = Self(2i32);
103 pub const AlreadyPaired: Self = Self(3i32);
104 pub const ConnectionRejected: Self = Self(4i32);
105 pub const TooManyConnections: Self = Self(5i32);
106 pub const HardwareFailure: Self = Self(6i32);
107 pub const AuthenticationTimeout: Self = Self(7i32);
108 pub const AuthenticationNotAllowed: Self = Self(8i32);
109 pub const AuthenticationFailure: Self = Self(9i32);
110 pub const NoSupportedProfiles: Self = Self(10i32);
111 pub const ProtectionLevelCouldNotBeMet: Self = Self(11i32);
112 pub const AccessDenied: Self = Self(12i32);
113 pub const InvalidCeremonyData: Self = Self(13i32);
114 pub const PairingCanceled: Self = Self(14i32);
115 pub const OperationAlreadyInProgress: Self = Self(15i32);
116 pub const RequiredHandlerNotRegistered: Self = Self(16i32);
117 pub const RejectedByHandler: Self = Self(17i32);
118 pub const RemoteDeviceHasAssociation: Self = Self(18i32);
119 pub const Failed: Self = Self(19i32);
120 }
121 impl ::core::marker::Copy for DevicePairingResultStatus {}
122 impl ::core::clone::Clone for DevicePairingResultStatus {
123 fn clone(&self) -> Self {
124 *self
125 }
126 }
127 pub type DevicePicker = *mut ::core::ffi::c_void;
128 pub type DevicePickerAppearance = *mut ::core::ffi::c_void;
129 #[repr(transparent)]
130 pub struct DevicePickerDisplayStatusOptions(pub u32);
131 impl DevicePickerDisplayStatusOptions {
132 pub const None: Self = Self(0u32);
133 pub const ShowProgress: Self = Self(1u32);
134 pub const ShowDisconnectButton: Self = Self(2u32);
135 pub const ShowRetryButton: Self = Self(4u32);
136 }
137 impl ::core::marker::Copy for DevicePickerDisplayStatusOptions {}
138 impl ::core::clone::Clone for DevicePickerDisplayStatusOptions {
139 fn clone(&self) -> Self {
140 *self
141 }
142 }
143 pub type DevicePickerFilter = *mut ::core::ffi::c_void;
144 pub type DeviceSelectedEventArgs = *mut ::core::ffi::c_void;
145 pub type DeviceThumbnail = *mut ::core::ffi::c_void;
146 pub type DeviceUnpairingResult = *mut ::core::ffi::c_void;
147 #[repr(transparent)]
148 pub struct DeviceUnpairingResultStatus(pub i32);
149 impl DeviceUnpairingResultStatus {
150 pub const Unpaired: Self = Self(0i32);
151 pub const AlreadyUnpaired: Self = Self(1i32);
152 pub const OperationAlreadyInProgress: Self = Self(2i32);
153 pub const AccessDenied: Self = Self(3i32);
154 pub const Failed: Self = Self(4i32);
155 }
156 impl ::core::marker::Copy for DeviceUnpairingResultStatus {}
157 impl ::core::clone::Clone for DeviceUnpairingResultStatus {
158 fn clone(&self) -> Self {
159 *self
160 }
161 }
162 pub type DeviceWatcher = *mut ::core::ffi::c_void;
163 pub type DeviceWatcherEvent = *mut ::core::ffi::c_void;
164 #[repr(transparent)]
165 pub struct DeviceWatcherEventKind(pub i32);
166 impl DeviceWatcherEventKind {
167 pub const Add: Self = Self(0i32);
168 pub const Update: Self = Self(1i32);
169 pub const Remove: Self = Self(2i32);
170 }
171 impl ::core::marker::Copy for DeviceWatcherEventKind {}
172 impl ::core::clone::Clone for DeviceWatcherEventKind {
173 fn clone(&self) -> Self {
174 *self
175 }
176 }
177 #[repr(transparent)]
178 pub struct DeviceWatcherStatus(pub i32);
179 impl DeviceWatcherStatus {
180 pub const Created: Self = Self(0i32);
181 pub const Started: Self = Self(1i32);
182 pub const EnumerationCompleted: Self = Self(2i32);
183 pub const Stopping: Self = Self(3i32);
184 pub const Stopped: Self = Self(4i32);
185 pub const Aborted: Self = Self(5i32);
186 }
187 impl ::core::marker::Copy for DeviceWatcherStatus {}
188 impl ::core::clone::Clone for DeviceWatcherStatus {
189 fn clone(&self) -> Self {
190 *self
191 }
192 }
193 pub type DeviceWatcherTriggerDetails = *mut ::core::ffi::c_void;
194 pub type EnclosureLocation = *mut ::core::ffi::c_void;
195 pub type IDevicePairingSettings = *mut ::core::ffi::c_void;
196 #[repr(transparent)]
197 pub struct Panel(pub i32);
198 impl Panel {
199 pub const Unknown: Self = Self(0i32);
200 pub const Front: Self = Self(1i32);
201 pub const Back: Self = Self(2i32);
202 pub const Top: Self = Self(3i32);
203 pub const Bottom: Self = Self(4i32);
204 pub const Left: Self = Self(5i32);
205 pub const Right: Self = Self(6i32);
206 }
207 impl ::core::marker::Copy for Panel {}
208 impl ::core::clone::Clone for Panel {
209 fn clone(&self) -> Self {
210 *self
211 }
212 }