]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"implement\"`*"] |
2 | pub trait IDot11AdHocInterface_Impl: Sized { | |
3 | fn GetDeviceSignature(&self, psignature: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; | |
4 | fn GetFriendlyName(&self) -> ::windows::core::Result<::windows::core::PWSTR>; | |
5 | fn IsDot11d(&self, pf11d: *mut u8) -> ::windows::core::Result<()>; | |
6 | fn IsAdHocCapable(&self, pfadhoccapable: *mut u8) -> ::windows::core::Result<()>; | |
7 | fn IsRadioOn(&self, pfisradioon: *mut u8) -> ::windows::core::Result<()>; | |
8 | fn GetActiveNetwork(&self) -> ::windows::core::Result<IDot11AdHocNetwork>; | |
9 | fn GetIEnumSecuritySettings(&self) -> ::windows::core::Result<IEnumDot11AdHocSecuritySettings>; | |
10 | fn GetIEnumDot11AdHocNetworks(&self, pfilterguid: *const ::windows::core::GUID) -> ::windows::core::Result<IEnumDot11AdHocNetworks>; | |
11 | fn GetStatus(&self, pstate: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows::core::Result<()>; | |
12 | } | |
13 | impl ::windows::core::RuntimeName for IDot11AdHocInterface {} | |
14 | impl IDot11AdHocInterface_Vtbl { | |
15 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>() -> IDot11AdHocInterface_Vtbl { | |
16 | unsafe extern "system" fn GetDeviceSignature<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psignature: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { | |
17 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
18 | let this = (*this).get_impl(); | |
19 | this.GetDeviceSignature(::core::mem::transmute_copy(&psignature)).into() | |
20 | } | |
21 | unsafe extern "system" fn GetFriendlyName<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszname: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { | |
22 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
23 | let this = (*this).get_impl(); | |
24 | match this.GetFriendlyName() { | |
25 | ::core::result::Result::Ok(ok__) => { | |
26 | ::core::ptr::write(ppszname, ::core::mem::transmute(ok__)); | |
27 | ::windows::core::HRESULT(0) | |
28 | } | |
29 | ::core::result::Result::Err(err) => err.into(), | |
30 | } | |
31 | } | |
32 | unsafe extern "system" fn IsDot11d<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pf11d: *mut u8) -> ::windows::core::HRESULT { | |
33 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
34 | let this = (*this).get_impl(); | |
35 | this.IsDot11d(::core::mem::transmute_copy(&pf11d)).into() | |
36 | } | |
37 | unsafe extern "system" fn IsAdHocCapable<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfadhoccapable: *mut u8) -> ::windows::core::HRESULT { | |
38 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
39 | let this = (*this).get_impl(); | |
40 | this.IsAdHocCapable(::core::mem::transmute_copy(&pfadhoccapable)).into() | |
41 | } | |
42 | unsafe extern "system" fn IsRadioOn<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfisradioon: *mut u8) -> ::windows::core::HRESULT { | |
43 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
44 | let this = (*this).get_impl(); | |
45 | this.IsRadioOn(::core::mem::transmute_copy(&pfisradioon)).into() | |
46 | } | |
47 | unsafe extern "system" fn GetActiveNetwork<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppnetwork: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
48 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
49 | let this = (*this).get_impl(); | |
50 | match this.GetActiveNetwork() { | |
51 | ::core::result::Result::Ok(ok__) => { | |
52 | ::core::ptr::write(ppnetwork, ::core::mem::transmute(ok__)); | |
53 | ::windows::core::HRESULT(0) | |
54 | } | |
55 | ::core::result::Result::Err(err) => err.into(), | |
56 | } | |
57 | } | |
58 | unsafe extern "system" fn GetIEnumSecuritySettings<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
59 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
60 | let this = (*this).get_impl(); | |
61 | match this.GetIEnumSecuritySettings() { | |
62 | ::core::result::Result::Ok(ok__) => { | |
63 | ::core::ptr::write(ppenum, ::core::mem::transmute(ok__)); | |
64 | ::windows::core::HRESULT(0) | |
65 | } | |
66 | ::core::result::Result::Err(err) => err.into(), | |
67 | } | |
68 | } | |
69 | unsafe extern "system" fn GetIEnumDot11AdHocNetworks<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfilterguid: *const ::windows::core::GUID, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
70 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
71 | let this = (*this).get_impl(); | |
72 | match this.GetIEnumDot11AdHocNetworks(::core::mem::transmute_copy(&pfilterguid)) { | |
73 | ::core::result::Result::Ok(ok__) => { | |
74 | ::core::ptr::write(ppenum, ::core::mem::transmute(ok__)); | |
75 | ::windows::core::HRESULT(0) | |
76 | } | |
77 | ::core::result::Result::Err(err) => err.into(), | |
78 | } | |
79 | } | |
80 | unsafe extern "system" fn GetStatus<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstate: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows::core::HRESULT { | |
81 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
82 | let this = (*this).get_impl(); | |
83 | this.GetStatus(::core::mem::transmute_copy(&pstate)).into() | |
84 | } | |
85 | Self { | |
86 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
87 | GetDeviceSignature: GetDeviceSignature::<Identity, Impl, OFFSET>, | |
88 | GetFriendlyName: GetFriendlyName::<Identity, Impl, OFFSET>, | |
89 | IsDot11d: IsDot11d::<Identity, Impl, OFFSET>, | |
90 | IsAdHocCapable: IsAdHocCapable::<Identity, Impl, OFFSET>, | |
91 | IsRadioOn: IsRadioOn::<Identity, Impl, OFFSET>, | |
92 | GetActiveNetwork: GetActiveNetwork::<Identity, Impl, OFFSET>, | |
93 | GetIEnumSecuritySettings: GetIEnumSecuritySettings::<Identity, Impl, OFFSET>, | |
94 | GetIEnumDot11AdHocNetworks: GetIEnumDot11AdHocNetworks::<Identity, Impl, OFFSET>, | |
95 | GetStatus: GetStatus::<Identity, Impl, OFFSET>, | |
96 | } | |
97 | } | |
98 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
99 | iid == &<IDot11AdHocInterface as ::windows::core::ComInterface>::IID | |
100 | } | |
101 | } | |
102 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"implement\"`*"] | |
103 | pub trait IDot11AdHocInterfaceNotificationSink_Impl: Sized { | |
104 | fn OnConnectionStatusChange(&self, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows::core::Result<()>; | |
105 | } | |
106 | impl ::windows::core::RuntimeName for IDot11AdHocInterfaceNotificationSink {} | |
107 | impl IDot11AdHocInterfaceNotificationSink_Vtbl { | |
108 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterfaceNotificationSink_Impl, const OFFSET: isize>() -> IDot11AdHocInterfaceNotificationSink_Vtbl { | |
109 | unsafe extern "system" fn OnConnectionStatusChange<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocInterfaceNotificationSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows::core::HRESULT { | |
110 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
111 | let this = (*this).get_impl(); | |
112 | this.OnConnectionStatusChange(::core::mem::transmute_copy(&estatus)).into() | |
113 | } | |
114 | Self { base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), OnConnectionStatusChange: OnConnectionStatusChange::<Identity, Impl, OFFSET> } | |
115 | } | |
116 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
117 | iid == &<IDot11AdHocInterfaceNotificationSink as ::windows::core::ComInterface>::IID | |
118 | } | |
119 | } | |
120 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] | |
121 | #[cfg(feature = "Win32_Foundation")] | |
122 | pub trait IDot11AdHocManager_Impl: Sized { | |
123 | fn CreateNetwork(&self, name: &::windows::core::PCWSTR, password: &::windows::core::PCWSTR, geographicalid: i32, pinterface: ::core::option::Option<&IDot11AdHocInterface>, psecurity: ::core::option::Option<&IDot11AdHocSecuritySettings>, pcontextguid: *const ::windows::core::GUID) -> ::windows::core::Result<IDot11AdHocNetwork>; | |
124 | fn CommitCreatedNetwork(&self, piadhoc: ::core::option::Option<&IDot11AdHocNetwork>, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> ::windows::core::Result<()>; | |
125 | fn GetIEnumDot11AdHocNetworks(&self, pcontextguid: *const ::windows::core::GUID) -> ::windows::core::Result<IEnumDot11AdHocNetworks>; | |
126 | fn GetIEnumDot11AdHocInterfaces(&self) -> ::windows::core::Result<IEnumDot11AdHocInterfaces>; | |
127 | fn GetNetwork(&self, networksignature: *const ::windows::core::GUID) -> ::windows::core::Result<IDot11AdHocNetwork>; | |
128 | } | |
129 | #[cfg(feature = "Win32_Foundation")] | |
130 | impl ::windows::core::RuntimeName for IDot11AdHocManager {} | |
131 | #[cfg(feature = "Win32_Foundation")] | |
132 | impl IDot11AdHocManager_Vtbl { | |
133 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManager_Impl, const OFFSET: isize>() -> IDot11AdHocManager_Vtbl { | |
134 | unsafe extern "system" fn CreateNetwork<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::windows::core::PCWSTR, password: ::windows::core::PCWSTR, geographicalid: i32, pinterface: *mut ::core::ffi::c_void, psecurity: *mut ::core::ffi::c_void, pcontextguid: *const ::windows::core::GUID, piadhoc: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
135 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
136 | let this = (*this).get_impl(); | |
137 | match this.CreateNetwork(::core::mem::transmute(&name), ::core::mem::transmute(&password), ::core::mem::transmute_copy(&geographicalid), ::windows::core::from_raw_borrowed(&pinterface), ::windows::core::from_raw_borrowed(&psecurity), ::core::mem::transmute_copy(&pcontextguid)) { | |
138 | ::core::result::Result::Ok(ok__) => { | |
139 | ::core::ptr::write(piadhoc, ::core::mem::transmute(ok__)); | |
140 | ::windows::core::HRESULT(0) | |
141 | } | |
142 | ::core::result::Result::Err(err) => err.into(), | |
143 | } | |
144 | } | |
145 | unsafe extern "system" fn CommitCreatedNetwork<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, piadhoc: *mut ::core::ffi::c_void, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> ::windows::core::HRESULT { | |
146 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
147 | let this = (*this).get_impl(); | |
148 | this.CommitCreatedNetwork(::windows::core::from_raw_borrowed(&piadhoc), ::core::mem::transmute_copy(&fsaveprofile), ::core::mem::transmute_copy(&fmakesavedprofileuserspecific)).into() | |
149 | } | |
150 | unsafe extern "system" fn GetIEnumDot11AdHocNetworks<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontextguid: *const ::windows::core::GUID, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
151 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
152 | let this = (*this).get_impl(); | |
153 | match this.GetIEnumDot11AdHocNetworks(::core::mem::transmute_copy(&pcontextguid)) { | |
154 | ::core::result::Result::Ok(ok__) => { | |
155 | ::core::ptr::write(ppenum, ::core::mem::transmute(ok__)); | |
156 | ::windows::core::HRESULT(0) | |
157 | } | |
158 | ::core::result::Result::Err(err) => err.into(), | |
159 | } | |
160 | } | |
161 | unsafe extern "system" fn GetIEnumDot11AdHocInterfaces<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
162 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
163 | let this = (*this).get_impl(); | |
164 | match this.GetIEnumDot11AdHocInterfaces() { | |
165 | ::core::result::Result::Ok(ok__) => { | |
166 | ::core::ptr::write(ppenum, ::core::mem::transmute(ok__)); | |
167 | ::windows::core::HRESULT(0) | |
168 | } | |
169 | ::core::result::Result::Err(err) => err.into(), | |
170 | } | |
171 | } | |
172 | unsafe extern "system" fn GetNetwork<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, networksignature: *const ::windows::core::GUID, pnetwork: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
173 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
174 | let this = (*this).get_impl(); | |
175 | match this.GetNetwork(::core::mem::transmute_copy(&networksignature)) { | |
176 | ::core::result::Result::Ok(ok__) => { | |
177 | ::core::ptr::write(pnetwork, ::core::mem::transmute(ok__)); | |
178 | ::windows::core::HRESULT(0) | |
179 | } | |
180 | ::core::result::Result::Err(err) => err.into(), | |
181 | } | |
182 | } | |
183 | Self { | |
184 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
185 | CreateNetwork: CreateNetwork::<Identity, Impl, OFFSET>, | |
186 | CommitCreatedNetwork: CommitCreatedNetwork::<Identity, Impl, OFFSET>, | |
187 | GetIEnumDot11AdHocNetworks: GetIEnumDot11AdHocNetworks::<Identity, Impl, OFFSET>, | |
188 | GetIEnumDot11AdHocInterfaces: GetIEnumDot11AdHocInterfaces::<Identity, Impl, OFFSET>, | |
189 | GetNetwork: GetNetwork::<Identity, Impl, OFFSET>, | |
190 | } | |
191 | } | |
192 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
193 | iid == &<IDot11AdHocManager as ::windows::core::ComInterface>::IID | |
194 | } | |
195 | } | |
196 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"implement\"`*"] | |
197 | pub trait IDot11AdHocManagerNotificationSink_Impl: Sized { | |
198 | fn OnNetworkAdd(&self, piadhocnetwork: ::core::option::Option<&IDot11AdHocNetwork>) -> ::windows::core::Result<()>; | |
199 | fn OnNetworkRemove(&self, signature: *const ::windows::core::GUID) -> ::windows::core::Result<()>; | |
200 | fn OnInterfaceAdd(&self, piadhocinterface: ::core::option::Option<&IDot11AdHocInterface>) -> ::windows::core::Result<()>; | |
201 | fn OnInterfaceRemove(&self, signature: *const ::windows::core::GUID) -> ::windows::core::Result<()>; | |
202 | } | |
203 | impl ::windows::core::RuntimeName for IDot11AdHocManagerNotificationSink {} | |
204 | impl IDot11AdHocManagerNotificationSink_Vtbl { | |
205 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManagerNotificationSink_Impl, const OFFSET: isize>() -> IDot11AdHocManagerNotificationSink_Vtbl { | |
206 | unsafe extern "system" fn OnNetworkAdd<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManagerNotificationSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, piadhocnetwork: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
207 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
208 | let this = (*this).get_impl(); | |
209 | this.OnNetworkAdd(::windows::core::from_raw_borrowed(&piadhocnetwork)).into() | |
210 | } | |
211 | unsafe extern "system" fn OnNetworkRemove<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManagerNotificationSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, signature: *const ::windows::core::GUID) -> ::windows::core::HRESULT { | |
212 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
213 | let this = (*this).get_impl(); | |
214 | this.OnNetworkRemove(::core::mem::transmute_copy(&signature)).into() | |
215 | } | |
216 | unsafe extern "system" fn OnInterfaceAdd<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManagerNotificationSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, piadhocinterface: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
217 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
218 | let this = (*this).get_impl(); | |
219 | this.OnInterfaceAdd(::windows::core::from_raw_borrowed(&piadhocinterface)).into() | |
220 | } | |
221 | unsafe extern "system" fn OnInterfaceRemove<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocManagerNotificationSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, signature: *const ::windows::core::GUID) -> ::windows::core::HRESULT { | |
222 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
223 | let this = (*this).get_impl(); | |
224 | this.OnInterfaceRemove(::core::mem::transmute_copy(&signature)).into() | |
225 | } | |
226 | Self { | |
227 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
228 | OnNetworkAdd: OnNetworkAdd::<Identity, Impl, OFFSET>, | |
229 | OnNetworkRemove: OnNetworkRemove::<Identity, Impl, OFFSET>, | |
230 | OnInterfaceAdd: OnInterfaceAdd::<Identity, Impl, OFFSET>, | |
231 | OnInterfaceRemove: OnInterfaceRemove::<Identity, Impl, OFFSET>, | |
232 | } | |
233 | } | |
234 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
235 | iid == &<IDot11AdHocManagerNotificationSink as ::windows::core::ComInterface>::IID | |
236 | } | |
237 | } | |
238 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] | |
239 | #[cfg(feature = "Win32_Foundation")] | |
240 | pub trait IDot11AdHocNetwork_Impl: Sized { | |
241 | fn GetStatus(&self, estatus: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows::core::Result<()>; | |
242 | fn GetSSID(&self) -> ::windows::core::Result<::windows::core::PWSTR>; | |
243 | fn HasProfile(&self, pf11d: *mut u8) -> ::windows::core::Result<()>; | |
244 | fn GetProfileName(&self) -> ::windows::core::Result<::windows::core::PWSTR>; | |
245 | fn DeleteProfile(&self) -> ::windows::core::Result<()>; | |
246 | fn GetSignalQuality(&self, pustrengthvalue: *mut u32, pustrengthmax: *mut u32) -> ::windows::core::Result<()>; | |
247 | fn GetSecuritySetting(&self) -> ::windows::core::Result<IDot11AdHocSecuritySettings>; | |
248 | fn GetContextGuid(&self, pcontextguid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; | |
249 | fn GetSignature(&self, psignature: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; | |
250 | fn GetInterface(&self) -> ::windows::core::Result<IDot11AdHocInterface>; | |
251 | fn Connect(&self, passphrase: &::windows::core::PCWSTR, geographicalid: i32, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> ::windows::core::Result<()>; | |
252 | fn Disconnect(&self) -> ::windows::core::Result<()>; | |
253 | } | |
254 | #[cfg(feature = "Win32_Foundation")] | |
255 | impl ::windows::core::RuntimeName for IDot11AdHocNetwork {} | |
256 | #[cfg(feature = "Win32_Foundation")] | |
257 | impl IDot11AdHocNetwork_Vtbl { | |
258 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>() -> IDot11AdHocNetwork_Vtbl { | |
259 | unsafe extern "system" fn GetStatus<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, estatus: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows::core::HRESULT { | |
260 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
261 | let this = (*this).get_impl(); | |
262 | this.GetStatus(::core::mem::transmute_copy(&estatus)).into() | |
263 | } | |
264 | unsafe extern "system" fn GetSSID<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszwssid: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { | |
265 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
266 | let this = (*this).get_impl(); | |
267 | match this.GetSSID() { | |
268 | ::core::result::Result::Ok(ok__) => { | |
269 | ::core::ptr::write(ppszwssid, ::core::mem::transmute(ok__)); | |
270 | ::windows::core::HRESULT(0) | |
271 | } | |
272 | ::core::result::Result::Err(err) => err.into(), | |
273 | } | |
274 | } | |
275 | unsafe extern "system" fn HasProfile<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pf11d: *mut u8) -> ::windows::core::HRESULT { | |
276 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
277 | let this = (*this).get_impl(); | |
278 | this.HasProfile(::core::mem::transmute_copy(&pf11d)).into() | |
279 | } | |
280 | unsafe extern "system" fn GetProfileName<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszwprofilename: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { | |
281 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
282 | let this = (*this).get_impl(); | |
283 | match this.GetProfileName() { | |
284 | ::core::result::Result::Ok(ok__) => { | |
285 | ::core::ptr::write(ppszwprofilename, ::core::mem::transmute(ok__)); | |
286 | ::windows::core::HRESULT(0) | |
287 | } | |
288 | ::core::result::Result::Err(err) => err.into(), | |
289 | } | |
290 | } | |
291 | unsafe extern "system" fn DeleteProfile<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
292 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
293 | let this = (*this).get_impl(); | |
294 | this.DeleteProfile().into() | |
295 | } | |
296 | unsafe extern "system" fn GetSignalQuality<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pustrengthvalue: *mut u32, pustrengthmax: *mut u32) -> ::windows::core::HRESULT { | |
297 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
298 | let this = (*this).get_impl(); | |
299 | this.GetSignalQuality(::core::mem::transmute_copy(&pustrengthvalue), ::core::mem::transmute_copy(&pustrengthmax)).into() | |
300 | } | |
301 | unsafe extern "system" fn GetSecuritySetting<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, padhocsecuritysetting: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
302 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
303 | let this = (*this).get_impl(); | |
304 | match this.GetSecuritySetting() { | |
305 | ::core::result::Result::Ok(ok__) => { | |
306 | ::core::ptr::write(padhocsecuritysetting, ::core::mem::transmute(ok__)); | |
307 | ::windows::core::HRESULT(0) | |
308 | } | |
309 | ::core::result::Result::Err(err) => err.into(), | |
310 | } | |
311 | } | |
312 | unsafe extern "system" fn GetContextGuid<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontextguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { | |
313 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
314 | let this = (*this).get_impl(); | |
315 | this.GetContextGuid(::core::mem::transmute_copy(&pcontextguid)).into() | |
316 | } | |
317 | unsafe extern "system" fn GetSignature<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psignature: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { | |
318 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
319 | let this = (*this).get_impl(); | |
320 | this.GetSignature(::core::mem::transmute_copy(&psignature)).into() | |
321 | } | |
322 | unsafe extern "system" fn GetInterface<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, padhocinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
323 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
324 | let this = (*this).get_impl(); | |
325 | match this.GetInterface() { | |
326 | ::core::result::Result::Ok(ok__) => { | |
327 | ::core::ptr::write(padhocinterface, ::core::mem::transmute(ok__)); | |
328 | ::windows::core::HRESULT(0) | |
329 | } | |
330 | ::core::result::Result::Err(err) => err.into(), | |
331 | } | |
332 | } | |
333 | unsafe extern "system" fn Connect<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, passphrase: ::windows::core::PCWSTR, geographicalid: i32, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> ::windows::core::HRESULT { | |
334 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
335 | let this = (*this).get_impl(); | |
336 | this.Connect(::core::mem::transmute(&passphrase), ::core::mem::transmute_copy(&geographicalid), ::core::mem::transmute_copy(&fsaveprofile), ::core::mem::transmute_copy(&fmakesavedprofileuserspecific)).into() | |
337 | } | |
338 | unsafe extern "system" fn Disconnect<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
339 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
340 | let this = (*this).get_impl(); | |
341 | this.Disconnect().into() | |
342 | } | |
343 | Self { | |
344 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
345 | GetStatus: GetStatus::<Identity, Impl, OFFSET>, | |
346 | GetSSID: GetSSID::<Identity, Impl, OFFSET>, | |
347 | HasProfile: HasProfile::<Identity, Impl, OFFSET>, | |
348 | GetProfileName: GetProfileName::<Identity, Impl, OFFSET>, | |
349 | DeleteProfile: DeleteProfile::<Identity, Impl, OFFSET>, | |
350 | GetSignalQuality: GetSignalQuality::<Identity, Impl, OFFSET>, | |
351 | GetSecuritySetting: GetSecuritySetting::<Identity, Impl, OFFSET>, | |
352 | GetContextGuid: GetContextGuid::<Identity, Impl, OFFSET>, | |
353 | GetSignature: GetSignature::<Identity, Impl, OFFSET>, | |
354 | GetInterface: GetInterface::<Identity, Impl, OFFSET>, | |
355 | Connect: Connect::<Identity, Impl, OFFSET>, | |
356 | Disconnect: Disconnect::<Identity, Impl, OFFSET>, | |
357 | } | |
358 | } | |
359 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
360 | iid == &<IDot11AdHocNetwork as ::windows::core::ComInterface>::IID | |
361 | } | |
362 | } | |
363 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"implement\"`*"] | |
364 | pub trait IDot11AdHocNetworkNotificationSink_Impl: Sized { | |
365 | fn OnStatusChange(&self, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows::core::Result<()>; | |
366 | fn OnConnectFail(&self, efailreason: DOT11_ADHOC_CONNECT_FAIL_REASON) -> ::windows::core::Result<()>; | |
367 | } | |
368 | impl ::windows::core::RuntimeName for IDot11AdHocNetworkNotificationSink {} | |
369 | impl IDot11AdHocNetworkNotificationSink_Vtbl { | |
370 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetworkNotificationSink_Impl, const OFFSET: isize>() -> IDot11AdHocNetworkNotificationSink_Vtbl { | |
371 | unsafe extern "system" fn OnStatusChange<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetworkNotificationSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows::core::HRESULT { | |
372 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
373 | let this = (*this).get_impl(); | |
374 | this.OnStatusChange(::core::mem::transmute_copy(&estatus)).into() | |
375 | } | |
376 | unsafe extern "system" fn OnConnectFail<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocNetworkNotificationSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, efailreason: DOT11_ADHOC_CONNECT_FAIL_REASON) -> ::windows::core::HRESULT { | |
377 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
378 | let this = (*this).get_impl(); | |
379 | this.OnConnectFail(::core::mem::transmute_copy(&efailreason)).into() | |
380 | } | |
381 | Self { | |
382 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
383 | OnStatusChange: OnStatusChange::<Identity, Impl, OFFSET>, | |
384 | OnConnectFail: OnConnectFail::<Identity, Impl, OFFSET>, | |
385 | } | |
386 | } | |
387 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
388 | iid == &<IDot11AdHocNetworkNotificationSink as ::windows::core::ComInterface>::IID | |
389 | } | |
390 | } | |
391 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"implement\"`*"] | |
392 | pub trait IDot11AdHocSecuritySettings_Impl: Sized { | |
393 | fn GetDot11AuthAlgorithm(&self, pauth: *mut DOT11_ADHOC_AUTH_ALGORITHM) -> ::windows::core::Result<()>; | |
394 | fn GetDot11CipherAlgorithm(&self, pcipher: *mut DOT11_ADHOC_CIPHER_ALGORITHM) -> ::windows::core::Result<()>; | |
395 | } | |
396 | impl ::windows::core::RuntimeName for IDot11AdHocSecuritySettings {} | |
397 | impl IDot11AdHocSecuritySettings_Vtbl { | |
398 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocSecuritySettings_Impl, const OFFSET: isize>() -> IDot11AdHocSecuritySettings_Vtbl { | |
399 | unsafe extern "system" fn GetDot11AuthAlgorithm<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocSecuritySettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pauth: *mut DOT11_ADHOC_AUTH_ALGORITHM) -> ::windows::core::HRESULT { | |
400 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
401 | let this = (*this).get_impl(); | |
402 | this.GetDot11AuthAlgorithm(::core::mem::transmute_copy(&pauth)).into() | |
403 | } | |
404 | unsafe extern "system" fn GetDot11CipherAlgorithm<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IDot11AdHocSecuritySettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcipher: *mut DOT11_ADHOC_CIPHER_ALGORITHM) -> ::windows::core::HRESULT { | |
405 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
406 | let this = (*this).get_impl(); | |
407 | this.GetDot11CipherAlgorithm(::core::mem::transmute_copy(&pcipher)).into() | |
408 | } | |
409 | Self { | |
410 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
411 | GetDot11AuthAlgorithm: GetDot11AuthAlgorithm::<Identity, Impl, OFFSET>, | |
412 | GetDot11CipherAlgorithm: GetDot11CipherAlgorithm::<Identity, Impl, OFFSET>, | |
413 | } | |
414 | } | |
415 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
416 | iid == &<IDot11AdHocSecuritySettings as ::windows::core::ComInterface>::IID | |
417 | } | |
418 | } | |
419 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"implement\"`*"] | |
420 | pub trait IEnumDot11AdHocInterfaces_Impl: Sized { | |
421 | fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<IDot11AdHocInterface>, pceltfetched: *mut u32) -> ::windows::core::Result<()>; | |
422 | fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; | |
423 | fn Reset(&self) -> ::windows::core::Result<()>; | |
424 | fn Clone(&self) -> ::windows::core::Result<IEnumDot11AdHocInterfaces>; | |
425 | } | |
426 | impl ::windows::core::RuntimeName for IEnumDot11AdHocInterfaces {} | |
427 | impl IEnumDot11AdHocInterfaces_Vtbl { | |
428 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocInterfaces_Impl, const OFFSET: isize>() -> IEnumDot11AdHocInterfaces_Vtbl { | |
429 | unsafe extern "system" fn Next<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, rgelt: *mut *mut ::core::ffi::c_void, pceltfetched: *mut u32) -> ::windows::core::HRESULT { | |
430 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
431 | let this = (*this).get_impl(); | |
432 | this.Next(::core::mem::transmute_copy(&celt), ::core::mem::transmute_copy(&rgelt), ::core::mem::transmute_copy(&pceltfetched)).into() | |
433 | } | |
434 | unsafe extern "system" fn Skip<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT { | |
435 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
436 | let this = (*this).get_impl(); | |
437 | this.Skip(::core::mem::transmute_copy(&celt)).into() | |
438 | } | |
439 | unsafe extern "system" fn Reset<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
440 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
441 | let this = (*this).get_impl(); | |
442 | this.Reset().into() | |
443 | } | |
444 | unsafe extern "system" fn Clone<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
445 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
446 | let this = (*this).get_impl(); | |
447 | match this.Clone() { | |
448 | ::core::result::Result::Ok(ok__) => { | |
449 | ::core::ptr::write(ppenum, ::core::mem::transmute(ok__)); | |
450 | ::windows::core::HRESULT(0) | |
451 | } | |
452 | ::core::result::Result::Err(err) => err.into(), | |
453 | } | |
454 | } | |
455 | Self { | |
456 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
457 | Next: Next::<Identity, Impl, OFFSET>, | |
458 | Skip: Skip::<Identity, Impl, OFFSET>, | |
459 | Reset: Reset::<Identity, Impl, OFFSET>, | |
460 | Clone: Clone::<Identity, Impl, OFFSET>, | |
461 | } | |
462 | } | |
463 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
464 | iid == &<IEnumDot11AdHocInterfaces as ::windows::core::ComInterface>::IID | |
465 | } | |
466 | } | |
467 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"implement\"`*"] | |
468 | pub trait IEnumDot11AdHocNetworks_Impl: Sized { | |
469 | fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<IDot11AdHocNetwork>, pceltfetched: *mut u32) -> ::windows::core::Result<()>; | |
470 | fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; | |
471 | fn Reset(&self) -> ::windows::core::Result<()>; | |
472 | fn Clone(&self) -> ::windows::core::Result<IEnumDot11AdHocNetworks>; | |
473 | } | |
474 | impl ::windows::core::RuntimeName for IEnumDot11AdHocNetworks {} | |
475 | impl IEnumDot11AdHocNetworks_Vtbl { | |
476 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocNetworks_Impl, const OFFSET: isize>() -> IEnumDot11AdHocNetworks_Vtbl { | |
477 | unsafe extern "system" fn Next<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocNetworks_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, rgelt: *mut *mut ::core::ffi::c_void, pceltfetched: *mut u32) -> ::windows::core::HRESULT { | |
478 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
479 | let this = (*this).get_impl(); | |
480 | this.Next(::core::mem::transmute_copy(&celt), ::core::mem::transmute_copy(&rgelt), ::core::mem::transmute_copy(&pceltfetched)).into() | |
481 | } | |
482 | unsafe extern "system" fn Skip<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocNetworks_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT { | |
483 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
484 | let this = (*this).get_impl(); | |
485 | this.Skip(::core::mem::transmute_copy(&celt)).into() | |
486 | } | |
487 | unsafe extern "system" fn Reset<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocNetworks_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
488 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
489 | let this = (*this).get_impl(); | |
490 | this.Reset().into() | |
491 | } | |
492 | unsafe extern "system" fn Clone<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocNetworks_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
493 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
494 | let this = (*this).get_impl(); | |
495 | match this.Clone() { | |
496 | ::core::result::Result::Ok(ok__) => { | |
497 | ::core::ptr::write(ppenum, ::core::mem::transmute(ok__)); | |
498 | ::windows::core::HRESULT(0) | |
499 | } | |
500 | ::core::result::Result::Err(err) => err.into(), | |
501 | } | |
502 | } | |
503 | Self { | |
504 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
505 | Next: Next::<Identity, Impl, OFFSET>, | |
506 | Skip: Skip::<Identity, Impl, OFFSET>, | |
507 | Reset: Reset::<Identity, Impl, OFFSET>, | |
508 | Clone: Clone::<Identity, Impl, OFFSET>, | |
509 | } | |
510 | } | |
511 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
512 | iid == &<IEnumDot11AdHocNetworks as ::windows::core::ComInterface>::IID | |
513 | } | |
514 | } | |
515 | #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"implement\"`*"] | |
516 | pub trait IEnumDot11AdHocSecuritySettings_Impl: Sized { | |
517 | fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<IDot11AdHocSecuritySettings>, pceltfetched: *mut u32) -> ::windows::core::Result<()>; | |
518 | fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; | |
519 | fn Reset(&self) -> ::windows::core::Result<()>; | |
520 | fn Clone(&self) -> ::windows::core::Result<IEnumDot11AdHocSecuritySettings>; | |
521 | } | |
522 | impl ::windows::core::RuntimeName for IEnumDot11AdHocSecuritySettings {} | |
523 | impl IEnumDot11AdHocSecuritySettings_Vtbl { | |
524 | pub const fn new<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocSecuritySettings_Impl, const OFFSET: isize>() -> IEnumDot11AdHocSecuritySettings_Vtbl { | |
525 | unsafe extern "system" fn Next<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocSecuritySettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, rgelt: *mut *mut ::core::ffi::c_void, pceltfetched: *mut u32) -> ::windows::core::HRESULT { | |
526 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
527 | let this = (*this).get_impl(); | |
528 | this.Next(::core::mem::transmute_copy(&celt), ::core::mem::transmute_copy(&rgelt), ::core::mem::transmute_copy(&pceltfetched)).into() | |
529 | } | |
530 | unsafe extern "system" fn Skip<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocSecuritySettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT { | |
531 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
532 | let this = (*this).get_impl(); | |
533 | this.Skip(::core::mem::transmute_copy(&celt)).into() | |
534 | } | |
535 | unsafe extern "system" fn Reset<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocSecuritySettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
536 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
537 | let this = (*this).get_impl(); | |
538 | this.Reset().into() | |
539 | } | |
540 | unsafe extern "system" fn Clone<Identity: ::windows::core::IUnknownImpl<Impl = Impl>, Impl: IEnumDot11AdHocSecuritySettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { | |
541 | let this = (this as *const *const ()).offset(OFFSET) as *const Identity; | |
542 | let this = (*this).get_impl(); | |
543 | match this.Clone() { | |
544 | ::core::result::Result::Ok(ok__) => { | |
545 | ::core::ptr::write(ppenum, ::core::mem::transmute(ok__)); | |
546 | ::windows::core::HRESULT(0) | |
547 | } | |
548 | ::core::result::Result::Err(err) => err.into(), | |
549 | } | |
550 | } | |
551 | Self { | |
552 | base__: ::windows::core::IUnknown_Vtbl::new::<Identity, OFFSET>(), | |
553 | Next: Next::<Identity, Impl, OFFSET>, | |
554 | Skip: Skip::<Identity, Impl, OFFSET>, | |
555 | Reset: Reset::<Identity, Impl, OFFSET>, | |
556 | Clone: Clone::<Identity, Impl, OFFSET>, | |
557 | } | |
558 | } | |
559 | pub fn matches(iid: &windows::core::GUID) -> bool { | |
560 | iid == &<IEnumDot11AdHocSecuritySettings as ::windows::core::ComInterface>::IID | |
561 | } | |
562 | } |