1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)]
2 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
3 #[repr(transparent)]
4 pub struct CPU_ARCHITECTURE(pub u32);
5 pub const CPU_ARCHITECTURE_AMD64: CPU_ARCHITECTURE = CPU_ARCHITECTURE(9u32);
6 pub const CPU_ARCHITECTURE_IA64: CPU_ARCHITECTURE = CPU_ARCHITECTURE(6u32);
7 pub const CPU_ARCHITECTURE_INTEL: CPU_ARCHITECTURE = CPU_ARCHITECTURE(0u32);
8 impl ::std::convert::From<u32> for CPU_ARCHITECTURE {
from(value: u32) -> Self9 fn from(value: u32) -> Self {
10 Self(value)
11 }
12 }
13 unsafe impl ::windows::runtime::Abi for CPU_ARCHITECTURE {
14 type Abi = Self;
15 type DefaultType = Self;
16 }
17 impl ::std::ops::BitOr for CPU_ARCHITECTURE {
18 type Output = Self;
bitor(self, rhs: Self) -> Self19 fn bitor(self, rhs: Self) -> Self {
20 Self(self.0 | rhs.0)
21 }
22 }
23 impl ::std::ops::BitAnd for CPU_ARCHITECTURE {
24 type Output = Self;
bitand(self, rhs: Self) -> Self25 fn bitand(self, rhs: Self) -> Self {
26 Self(self.0 & rhs.0)
27 }
28 }
29 impl ::std::ops::BitOrAssign for CPU_ARCHITECTURE {
bitor_assign(&mut self, rhs: Self)30 fn bitor_assign(&mut self, rhs: Self) {
31 self.0.bitor_assign(rhs.0)
32 }
33 }
34 impl ::std::ops::BitAndAssign for CPU_ARCHITECTURE {
bitand_assign(&mut self, rhs: Self)35 fn bitand_assign(&mut self, rhs: Self) {
36 self.0.bitand_assign(rhs.0)
37 }
38 }
39 impl ::std::ops::Not for CPU_ARCHITECTURE {
40 type Output = Self;
not(self) -> Self41 fn not(self) -> Self {
42 Self(self.0.not())
43 }
44 }
45 pub const EVT_WDSMCS_E_CP_CALLBACKS_NOT_REG: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801324i32 as _);
46 pub const EVT_WDSMCS_E_CP_CLOSE_INSTANCE_FAILED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801320i32 as _);
47 pub const EVT_WDSMCS_E_CP_DLL_LOAD_FAILED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801328i32 as _);
48 pub const EVT_WDSMCS_E_CP_DLL_LOAD_FAILED_CRITICAL: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801317i32 as _);
49 pub const EVT_WDSMCS_E_CP_INCOMPATIBLE_SERVER_VERSION: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801325i32 as _);
50 pub const EVT_WDSMCS_E_CP_INIT_FUNC_FAILED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801326i32 as _);
51 pub const EVT_WDSMCS_E_CP_INIT_FUNC_MISSING: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801327i32 as _);
52 pub const EVT_WDSMCS_E_CP_MEMORY_LEAK: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801322i32 as _);
53 pub const EVT_WDSMCS_E_CP_OPEN_CONTENT_FAILED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801319i32 as _);
54 pub const EVT_WDSMCS_E_CP_OPEN_INSTANCE_FAILED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801321i32 as _);
55 pub const EVT_WDSMCS_E_CP_SHUTDOWN_FUNC_FAILED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801323i32 as _);
56 pub const EVT_WDSMCS_E_DUPLICATE_MULTICAST_ADDR: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801406i32 as _);
57 pub const EVT_WDSMCS_E_NON_WDS_DUPLICATE_MULTICAST_ADDR: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801405i32 as _);
58 pub const EVT_WDSMCS_E_NSREG_CONTENT_PROVIDER_NOT_REG: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801151i32 as _);
59 pub const EVT_WDSMCS_E_NSREG_FAILURE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801149i32 as _);
60 pub const EVT_WDSMCS_E_NSREG_NAMESPACE_EXISTS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801150i32 as _);
61 pub const EVT_WDSMCS_E_NSREG_START_TIME_IN_PAST: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801152i32 as _);
62 pub const EVT_WDSMCS_E_PARAMETERS_READ_FAILED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801407i32 as _);
63 pub const EVT_WDSMCS_S_PARAMETERS_READ: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(1092682240i32 as _);
64 pub const EVT_WDSMCS_W_CP_DLL_LOAD_FAILED_NOT_CRITICAL: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-2128543142i32 as _);
65 pub const FACILITY_WDSMCCLIENT: u32 = 290u32;
66 pub const FACILITY_WDSMCSERVER: u32 = 289u32;
67 pub const FACILITY_WDSTPTMGMT: u32 = 272u32;
68 #[repr(transparent)]
69 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
70 pub struct IWdsTransportCacheable(::windows::runtime::IUnknown);
71 impl IWdsTransportCacheable {
Dirty(&self) -> ::windows::runtime::Result<i16>72 pub unsafe fn Dirty(&self) -> ::windows::runtime::Result<i16> {
73 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
74 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
75 }
Discard(&self) -> ::windows::runtime::Result<()>76 pub unsafe fn Discard(&self) -> ::windows::runtime::Result<()> {
77 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self)).ok()
78 }
Refresh(&self) -> ::windows::runtime::Result<()>79 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
80 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self)).ok()
81 }
Commit(&self) -> ::windows::runtime::Result<()>82 pub unsafe fn Commit(&self) -> ::windows::runtime::Result<()> {
83 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self)).ok()
84 }
85 }
86 unsafe impl ::windows::runtime::Interface for IWdsTransportCacheable {
87 type Vtable = IWdsTransportCacheable_abi;
88 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1185777995, 2987, 18396, [132, 178, 123, 85, 63, 29, 143, 128]);
89 }
90 impl ::std::convert::From<IWdsTransportCacheable> for ::windows::runtime::IUnknown {
from(value: IWdsTransportCacheable) -> Self91 fn from(value: IWdsTransportCacheable) -> Self {
92 unsafe { ::std::mem::transmute(value) }
93 }
94 }
95 impl ::std::convert::From<&IWdsTransportCacheable> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportCacheable) -> Self96 fn from(value: &IWdsTransportCacheable) -> Self {
97 ::std::convert::From::from(::std::clone::Clone::clone(value))
98 }
99 }
100 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportCacheable {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>101 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
102 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
103 }
104 }
105 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportCacheable {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>106 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
107 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
108 }
109 }
110 #[cfg(feature = "Win32_System_Ole_Automation")]
111 impl ::std::convert::From<IWdsTransportCacheable> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportCacheable) -> Self112 fn from(value: IWdsTransportCacheable) -> Self {
113 unsafe { ::std::mem::transmute(value) }
114 }
115 }
116 #[cfg(feature = "Win32_System_Ole_Automation")]
117 impl ::std::convert::From<&IWdsTransportCacheable> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportCacheable) -> Self118 fn from(value: &IWdsTransportCacheable) -> Self {
119 ::std::convert::From::from(::std::clone::Clone::clone(value))
120 }
121 }
122 #[cfg(feature = "Win32_System_Ole_Automation")]
123 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportCacheable {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>124 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
125 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
126 }
127 }
128 #[cfg(feature = "Win32_System_Ole_Automation")]
129 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportCacheable {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>130 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
131 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
132 }
133 }
134 #[repr(C)]
135 #[doc(hidden)]
136 pub struct IWdsTransportCacheable_abi(
137 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
138 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
139 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
140 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
141 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
142 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
143 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
144 #[cfg(not(feature = "Win32_Foundation"))] usize,
145 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
146 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
147 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
148 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbdirty: *mut i16) -> ::windows::runtime::HRESULT,
149 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
150 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
151 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
152 );
153 #[repr(transparent)]
154 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
155 pub struct IWdsTransportClient(::windows::runtime::IUnknown);
156 impl IWdsTransportClient {
Session(&self) -> ::windows::runtime::Result<IWdsTransportSession>157 pub unsafe fn Session(&self) -> ::windows::runtime::Result<IWdsTransportSession> {
158 let mut result__: <IWdsTransportSession as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
159 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportSession>(result__)
160 }
Id(&self) -> ::windows::runtime::Result<u32>161 pub unsafe fn Id(&self) -> ::windows::runtime::Result<u32> {
162 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
163 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
164 }
165 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>166 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
167 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
168 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
169 }
170 #[cfg(feature = "Win32_Foundation")]
MacAddress(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>171 pub unsafe fn MacAddress(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
172 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
173 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
174 }
175 #[cfg(feature = "Win32_Foundation")]
IpAddress(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>176 pub unsafe fn IpAddress(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
177 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
178 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
179 }
PercentCompletion(&self) -> ::windows::runtime::Result<u32>180 pub unsafe fn PercentCompletion(&self) -> ::windows::runtime::Result<u32> {
181 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
182 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
183 }
JoinDuration(&self) -> ::windows::runtime::Result<u32>184 pub unsafe fn JoinDuration(&self) -> ::windows::runtime::Result<u32> {
185 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
186 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
187 }
CpuUtilization(&self) -> ::windows::runtime::Result<u32>188 pub unsafe fn CpuUtilization(&self) -> ::windows::runtime::Result<u32> {
189 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
190 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
191 }
MemoryUtilization(&self) -> ::windows::runtime::Result<u32>192 pub unsafe fn MemoryUtilization(&self) -> ::windows::runtime::Result<u32> {
193 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
194 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
195 }
NetworkUtilization(&self) -> ::windows::runtime::Result<u32>196 pub unsafe fn NetworkUtilization(&self) -> ::windows::runtime::Result<u32> {
197 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
198 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
199 }
200 #[cfg(feature = "Win32_Foundation")]
UserIdentity(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>201 pub unsafe fn UserIdentity(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
202 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
203 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
204 }
Disconnect(&self, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::Result<()>205 pub unsafe fn Disconnect(&self, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::Result<()> {
206 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(disconnectiontype)).ok()
207 }
208 }
209 unsafe impl ::windows::runtime::Interface for IWdsTransportClient {
210 type Vtable = IWdsTransportClient_abi;
211 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3051079994, 51902, 18122, [131, 127, 62, 68, 233, 60, 101, 69]);
212 }
213 impl ::std::convert::From<IWdsTransportClient> for ::windows::runtime::IUnknown {
from(value: IWdsTransportClient) -> Self214 fn from(value: IWdsTransportClient) -> Self {
215 unsafe { ::std::mem::transmute(value) }
216 }
217 }
218 impl ::std::convert::From<&IWdsTransportClient> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportClient) -> Self219 fn from(value: &IWdsTransportClient) -> Self {
220 ::std::convert::From::from(::std::clone::Clone::clone(value))
221 }
222 }
223 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportClient {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>224 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
225 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
226 }
227 }
228 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportClient {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>229 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
230 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
231 }
232 }
233 #[cfg(feature = "Win32_System_Ole_Automation")]
234 impl ::std::convert::From<IWdsTransportClient> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportClient) -> Self235 fn from(value: IWdsTransportClient) -> Self {
236 unsafe { ::std::mem::transmute(value) }
237 }
238 }
239 #[cfg(feature = "Win32_System_Ole_Automation")]
240 impl ::std::convert::From<&IWdsTransportClient> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportClient) -> Self241 fn from(value: &IWdsTransportClient) -> Self {
242 ::std::convert::From::from(::std::clone::Clone::clone(value))
243 }
244 }
245 #[cfg(feature = "Win32_System_Ole_Automation")]
246 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportClient {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>247 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
248 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
249 }
250 }
251 #[cfg(feature = "Win32_System_Ole_Automation")]
252 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportClient {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>253 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
254 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
255 }
256 }
257 #[repr(C)]
258 #[doc(hidden)]
259 pub struct IWdsTransportClient_abi(
260 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
261 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
262 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
263 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
264 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
265 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
266 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
267 #[cfg(not(feature = "Win32_Foundation"))] usize,
268 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
269 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
270 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
271 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportsession: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
272 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulid: *mut u32) -> ::windows::runtime::HRESULT,
273 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
274 #[cfg(not(feature = "Win32_Foundation"))] usize,
275 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszmacaddress: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
276 #[cfg(not(feature = "Win32_Foundation"))] usize,
277 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszipaddress: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
278 #[cfg(not(feature = "Win32_Foundation"))] usize,
279 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulpercentcompletion: *mut u32) -> ::windows::runtime::HRESULT,
280 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, puljoinduration: *mut u32) -> ::windows::runtime::HRESULT,
281 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulcpuutilization: *mut u32) -> ::windows::runtime::HRESULT,
282 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulmemoryutilization: *mut u32) -> ::windows::runtime::HRESULT,
283 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulnetworkutilization: *mut u32) -> ::windows::runtime::HRESULT,
284 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszuseridentity: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
285 #[cfg(not(feature = "Win32_Foundation"))] usize,
286 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::HRESULT,
287 );
288 #[repr(transparent)]
289 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
290 pub struct IWdsTransportCollection(::windows::runtime::IUnknown);
291 impl IWdsTransportCollection {
Count(&self) -> ::windows::runtime::Result<u32>292 pub unsafe fn Count(&self) -> ::windows::runtime::Result<u32> {
293 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
294 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
295 }
296 #[cfg(feature = "Win32_System_Ole_Automation")]
Item(&self, ulindex: u32) -> ::windows::runtime::Result<super::Ole::Automation::IDispatch>297 pub unsafe fn Item(&self, ulindex: u32) -> ::windows::runtime::Result<super::Ole::Automation::IDispatch> {
298 let mut result__: <super::Ole::Automation::IDispatch as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
299 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulindex), &mut result__).from_abi::<super::Ole::Automation::IDispatch>(result__)
300 }
_NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown>301 pub unsafe fn _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown> {
302 let mut result__: <::windows::runtime::IUnknown as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
303 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::IUnknown>(result__)
304 }
305 }
306 unsafe impl ::windows::runtime::Interface for IWdsTransportCollection {
307 type Vtable = IWdsTransportCollection_abi;
308 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3099216666, 12276, 17323, [153, 108, 178, 177, 10, 145, 166, 235]);
309 }
310 impl ::std::convert::From<IWdsTransportCollection> for ::windows::runtime::IUnknown {
from(value: IWdsTransportCollection) -> Self311 fn from(value: IWdsTransportCollection) -> Self {
312 unsafe { ::std::mem::transmute(value) }
313 }
314 }
315 impl ::std::convert::From<&IWdsTransportCollection> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportCollection) -> Self316 fn from(value: &IWdsTransportCollection) -> Self {
317 ::std::convert::From::from(::std::clone::Clone::clone(value))
318 }
319 }
320 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportCollection {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>321 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
322 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
323 }
324 }
325 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportCollection {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>326 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
327 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
328 }
329 }
330 #[cfg(feature = "Win32_System_Ole_Automation")]
331 impl ::std::convert::From<IWdsTransportCollection> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportCollection) -> Self332 fn from(value: IWdsTransportCollection) -> Self {
333 unsafe { ::std::mem::transmute(value) }
334 }
335 }
336 #[cfg(feature = "Win32_System_Ole_Automation")]
337 impl ::std::convert::From<&IWdsTransportCollection> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportCollection) -> Self338 fn from(value: &IWdsTransportCollection) -> Self {
339 ::std::convert::From::from(::std::clone::Clone::clone(value))
340 }
341 }
342 #[cfg(feature = "Win32_System_Ole_Automation")]
343 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportCollection {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>344 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
345 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
346 }
347 }
348 #[cfg(feature = "Win32_System_Ole_Automation")]
349 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportCollection {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>350 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
351 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
352 }
353 }
354 #[repr(C)]
355 #[doc(hidden)]
356 pub struct IWdsTransportCollection_abi(
357 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
358 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
359 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
360 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
361 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
362 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
363 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
364 #[cfg(not(feature = "Win32_Foundation"))] usize,
365 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
366 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
367 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
368 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulcount: *mut u32) -> ::windows::runtime::HRESULT,
369 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulindex: u32, ppval: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
370 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
371 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppval: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
372 );
373 #[repr(transparent)]
374 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
375 pub struct IWdsTransportConfigurationManager(::windows::runtime::IUnknown);
376 impl IWdsTransportConfigurationManager {
ServicePolicy(&self) -> ::windows::runtime::Result<IWdsTransportServicePolicy>377 pub unsafe fn ServicePolicy(&self) -> ::windows::runtime::Result<IWdsTransportServicePolicy> {
378 let mut result__: <IWdsTransportServicePolicy as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
379 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportServicePolicy>(result__)
380 }
DiagnosticsPolicy(&self) -> ::windows::runtime::Result<IWdsTransportDiagnosticsPolicy>381 pub unsafe fn DiagnosticsPolicy(&self) -> ::windows::runtime::Result<IWdsTransportDiagnosticsPolicy> {
382 let mut result__: <IWdsTransportDiagnosticsPolicy as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
383 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportDiagnosticsPolicy>(result__)
384 }
WdsTransportServicesRunning(&self, brealtimestatus: i16) -> ::windows::runtime::Result<i16>385 pub unsafe fn WdsTransportServicesRunning(&self, brealtimestatus: i16) -> ::windows::runtime::Result<i16> {
386 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
387 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(brealtimestatus), &mut result__).from_abi::<i16>(result__)
388 }
EnableWdsTransportServices(&self) -> ::windows::runtime::Result<()>389 pub unsafe fn EnableWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
390 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self)).ok()
391 }
DisableWdsTransportServices(&self) -> ::windows::runtime::Result<()>392 pub unsafe fn DisableWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
393 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self)).ok()
394 }
StartWdsTransportServices(&self) -> ::windows::runtime::Result<()>395 pub unsafe fn StartWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
396 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self)).ok()
397 }
StopWdsTransportServices(&self) -> ::windows::runtime::Result<()>398 pub unsafe fn StopWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
399 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self)).ok()
400 }
RestartWdsTransportServices(&self) -> ::windows::runtime::Result<()>401 pub unsafe fn RestartWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
402 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self)).ok()
403 }
NotifyWdsTransportServices(&self, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> ::windows::runtime::Result<()>404 pub unsafe fn NotifyWdsTransportServices(&self, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> ::windows::runtime::Result<()> {
405 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(servicenotification)).ok()
406 }
407 }
408 unsafe impl ::windows::runtime::Interface for IWdsTransportConfigurationManager {
409 type Vtable = IWdsTransportConfigurationManager_abi;
410 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2227980153, 17117, 18322, [137, 30, 19, 33, 214, 215, 75, 68]);
411 }
412 impl ::std::convert::From<IWdsTransportConfigurationManager> for ::windows::runtime::IUnknown {
from(value: IWdsTransportConfigurationManager) -> Self413 fn from(value: IWdsTransportConfigurationManager) -> Self {
414 unsafe { ::std::mem::transmute(value) }
415 }
416 }
417 impl ::std::convert::From<&IWdsTransportConfigurationManager> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportConfigurationManager) -> Self418 fn from(value: &IWdsTransportConfigurationManager) -> Self {
419 ::std::convert::From::from(::std::clone::Clone::clone(value))
420 }
421 }
422 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportConfigurationManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>423 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
424 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
425 }
426 }
427 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportConfigurationManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>428 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
429 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
430 }
431 }
432 #[cfg(feature = "Win32_System_Ole_Automation")]
433 impl ::std::convert::From<IWdsTransportConfigurationManager> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportConfigurationManager) -> Self434 fn from(value: IWdsTransportConfigurationManager) -> Self {
435 unsafe { ::std::mem::transmute(value) }
436 }
437 }
438 #[cfg(feature = "Win32_System_Ole_Automation")]
439 impl ::std::convert::From<&IWdsTransportConfigurationManager> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportConfigurationManager) -> Self440 fn from(value: &IWdsTransportConfigurationManager) -> Self {
441 ::std::convert::From::from(::std::clone::Clone::clone(value))
442 }
443 }
444 #[cfg(feature = "Win32_System_Ole_Automation")]
445 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportConfigurationManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>446 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
447 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
448 }
449 }
450 #[cfg(feature = "Win32_System_Ole_Automation")]
451 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportConfigurationManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>452 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
453 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
454 }
455 }
456 #[repr(C)]
457 #[doc(hidden)]
458 pub struct IWdsTransportConfigurationManager_abi(
459 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
460 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
461 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
462 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
463 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
464 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
465 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
466 #[cfg(not(feature = "Win32_Foundation"))] usize,
467 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
468 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
469 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
470 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportservicepolicy: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
471 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportdiagnosticspolicy: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
472 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, brealtimestatus: i16, pbservicesrunning: *mut i16) -> ::windows::runtime::HRESULT,
473 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
474 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
475 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
476 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
477 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
478 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> ::windows::runtime::HRESULT,
479 );
480 #[repr(transparent)]
481 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
482 pub struct IWdsTransportConfigurationManager2(::windows::runtime::IUnknown);
483 impl IWdsTransportConfigurationManager2 {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>484 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
485 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
486 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
487 }
488 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>489 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
490 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
491 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
492 }
493 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>494 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
495 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
496 }
497 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>498 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
499 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
500 }
ServicePolicy(&self) -> ::windows::runtime::Result<IWdsTransportServicePolicy>501 pub unsafe fn ServicePolicy(&self) -> ::windows::runtime::Result<IWdsTransportServicePolicy> {
502 let mut result__: <IWdsTransportServicePolicy as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
503 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportServicePolicy>(result__)
504 }
DiagnosticsPolicy(&self) -> ::windows::runtime::Result<IWdsTransportDiagnosticsPolicy>505 pub unsafe fn DiagnosticsPolicy(&self) -> ::windows::runtime::Result<IWdsTransportDiagnosticsPolicy> {
506 let mut result__: <IWdsTransportDiagnosticsPolicy as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
507 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportDiagnosticsPolicy>(result__)
508 }
WdsTransportServicesRunning(&self, brealtimestatus: i16) -> ::windows::runtime::Result<i16>509 pub unsafe fn WdsTransportServicesRunning(&self, brealtimestatus: i16) -> ::windows::runtime::Result<i16> {
510 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
511 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(brealtimestatus), &mut result__).from_abi::<i16>(result__)
512 }
EnableWdsTransportServices(&self) -> ::windows::runtime::Result<()>513 pub unsafe fn EnableWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
514 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self)).ok()
515 }
DisableWdsTransportServices(&self) -> ::windows::runtime::Result<()>516 pub unsafe fn DisableWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
517 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self)).ok()
518 }
StartWdsTransportServices(&self) -> ::windows::runtime::Result<()>519 pub unsafe fn StartWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
520 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self)).ok()
521 }
StopWdsTransportServices(&self) -> ::windows::runtime::Result<()>522 pub unsafe fn StopWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
523 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self)).ok()
524 }
RestartWdsTransportServices(&self) -> ::windows::runtime::Result<()>525 pub unsafe fn RestartWdsTransportServices(&self) -> ::windows::runtime::Result<()> {
526 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self)).ok()
527 }
NotifyWdsTransportServices(&self, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> ::windows::runtime::Result<()>528 pub unsafe fn NotifyWdsTransportServices(&self, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> ::windows::runtime::Result<()> {
529 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(servicenotification)).ok()
530 }
MulticastSessionPolicy(&self) -> ::windows::runtime::Result<IWdsTransportMulticastSessionPolicy>531 pub unsafe fn MulticastSessionPolicy(&self) -> ::windows::runtime::Result<IWdsTransportMulticastSessionPolicy> {
532 let mut result__: <IWdsTransportMulticastSessionPolicy as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
533 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportMulticastSessionPolicy>(result__)
534 }
535 }
536 unsafe impl ::windows::runtime::Interface for IWdsTransportConfigurationManager2 {
537 type Vtable = IWdsTransportConfigurationManager2_abi;
538 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3503840431, 41299, 20253, [169, 221, 150, 244, 49, 197, 7, 23]);
539 }
540 impl ::std::convert::From<IWdsTransportConfigurationManager2> for ::windows::runtime::IUnknown {
from(value: IWdsTransportConfigurationManager2) -> Self541 fn from(value: IWdsTransportConfigurationManager2) -> Self {
542 unsafe { ::std::mem::transmute(value) }
543 }
544 }
545 impl ::std::convert::From<&IWdsTransportConfigurationManager2> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportConfigurationManager2) -> Self546 fn from(value: &IWdsTransportConfigurationManager2) -> Self {
547 ::std::convert::From::from(::std::clone::Clone::clone(value))
548 }
549 }
550 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportConfigurationManager2 {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>551 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
552 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
553 }
554 }
555 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportConfigurationManager2 {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>556 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
557 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
558 }
559 }
560 impl ::std::convert::From<IWdsTransportConfigurationManager2> for IWdsTransportConfigurationManager {
from(value: IWdsTransportConfigurationManager2) -> Self561 fn from(value: IWdsTransportConfigurationManager2) -> Self {
562 unsafe { ::std::mem::transmute(value) }
563 }
564 }
565 impl ::std::convert::From<&IWdsTransportConfigurationManager2> for IWdsTransportConfigurationManager {
from(value: &IWdsTransportConfigurationManager2) -> Self566 fn from(value: &IWdsTransportConfigurationManager2) -> Self {
567 ::std::convert::From::from(::std::clone::Clone::clone(value))
568 }
569 }
570 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportConfigurationManager> for IWdsTransportConfigurationManager2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportConfigurationManager>571 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportConfigurationManager> {
572 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportConfigurationManager>::into(self))
573 }
574 }
575 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportConfigurationManager> for &IWdsTransportConfigurationManager2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportConfigurationManager>576 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportConfigurationManager> {
577 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportConfigurationManager>::into(::std::clone::Clone::clone(self)))
578 }
579 }
580 #[cfg(feature = "Win32_System_Ole_Automation")]
581 impl ::std::convert::From<IWdsTransportConfigurationManager2> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportConfigurationManager2) -> Self582 fn from(value: IWdsTransportConfigurationManager2) -> Self {
583 unsafe { ::std::mem::transmute(value) }
584 }
585 }
586 #[cfg(feature = "Win32_System_Ole_Automation")]
587 impl ::std::convert::From<&IWdsTransportConfigurationManager2> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportConfigurationManager2) -> Self588 fn from(value: &IWdsTransportConfigurationManager2) -> Self {
589 ::std::convert::From::from(::std::clone::Clone::clone(value))
590 }
591 }
592 #[cfg(feature = "Win32_System_Ole_Automation")]
593 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportConfigurationManager2 {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>594 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
595 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
596 }
597 }
598 #[cfg(feature = "Win32_System_Ole_Automation")]
599 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportConfigurationManager2 {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>600 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
601 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
602 }
603 }
604 #[repr(C)]
605 #[doc(hidden)]
606 pub struct IWdsTransportConfigurationManager2_abi(
607 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
608 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
609 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
610 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
611 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
612 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
613 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
614 #[cfg(not(feature = "Win32_Foundation"))] usize,
615 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
616 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
617 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
618 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportservicepolicy: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
619 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportdiagnosticspolicy: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
620 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, brealtimestatus: i16, pbservicesrunning: *mut i16) -> ::windows::runtime::HRESULT,
621 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
622 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
623 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
624 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
625 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
626 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> ::windows::runtime::HRESULT,
627 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportmulticastsessionpolicy: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
628 );
629 #[repr(transparent)]
630 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
631 pub struct IWdsTransportContent(::windows::runtime::IUnknown);
632 impl IWdsTransportContent {
Namespace(&self) -> ::windows::runtime::Result<IWdsTransportNamespace>633 pub unsafe fn Namespace(&self) -> ::windows::runtime::Result<IWdsTransportNamespace> {
634 let mut result__: <IWdsTransportNamespace as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
635 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportNamespace>(result__)
636 }
Id(&self) -> ::windows::runtime::Result<u32>637 pub unsafe fn Id(&self) -> ::windows::runtime::Result<u32> {
638 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
639 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
640 }
641 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>642 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
643 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
644 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
645 }
RetrieveSessions(&self) -> ::windows::runtime::Result<IWdsTransportCollection>646 pub unsafe fn RetrieveSessions(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
647 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
648 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
649 }
Terminate(&self) -> ::windows::runtime::Result<()>650 pub unsafe fn Terminate(&self) -> ::windows::runtime::Result<()> {
651 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self)).ok()
652 }
653 }
654 unsafe impl ::windows::runtime::Interface for IWdsTransportContent {
655 type Vtable = IWdsTransportContent_abi;
656 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3557152529, 662, 19124, [168, 96, 172, 125, 50, 230, 87, 152]);
657 }
658 impl ::std::convert::From<IWdsTransportContent> for ::windows::runtime::IUnknown {
from(value: IWdsTransportContent) -> Self659 fn from(value: IWdsTransportContent) -> Self {
660 unsafe { ::std::mem::transmute(value) }
661 }
662 }
663 impl ::std::convert::From<&IWdsTransportContent> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportContent) -> Self664 fn from(value: &IWdsTransportContent) -> Self {
665 ::std::convert::From::from(::std::clone::Clone::clone(value))
666 }
667 }
668 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportContent {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>669 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
670 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
671 }
672 }
673 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportContent {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>674 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
675 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
676 }
677 }
678 #[cfg(feature = "Win32_System_Ole_Automation")]
679 impl ::std::convert::From<IWdsTransportContent> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportContent) -> Self680 fn from(value: IWdsTransportContent) -> Self {
681 unsafe { ::std::mem::transmute(value) }
682 }
683 }
684 #[cfg(feature = "Win32_System_Ole_Automation")]
685 impl ::std::convert::From<&IWdsTransportContent> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportContent) -> Self686 fn from(value: &IWdsTransportContent) -> Self {
687 ::std::convert::From::from(::std::clone::Clone::clone(value))
688 }
689 }
690 #[cfg(feature = "Win32_System_Ole_Automation")]
691 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportContent {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>692 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
693 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
694 }
695 }
696 #[cfg(feature = "Win32_System_Ole_Automation")]
697 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportContent {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>698 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
699 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
700 }
701 }
702 #[repr(C)]
703 #[doc(hidden)]
704 pub struct IWdsTransportContent_abi(
705 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
706 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
707 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
708 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
709 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
710 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
711 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
712 #[cfg(not(feature = "Win32_Foundation"))] usize,
713 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
714 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
715 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
716 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportnamespace: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
717 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulid: *mut u32) -> ::windows::runtime::HRESULT,
718 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
719 #[cfg(not(feature = "Win32_Foundation"))] usize,
720 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportsessions: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
721 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
722 );
723 #[repr(transparent)]
724 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
725 pub struct IWdsTransportContentProvider(::windows::runtime::IUnknown);
726 impl IWdsTransportContentProvider {
727 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>728 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
729 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
730 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
731 }
732 #[cfg(feature = "Win32_Foundation")]
Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>733 pub unsafe fn Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
734 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
735 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
736 }
737 #[cfg(feature = "Win32_Foundation")]
FilePath(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>738 pub unsafe fn FilePath(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
739 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
740 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
741 }
742 #[cfg(feature = "Win32_Foundation")]
InitializationRoutine(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>743 pub unsafe fn InitializationRoutine(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
744 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
745 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
746 }
747 }
748 unsafe impl ::windows::runtime::Interface for IWdsTransportContentProvider {
749 type Vtable = IWdsTransportContentProvider_abi;
750 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3108544292, 61977, 19151, [170, 215, 38, 92, 124, 8, 166, 174]);
751 }
752 impl ::std::convert::From<IWdsTransportContentProvider> for ::windows::runtime::IUnknown {
from(value: IWdsTransportContentProvider) -> Self753 fn from(value: IWdsTransportContentProvider) -> Self {
754 unsafe { ::std::mem::transmute(value) }
755 }
756 }
757 impl ::std::convert::From<&IWdsTransportContentProvider> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportContentProvider) -> Self758 fn from(value: &IWdsTransportContentProvider) -> Self {
759 ::std::convert::From::from(::std::clone::Clone::clone(value))
760 }
761 }
762 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportContentProvider {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>763 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
764 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
765 }
766 }
767 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportContentProvider {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>768 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
769 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
770 }
771 }
772 #[cfg(feature = "Win32_System_Ole_Automation")]
773 impl ::std::convert::From<IWdsTransportContentProvider> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportContentProvider) -> Self774 fn from(value: IWdsTransportContentProvider) -> Self {
775 unsafe { ::std::mem::transmute(value) }
776 }
777 }
778 #[cfg(feature = "Win32_System_Ole_Automation")]
779 impl ::std::convert::From<&IWdsTransportContentProvider> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportContentProvider) -> Self780 fn from(value: &IWdsTransportContentProvider) -> Self {
781 ::std::convert::From::from(::std::clone::Clone::clone(value))
782 }
783 }
784 #[cfg(feature = "Win32_System_Ole_Automation")]
785 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportContentProvider {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>786 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
787 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
788 }
789 }
790 #[cfg(feature = "Win32_System_Ole_Automation")]
791 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportContentProvider {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>792 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
793 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
794 }
795 }
796 #[repr(C)]
797 #[doc(hidden)]
798 pub struct IWdsTransportContentProvider_abi(
799 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
800 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
801 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
802 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
803 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
804 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
805 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
806 #[cfg(not(feature = "Win32_Foundation"))] usize,
807 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
808 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
809 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
810 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
811 #[cfg(not(feature = "Win32_Foundation"))] usize,
812 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszdescription: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
813 #[cfg(not(feature = "Win32_Foundation"))] usize,
814 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszfilepath: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
815 #[cfg(not(feature = "Win32_Foundation"))] usize,
816 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszinitializationroutine: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
817 #[cfg(not(feature = "Win32_Foundation"))] usize,
818 );
819 #[repr(transparent)]
820 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
821 pub struct IWdsTransportDiagnosticsPolicy(::windows::runtime::IUnknown);
822 impl IWdsTransportDiagnosticsPolicy {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>823 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
824 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
825 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
826 }
827 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>828 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
829 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
830 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
831 }
832 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>833 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
834 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
835 }
836 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>837 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
838 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
839 }
Dirty(&self) -> ::windows::runtime::Result<i16>840 pub unsafe fn Dirty(&self) -> ::windows::runtime::Result<i16> {
841 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
842 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
843 }
Discard(&self) -> ::windows::runtime::Result<()>844 pub unsafe fn Discard(&self) -> ::windows::runtime::Result<()> {
845 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self)).ok()
846 }
Refresh(&self) -> ::windows::runtime::Result<()>847 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
848 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self)).ok()
849 }
Commit(&self) -> ::windows::runtime::Result<()>850 pub unsafe fn Commit(&self) -> ::windows::runtime::Result<()> {
851 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self)).ok()
852 }
Enabled(&self) -> ::windows::runtime::Result<i16>853 pub unsafe fn Enabled(&self) -> ::windows::runtime::Result<i16> {
854 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
855 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
856 }
SetEnabled(&self, benabled: i16) -> ::windows::runtime::Result<()>857 pub unsafe fn SetEnabled(&self, benabled: i16) -> ::windows::runtime::Result<()> {
858 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(benabled)).ok()
859 }
Components(&self) -> ::windows::runtime::Result<u32>860 pub unsafe fn Components(&self) -> ::windows::runtime::Result<u32> {
861 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
862 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
863 }
SetComponents(&self, ulcomponents: u32) -> ::windows::runtime::Result<()>864 pub unsafe fn SetComponents(&self, ulcomponents: u32) -> ::windows::runtime::Result<()> {
865 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulcomponents)).ok()
866 }
867 }
868 unsafe impl ::windows::runtime::Interface for IWdsTransportDiagnosticsPolicy {
869 type Vtable = IWdsTransportDiagnosticsPolicy_abi;
870 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(330514172, 30806, 20321, [154, 89, 141, 230, 123, 107, 135, 182]);
871 }
872 impl ::std::convert::From<IWdsTransportDiagnosticsPolicy> for ::windows::runtime::IUnknown {
from(value: IWdsTransportDiagnosticsPolicy) -> Self873 fn from(value: IWdsTransportDiagnosticsPolicy) -> Self {
874 unsafe { ::std::mem::transmute(value) }
875 }
876 }
877 impl ::std::convert::From<&IWdsTransportDiagnosticsPolicy> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportDiagnosticsPolicy) -> Self878 fn from(value: &IWdsTransportDiagnosticsPolicy) -> Self {
879 ::std::convert::From::from(::std::clone::Clone::clone(value))
880 }
881 }
882 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportDiagnosticsPolicy {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>883 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
884 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
885 }
886 }
887 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportDiagnosticsPolicy {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>888 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
889 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
890 }
891 }
892 impl ::std::convert::From<IWdsTransportDiagnosticsPolicy> for IWdsTransportCacheable {
from(value: IWdsTransportDiagnosticsPolicy) -> Self893 fn from(value: IWdsTransportDiagnosticsPolicy) -> Self {
894 unsafe { ::std::mem::transmute(value) }
895 }
896 }
897 impl ::std::convert::From<&IWdsTransportDiagnosticsPolicy> for IWdsTransportCacheable {
from(value: &IWdsTransportDiagnosticsPolicy) -> Self898 fn from(value: &IWdsTransportDiagnosticsPolicy) -> Self {
899 ::std::convert::From::from(::std::clone::Clone::clone(value))
900 }
901 }
902 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportCacheable> for IWdsTransportDiagnosticsPolicy {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable>903 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable> {
904 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportCacheable>::into(self))
905 }
906 }
907 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportCacheable> for &IWdsTransportDiagnosticsPolicy {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable>908 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable> {
909 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportCacheable>::into(::std::clone::Clone::clone(self)))
910 }
911 }
912 #[cfg(feature = "Win32_System_Ole_Automation")]
913 impl ::std::convert::From<IWdsTransportDiagnosticsPolicy> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportDiagnosticsPolicy) -> Self914 fn from(value: IWdsTransportDiagnosticsPolicy) -> Self {
915 unsafe { ::std::mem::transmute(value) }
916 }
917 }
918 #[cfg(feature = "Win32_System_Ole_Automation")]
919 impl ::std::convert::From<&IWdsTransportDiagnosticsPolicy> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportDiagnosticsPolicy) -> Self920 fn from(value: &IWdsTransportDiagnosticsPolicy) -> Self {
921 ::std::convert::From::from(::std::clone::Clone::clone(value))
922 }
923 }
924 #[cfg(feature = "Win32_System_Ole_Automation")]
925 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportDiagnosticsPolicy {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>926 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
927 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
928 }
929 }
930 #[cfg(feature = "Win32_System_Ole_Automation")]
931 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportDiagnosticsPolicy {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>932 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
933 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
934 }
935 }
936 #[repr(C)]
937 #[doc(hidden)]
938 pub struct IWdsTransportDiagnosticsPolicy_abi(
939 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
940 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
941 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
942 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
943 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
944 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
945 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
946 #[cfg(not(feature = "Win32_Foundation"))] usize,
947 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
948 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
949 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
950 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbdirty: *mut i16) -> ::windows::runtime::HRESULT,
951 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
952 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
953 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
954 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbenabled: *mut i16) -> ::windows::runtime::HRESULT,
955 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, benabled: i16) -> ::windows::runtime::HRESULT,
956 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulcomponents: *mut u32) -> ::windows::runtime::HRESULT,
957 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulcomponents: u32) -> ::windows::runtime::HRESULT,
958 );
959 #[repr(transparent)]
960 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
961 pub struct IWdsTransportManager(::windows::runtime::IUnknown);
962 impl IWdsTransportManager {
963 #[cfg(feature = "Win32_Foundation")]
GetWdsTransportServer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszservername: Param0) -> ::windows::runtime::Result<IWdsTransportServer>964 pub unsafe fn GetWdsTransportServer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszservername: Param0) -> ::windows::runtime::Result<IWdsTransportServer> {
965 let mut result__: <IWdsTransportServer as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
966 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), bszservername.into_param().abi(), &mut result__).from_abi::<IWdsTransportServer>(result__)
967 }
968 }
969 unsafe impl ::windows::runtime::Interface for IWdsTransportManager {
970 type Vtable = IWdsTransportManager_abi;
971 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1527592437, 6931, 19197, [184, 120, 101, 38, 220, 52, 11, 93]);
972 }
973 impl ::std::convert::From<IWdsTransportManager> for ::windows::runtime::IUnknown {
from(value: IWdsTransportManager) -> Self974 fn from(value: IWdsTransportManager) -> Self {
975 unsafe { ::std::mem::transmute(value) }
976 }
977 }
978 impl ::std::convert::From<&IWdsTransportManager> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportManager) -> Self979 fn from(value: &IWdsTransportManager) -> Self {
980 ::std::convert::From::from(::std::clone::Clone::clone(value))
981 }
982 }
983 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>984 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
985 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
986 }
987 }
988 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>989 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
990 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
991 }
992 }
993 #[cfg(feature = "Win32_System_Ole_Automation")]
994 impl ::std::convert::From<IWdsTransportManager> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportManager) -> Self995 fn from(value: IWdsTransportManager) -> Self {
996 unsafe { ::std::mem::transmute(value) }
997 }
998 }
999 #[cfg(feature = "Win32_System_Ole_Automation")]
1000 impl ::std::convert::From<&IWdsTransportManager> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportManager) -> Self1001 fn from(value: &IWdsTransportManager) -> Self {
1002 ::std::convert::From::from(::std::clone::Clone::clone(value))
1003 }
1004 }
1005 #[cfg(feature = "Win32_System_Ole_Automation")]
1006 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1007 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1008 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
1009 }
1010 }
1011 #[cfg(feature = "Win32_System_Ole_Automation")]
1012 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1013 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1014 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
1015 }
1016 }
1017 #[repr(C)]
1018 #[doc(hidden)]
1019 pub struct IWdsTransportManager_abi(
1020 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1021 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1022 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1023 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
1024 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1025 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
1026 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
1027 #[cfg(not(feature = "Win32_Foundation"))] usize,
1028 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
1029 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
1030 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
1031 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszservername: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppwdstransportserver: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1032 #[cfg(not(feature = "Win32_Foundation"))] usize,
1033 );
1034 #[repr(transparent)]
1035 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
1036 pub struct IWdsTransportMulticastSessionPolicy(::windows::runtime::IUnknown);
1037 impl IWdsTransportMulticastSessionPolicy {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1038 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
1039 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1040 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1041 }
1042 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1043 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
1044 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1045 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
1046 }
1047 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1048 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
1049 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
1050 }
1051 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1052 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
1053 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
1054 }
Dirty(&self) -> ::windows::runtime::Result<i16>1055 pub unsafe fn Dirty(&self) -> ::windows::runtime::Result<i16> {
1056 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1057 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1058 }
Discard(&self) -> ::windows::runtime::Result<()>1059 pub unsafe fn Discard(&self) -> ::windows::runtime::Result<()> {
1060 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self)).ok()
1061 }
Refresh(&self) -> ::windows::runtime::Result<()>1062 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
1063 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self)).ok()
1064 }
Commit(&self) -> ::windows::runtime::Result<()>1065 pub unsafe fn Commit(&self) -> ::windows::runtime::Result<()> {
1066 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self)).ok()
1067 }
SlowClientHandling(&self) -> ::windows::runtime::Result<WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE>1068 pub unsafe fn SlowClientHandling(&self) -> ::windows::runtime::Result<WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE> {
1069 let mut result__: <WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1070 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE>(result__)
1071 }
SetSlowClientHandling(&self, slowclienthandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> ::windows::runtime::Result<()>1072 pub unsafe fn SetSlowClientHandling(&self, slowclienthandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> ::windows::runtime::Result<()> {
1073 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(slowclienthandling)).ok()
1074 }
AutoDisconnectThreshold(&self) -> ::windows::runtime::Result<u32>1075 pub unsafe fn AutoDisconnectThreshold(&self) -> ::windows::runtime::Result<u32> {
1076 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1077 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1078 }
SetAutoDisconnectThreshold(&self, ulthreshold: u32) -> ::windows::runtime::Result<()>1079 pub unsafe fn SetAutoDisconnectThreshold(&self, ulthreshold: u32) -> ::windows::runtime::Result<()> {
1080 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulthreshold)).ok()
1081 }
MultistreamStreamCount(&self) -> ::windows::runtime::Result<u32>1082 pub unsafe fn MultistreamStreamCount(&self) -> ::windows::runtime::Result<u32> {
1083 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1084 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1085 }
SetMultistreamStreamCount(&self, ulstreamcount: u32) -> ::windows::runtime::Result<()>1086 pub unsafe fn SetMultistreamStreamCount(&self, ulstreamcount: u32) -> ::windows::runtime::Result<()> {
1087 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulstreamcount)).ok()
1088 }
SlowClientFallback(&self) -> ::windows::runtime::Result<i16>1089 pub unsafe fn SlowClientFallback(&self) -> ::windows::runtime::Result<i16> {
1090 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1091 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1092 }
SetSlowClientFallback(&self, bclientfallback: i16) -> ::windows::runtime::Result<()>1093 pub unsafe fn SetSlowClientFallback(&self, bclientfallback: i16) -> ::windows::runtime::Result<()> {
1094 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(bclientfallback)).ok()
1095 }
1096 }
1097 unsafe impl ::windows::runtime::Interface for IWdsTransportMulticastSessionPolicy {
1098 type Vtable = IWdsTransportMulticastSessionPolicy_abi;
1099 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1314345935, 26860, 17668, [169, 81, 74, 0, 50, 102, 96, 107]);
1100 }
1101 impl ::std::convert::From<IWdsTransportMulticastSessionPolicy> for ::windows::runtime::IUnknown {
from(value: IWdsTransportMulticastSessionPolicy) -> Self1102 fn from(value: IWdsTransportMulticastSessionPolicy) -> Self {
1103 unsafe { ::std::mem::transmute(value) }
1104 }
1105 }
1106 impl ::std::convert::From<&IWdsTransportMulticastSessionPolicy> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportMulticastSessionPolicy) -> Self1107 fn from(value: &IWdsTransportMulticastSessionPolicy) -> Self {
1108 ::std::convert::From::from(::std::clone::Clone::clone(value))
1109 }
1110 }
1111 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportMulticastSessionPolicy {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1112 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1113 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
1114 }
1115 }
1116 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportMulticastSessionPolicy {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1117 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1118 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
1119 }
1120 }
1121 impl ::std::convert::From<IWdsTransportMulticastSessionPolicy> for IWdsTransportCacheable {
from(value: IWdsTransportMulticastSessionPolicy) -> Self1122 fn from(value: IWdsTransportMulticastSessionPolicy) -> Self {
1123 unsafe { ::std::mem::transmute(value) }
1124 }
1125 }
1126 impl ::std::convert::From<&IWdsTransportMulticastSessionPolicy> for IWdsTransportCacheable {
from(value: &IWdsTransportMulticastSessionPolicy) -> Self1127 fn from(value: &IWdsTransportMulticastSessionPolicy) -> Self {
1128 ::std::convert::From::from(::std::clone::Clone::clone(value))
1129 }
1130 }
1131 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportCacheable> for IWdsTransportMulticastSessionPolicy {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable>1132 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable> {
1133 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportCacheable>::into(self))
1134 }
1135 }
1136 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportCacheable> for &IWdsTransportMulticastSessionPolicy {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable>1137 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable> {
1138 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportCacheable>::into(::std::clone::Clone::clone(self)))
1139 }
1140 }
1141 #[cfg(feature = "Win32_System_Ole_Automation")]
1142 impl ::std::convert::From<IWdsTransportMulticastSessionPolicy> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportMulticastSessionPolicy) -> Self1143 fn from(value: IWdsTransportMulticastSessionPolicy) -> Self {
1144 unsafe { ::std::mem::transmute(value) }
1145 }
1146 }
1147 #[cfg(feature = "Win32_System_Ole_Automation")]
1148 impl ::std::convert::From<&IWdsTransportMulticastSessionPolicy> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportMulticastSessionPolicy) -> Self1149 fn from(value: &IWdsTransportMulticastSessionPolicy) -> Self {
1150 ::std::convert::From::from(::std::clone::Clone::clone(value))
1151 }
1152 }
1153 #[cfg(feature = "Win32_System_Ole_Automation")]
1154 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportMulticastSessionPolicy {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1155 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1156 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
1157 }
1158 }
1159 #[cfg(feature = "Win32_System_Ole_Automation")]
1160 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportMulticastSessionPolicy {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1161 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1162 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
1163 }
1164 }
1165 #[repr(C)]
1166 #[doc(hidden)]
1167 pub struct IWdsTransportMulticastSessionPolicy_abi(
1168 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1169 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1170 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1171 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
1172 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1173 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
1174 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
1175 #[cfg(not(feature = "Win32_Foundation"))] usize,
1176 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
1177 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
1178 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
1179 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbdirty: *mut i16) -> ::windows::runtime::HRESULT,
1180 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1181 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1182 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1183 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pslowclienthandling: *mut WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> ::windows::runtime::HRESULT,
1184 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, slowclienthandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> ::windows::runtime::HRESULT,
1185 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulthreshold: *mut u32) -> ::windows::runtime::HRESULT,
1186 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulthreshold: u32) -> ::windows::runtime::HRESULT,
1187 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulstreamcount: *mut u32) -> ::windows::runtime::HRESULT,
1188 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulstreamcount: u32) -> ::windows::runtime::HRESULT,
1189 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbclientfallback: *mut i16) -> ::windows::runtime::HRESULT,
1190 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bclientfallback: i16) -> ::windows::runtime::HRESULT,
1191 );
1192 #[repr(transparent)]
1193 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
1194 pub struct IWdsTransportNamespace(::windows::runtime::IUnknown);
1195 impl IWdsTransportNamespace {
Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE>1196 pub unsafe fn Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE> {
1197 let mut result__: <WDSTRANSPORT_NAMESPACE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1198 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_NAMESPACE_TYPE>(result__)
1199 }
Id(&self) -> ::windows::runtime::Result<u32>1200 pub unsafe fn Id(&self) -> ::windows::runtime::Result<u32> {
1201 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1202 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1203 }
1204 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1205 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1206 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1207 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1208 }
1209 #[cfg(feature = "Win32_Foundation")]
SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()>1210 pub unsafe fn SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()> {
1211 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), bszname.into_param().abi()).ok()
1212 }
1213 #[cfg(feature = "Win32_Foundation")]
FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1214 pub unsafe fn FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1215 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1216 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1217 }
1218 #[cfg(feature = "Win32_Foundation")]
SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()>1219 pub unsafe fn SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()> {
1220 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), bszfriendlyname.into_param().abi()).ok()
1221 }
1222 #[cfg(feature = "Win32_Foundation")]
Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1223 pub unsafe fn Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1224 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1225 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1226 }
1227 #[cfg(feature = "Win32_Foundation")]
SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()>1228 pub unsafe fn SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()> {
1229 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), bszdescription.into_param().abi()).ok()
1230 }
1231 #[cfg(feature = "Win32_Foundation")]
ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1232 pub unsafe fn ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1233 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1234 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1235 }
1236 #[cfg(feature = "Win32_Foundation")]
SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()>1237 pub unsafe fn SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()> {
1238 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), bszcontentprovider.into_param().abi()).ok()
1239 }
1240 #[cfg(feature = "Win32_Foundation")]
Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1241 pub unsafe fn Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1242 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1243 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1244 }
1245 #[cfg(feature = "Win32_Foundation")]
SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()>1246 pub unsafe fn SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()> {
1247 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), bszconfiguration.into_param().abi()).ok()
1248 }
Registered(&self) -> ::windows::runtime::Result<i16>1249 pub unsafe fn Registered(&self) -> ::windows::runtime::Result<i16> {
1250 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1251 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1252 }
Tombstoned(&self) -> ::windows::runtime::Result<i16>1253 pub unsafe fn Tombstoned(&self) -> ::windows::runtime::Result<i16> {
1254 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1255 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1256 }
TombstoneTime(&self) -> ::windows::runtime::Result<f64>1257 pub unsafe fn TombstoneTime(&self) -> ::windows::runtime::Result<f64> {
1258 let mut result__: <f64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1259 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__)
1260 }
TransmissionStarted(&self) -> ::windows::runtime::Result<i16>1261 pub unsafe fn TransmissionStarted(&self) -> ::windows::runtime::Result<i16> {
1262 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1263 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1264 }
Register(&self) -> ::windows::runtime::Result<()>1265 pub unsafe fn Register(&self) -> ::windows::runtime::Result<()> {
1266 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self)).ok()
1267 }
Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()>1268 pub unsafe fn Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()> {
1269 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(bterminatesessions)).ok()
1270 }
Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace>1271 pub unsafe fn Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace> {
1272 let mut result__: <IWdsTransportNamespace as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1273 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportNamespace>(result__)
1274 }
Refresh(&self) -> ::windows::runtime::Result<()>1275 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
1276 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self)).ok()
1277 }
RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection>1278 pub unsafe fn RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
1279 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1280 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
1281 }
1282 }
1283 unsafe impl ::windows::runtime::Interface for IWdsTransportNamespace {
1284 type Vtable = IWdsTransportNamespace_abi;
1285 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4199948119, 64495, 20179, [176, 86, 18, 124, 177, 179, 59, 132]);
1286 }
1287 impl ::std::convert::From<IWdsTransportNamespace> for ::windows::runtime::IUnknown {
from(value: IWdsTransportNamespace) -> Self1288 fn from(value: IWdsTransportNamespace) -> Self {
1289 unsafe { ::std::mem::transmute(value) }
1290 }
1291 }
1292 impl ::std::convert::From<&IWdsTransportNamespace> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportNamespace) -> Self1293 fn from(value: &IWdsTransportNamespace) -> Self {
1294 ::std::convert::From::from(::std::clone::Clone::clone(value))
1295 }
1296 }
1297 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportNamespace {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1298 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1299 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
1300 }
1301 }
1302 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportNamespace {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1303 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1304 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
1305 }
1306 }
1307 #[cfg(feature = "Win32_System_Ole_Automation")]
1308 impl ::std::convert::From<IWdsTransportNamespace> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportNamespace) -> Self1309 fn from(value: IWdsTransportNamespace) -> Self {
1310 unsafe { ::std::mem::transmute(value) }
1311 }
1312 }
1313 #[cfg(feature = "Win32_System_Ole_Automation")]
1314 impl ::std::convert::From<&IWdsTransportNamespace> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportNamespace) -> Self1315 fn from(value: &IWdsTransportNamespace) -> Self {
1316 ::std::convert::From::from(::std::clone::Clone::clone(value))
1317 }
1318 }
1319 #[cfg(feature = "Win32_System_Ole_Automation")]
1320 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportNamespace {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1321 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1322 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
1323 }
1324 }
1325 #[cfg(feature = "Win32_System_Ole_Automation")]
1326 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportNamespace {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1327 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1328 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
1329 }
1330 }
1331 #[repr(C)]
1332 #[doc(hidden)]
1333 pub struct IWdsTransportNamespace_abi(
1334 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1335 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1336 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1337 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
1338 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1339 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
1340 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
1341 #[cfg(not(feature = "Win32_Foundation"))] usize,
1342 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
1343 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
1344 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
1345 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut WDSTRANSPORT_NAMESPACE_TYPE) -> ::windows::runtime::HRESULT,
1346 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulid: *mut u32) -> ::windows::runtime::HRESULT,
1347 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1348 #[cfg(not(feature = "Win32_Foundation"))] usize,
1349 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1350 #[cfg(not(feature = "Win32_Foundation"))] usize,
1351 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszfriendlyname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1352 #[cfg(not(feature = "Win32_Foundation"))] usize,
1353 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszfriendlyname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1354 #[cfg(not(feature = "Win32_Foundation"))] usize,
1355 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszdescription: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1356 #[cfg(not(feature = "Win32_Foundation"))] usize,
1357 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszdescription: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1358 #[cfg(not(feature = "Win32_Foundation"))] usize,
1359 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszcontentprovider: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1360 #[cfg(not(feature = "Win32_Foundation"))] usize,
1361 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszcontentprovider: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1362 #[cfg(not(feature = "Win32_Foundation"))] usize,
1363 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszconfiguration: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1364 #[cfg(not(feature = "Win32_Foundation"))] usize,
1365 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszconfiguration: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1366 #[cfg(not(feature = "Win32_Foundation"))] usize,
1367 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbregistered: *mut i16) -> ::windows::runtime::HRESULT,
1368 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtombstoned: *mut i16) -> ::windows::runtime::HRESULT,
1369 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptombstonetime: *mut f64) -> ::windows::runtime::HRESULT,
1370 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtransmissionstarted: *mut i16) -> ::windows::runtime::HRESULT,
1371 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1372 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bterminatesessions: i16) -> ::windows::runtime::HRESULT,
1373 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportnamespaceclone: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1374 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1375 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportcontents: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1376 );
1377 #[repr(transparent)]
1378 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
1379 pub struct IWdsTransportNamespaceAutoCast(::windows::runtime::IUnknown);
1380 impl IWdsTransportNamespaceAutoCast {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1381 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
1382 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1383 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1384 }
1385 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1386 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
1387 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1388 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
1389 }
1390 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1391 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
1392 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
1393 }
1394 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1395 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
1396 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
1397 }
Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE>1398 pub unsafe fn Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE> {
1399 let mut result__: <WDSTRANSPORT_NAMESPACE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1400 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_NAMESPACE_TYPE>(result__)
1401 }
Id(&self) -> ::windows::runtime::Result<u32>1402 pub unsafe fn Id(&self) -> ::windows::runtime::Result<u32> {
1403 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1404 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1405 }
1406 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1407 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1408 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1409 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1410 }
1411 #[cfg(feature = "Win32_Foundation")]
SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()>1412 pub unsafe fn SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()> {
1413 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), bszname.into_param().abi()).ok()
1414 }
1415 #[cfg(feature = "Win32_Foundation")]
FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1416 pub unsafe fn FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1417 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1418 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1419 }
1420 #[cfg(feature = "Win32_Foundation")]
SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()>1421 pub unsafe fn SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()> {
1422 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), bszfriendlyname.into_param().abi()).ok()
1423 }
1424 #[cfg(feature = "Win32_Foundation")]
Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1425 pub unsafe fn Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1426 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1427 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1428 }
1429 #[cfg(feature = "Win32_Foundation")]
SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()>1430 pub unsafe fn SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()> {
1431 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), bszdescription.into_param().abi()).ok()
1432 }
1433 #[cfg(feature = "Win32_Foundation")]
ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1434 pub unsafe fn ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1435 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1436 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1437 }
1438 #[cfg(feature = "Win32_Foundation")]
SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()>1439 pub unsafe fn SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()> {
1440 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), bszcontentprovider.into_param().abi()).ok()
1441 }
1442 #[cfg(feature = "Win32_Foundation")]
Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1443 pub unsafe fn Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1444 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1445 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1446 }
1447 #[cfg(feature = "Win32_Foundation")]
SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()>1448 pub unsafe fn SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()> {
1449 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), bszconfiguration.into_param().abi()).ok()
1450 }
Registered(&self) -> ::windows::runtime::Result<i16>1451 pub unsafe fn Registered(&self) -> ::windows::runtime::Result<i16> {
1452 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1453 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1454 }
Tombstoned(&self) -> ::windows::runtime::Result<i16>1455 pub unsafe fn Tombstoned(&self) -> ::windows::runtime::Result<i16> {
1456 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1457 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1458 }
TombstoneTime(&self) -> ::windows::runtime::Result<f64>1459 pub unsafe fn TombstoneTime(&self) -> ::windows::runtime::Result<f64> {
1460 let mut result__: <f64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1461 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__)
1462 }
TransmissionStarted(&self) -> ::windows::runtime::Result<i16>1463 pub unsafe fn TransmissionStarted(&self) -> ::windows::runtime::Result<i16> {
1464 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1465 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1466 }
Register(&self) -> ::windows::runtime::Result<()>1467 pub unsafe fn Register(&self) -> ::windows::runtime::Result<()> {
1468 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self)).ok()
1469 }
Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()>1470 pub unsafe fn Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()> {
1471 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(bterminatesessions)).ok()
1472 }
Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace>1473 pub unsafe fn Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace> {
1474 let mut result__: <IWdsTransportNamespace as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1475 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportNamespace>(result__)
1476 }
Refresh(&self) -> ::windows::runtime::Result<()>1477 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
1478 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self)).ok()
1479 }
RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection>1480 pub unsafe fn RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
1481 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1482 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
1483 }
1484 }
1485 unsafe impl ::windows::runtime::Interface for IWdsTransportNamespaceAutoCast {
1486 type Vtable = IWdsTransportNamespaceAutoCast_abi;
1487 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2912098930, 50365, 19521, [143, 188, 89, 201, 199, 72, 223, 158]);
1488 }
1489 impl ::std::convert::From<IWdsTransportNamespaceAutoCast> for ::windows::runtime::IUnknown {
from(value: IWdsTransportNamespaceAutoCast) -> Self1490 fn from(value: IWdsTransportNamespaceAutoCast) -> Self {
1491 unsafe { ::std::mem::transmute(value) }
1492 }
1493 }
1494 impl ::std::convert::From<&IWdsTransportNamespaceAutoCast> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportNamespaceAutoCast) -> Self1495 fn from(value: &IWdsTransportNamespaceAutoCast) -> Self {
1496 ::std::convert::From::from(::std::clone::Clone::clone(value))
1497 }
1498 }
1499 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportNamespaceAutoCast {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1500 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1501 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
1502 }
1503 }
1504 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportNamespaceAutoCast {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1505 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1506 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
1507 }
1508 }
1509 impl ::std::convert::From<IWdsTransportNamespaceAutoCast> for IWdsTransportNamespace {
from(value: IWdsTransportNamespaceAutoCast) -> Self1510 fn from(value: IWdsTransportNamespaceAutoCast) -> Self {
1511 unsafe { ::std::mem::transmute(value) }
1512 }
1513 }
1514 impl ::std::convert::From<&IWdsTransportNamespaceAutoCast> for IWdsTransportNamespace {
from(value: &IWdsTransportNamespaceAutoCast) -> Self1515 fn from(value: &IWdsTransportNamespaceAutoCast) -> Self {
1516 ::std::convert::From::from(::std::clone::Clone::clone(value))
1517 }
1518 }
1519 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespace> for IWdsTransportNamespaceAutoCast {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace>1520 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace> {
1521 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespace>::into(self))
1522 }
1523 }
1524 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespace> for &IWdsTransportNamespaceAutoCast {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace>1525 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace> {
1526 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespace>::into(::std::clone::Clone::clone(self)))
1527 }
1528 }
1529 #[cfg(feature = "Win32_System_Ole_Automation")]
1530 impl ::std::convert::From<IWdsTransportNamespaceAutoCast> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportNamespaceAutoCast) -> Self1531 fn from(value: IWdsTransportNamespaceAutoCast) -> Self {
1532 unsafe { ::std::mem::transmute(value) }
1533 }
1534 }
1535 #[cfg(feature = "Win32_System_Ole_Automation")]
1536 impl ::std::convert::From<&IWdsTransportNamespaceAutoCast> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportNamespaceAutoCast) -> Self1537 fn from(value: &IWdsTransportNamespaceAutoCast) -> Self {
1538 ::std::convert::From::from(::std::clone::Clone::clone(value))
1539 }
1540 }
1541 #[cfg(feature = "Win32_System_Ole_Automation")]
1542 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportNamespaceAutoCast {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1543 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1544 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
1545 }
1546 }
1547 #[cfg(feature = "Win32_System_Ole_Automation")]
1548 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportNamespaceAutoCast {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1549 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1550 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
1551 }
1552 }
1553 #[repr(C)]
1554 #[doc(hidden)]
1555 pub struct IWdsTransportNamespaceAutoCast_abi(
1556 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1557 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1558 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1559 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
1560 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1561 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
1562 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
1563 #[cfg(not(feature = "Win32_Foundation"))] usize,
1564 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
1565 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
1566 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
1567 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut WDSTRANSPORT_NAMESPACE_TYPE) -> ::windows::runtime::HRESULT,
1568 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulid: *mut u32) -> ::windows::runtime::HRESULT,
1569 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1570 #[cfg(not(feature = "Win32_Foundation"))] usize,
1571 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1572 #[cfg(not(feature = "Win32_Foundation"))] usize,
1573 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszfriendlyname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1574 #[cfg(not(feature = "Win32_Foundation"))] usize,
1575 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszfriendlyname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1576 #[cfg(not(feature = "Win32_Foundation"))] usize,
1577 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszdescription: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1578 #[cfg(not(feature = "Win32_Foundation"))] usize,
1579 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszdescription: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1580 #[cfg(not(feature = "Win32_Foundation"))] usize,
1581 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszcontentprovider: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1582 #[cfg(not(feature = "Win32_Foundation"))] usize,
1583 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszcontentprovider: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1584 #[cfg(not(feature = "Win32_Foundation"))] usize,
1585 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszconfiguration: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1586 #[cfg(not(feature = "Win32_Foundation"))] usize,
1587 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszconfiguration: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1588 #[cfg(not(feature = "Win32_Foundation"))] usize,
1589 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbregistered: *mut i16) -> ::windows::runtime::HRESULT,
1590 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtombstoned: *mut i16) -> ::windows::runtime::HRESULT,
1591 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptombstonetime: *mut f64) -> ::windows::runtime::HRESULT,
1592 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtransmissionstarted: *mut i16) -> ::windows::runtime::HRESULT,
1593 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1594 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bterminatesessions: i16) -> ::windows::runtime::HRESULT,
1595 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportnamespaceclone: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1596 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1597 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportcontents: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1598 );
1599 #[repr(transparent)]
1600 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
1601 pub struct IWdsTransportNamespaceManager(::windows::runtime::IUnknown);
1602 impl IWdsTransportNamespaceManager {
1603 #[cfg(feature = "Win32_Foundation")]
CreateNamespace<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: Param1, bszcontentprovider: Param2, bszconfiguration: Param3) -> ::windows::runtime::Result<IWdsTransportNamespace>1604 pub unsafe fn CreateNamespace<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: Param1, bszcontentprovider: Param2, bszconfiguration: Param3) -> ::windows::runtime::Result<IWdsTransportNamespace> {
1605 let mut result__: <IWdsTransportNamespace as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1606 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(namespacetype), bsznamespacename.into_param().abi(), bszcontentprovider.into_param().abi(), bszconfiguration.into_param().abi(), &mut result__).from_abi::<IWdsTransportNamespace>(result__)
1607 }
1608 #[cfg(feature = "Win32_Foundation")]
RetrieveNamespace<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bsznamespacename: Param0) -> ::windows::runtime::Result<IWdsTransportNamespace>1609 pub unsafe fn RetrieveNamespace<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bsznamespacename: Param0) -> ::windows::runtime::Result<IWdsTransportNamespace> {
1610 let mut result__: <IWdsTransportNamespace as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1611 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), bsznamespacename.into_param().abi(), &mut result__).from_abi::<IWdsTransportNamespace>(result__)
1612 }
1613 #[cfg(feature = "Win32_Foundation")]
RetrieveNamespaces<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0, bsznamespacename: Param1, bincludetombstones: i16) -> ::windows::runtime::Result<IWdsTransportCollection>1614 pub unsafe fn RetrieveNamespaces<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0, bsznamespacename: Param1, bincludetombstones: i16) -> ::windows::runtime::Result<IWdsTransportCollection> {
1615 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1616 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), bszcontentprovider.into_param().abi(), bsznamespacename.into_param().abi(), ::std::mem::transmute(bincludetombstones), &mut result__).from_abi::<IWdsTransportCollection>(result__)
1617 }
1618 }
1619 unsafe impl ::windows::runtime::Interface for IWdsTransportNamespaceManager {
1620 type Vtable = IWdsTransportNamespaceManager_abi;
1621 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1042471414, 14199, 19864, [131, 225, 249, 134, 150, 113, 123, 163]);
1622 }
1623 impl ::std::convert::From<IWdsTransportNamespaceManager> for ::windows::runtime::IUnknown {
from(value: IWdsTransportNamespaceManager) -> Self1624 fn from(value: IWdsTransportNamespaceManager) -> Self {
1625 unsafe { ::std::mem::transmute(value) }
1626 }
1627 }
1628 impl ::std::convert::From<&IWdsTransportNamespaceManager> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportNamespaceManager) -> Self1629 fn from(value: &IWdsTransportNamespaceManager) -> Self {
1630 ::std::convert::From::from(::std::clone::Clone::clone(value))
1631 }
1632 }
1633 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportNamespaceManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1634 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1635 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
1636 }
1637 }
1638 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportNamespaceManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1639 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1640 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
1641 }
1642 }
1643 #[cfg(feature = "Win32_System_Ole_Automation")]
1644 impl ::std::convert::From<IWdsTransportNamespaceManager> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportNamespaceManager) -> Self1645 fn from(value: IWdsTransportNamespaceManager) -> Self {
1646 unsafe { ::std::mem::transmute(value) }
1647 }
1648 }
1649 #[cfg(feature = "Win32_System_Ole_Automation")]
1650 impl ::std::convert::From<&IWdsTransportNamespaceManager> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportNamespaceManager) -> Self1651 fn from(value: &IWdsTransportNamespaceManager) -> Self {
1652 ::std::convert::From::from(::std::clone::Clone::clone(value))
1653 }
1654 }
1655 #[cfg(feature = "Win32_System_Ole_Automation")]
1656 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportNamespaceManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1657 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1658 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
1659 }
1660 }
1661 #[cfg(feature = "Win32_System_Ole_Automation")]
1662 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportNamespaceManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1663 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1664 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
1665 }
1666 }
1667 #[repr(C)]
1668 #[doc(hidden)]
1669 pub struct IWdsTransportNamespaceManager_abi(
1670 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1671 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1672 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1673 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
1674 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1675 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
1676 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
1677 #[cfg(not(feature = "Win32_Foundation"))] usize,
1678 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
1679 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
1680 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
1681 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bszcontentprovider: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bszconfiguration: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppwdstransportnamespace: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1682 #[cfg(not(feature = "Win32_Foundation"))] usize,
1683 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bsznamespacename: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppwdstransportnamespace: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1684 #[cfg(not(feature = "Win32_Foundation"))] usize,
1685 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszcontentprovider: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bsznamespacename: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bincludetombstones: i16, ppwdstransportnamespaces: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1686 #[cfg(not(feature = "Win32_Foundation"))] usize,
1687 );
1688 #[repr(transparent)]
1689 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
1690 pub struct IWdsTransportNamespaceScheduledCast(::windows::runtime::IUnknown);
1691 impl IWdsTransportNamespaceScheduledCast {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1692 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
1693 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1694 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1695 }
1696 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1697 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
1698 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1699 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
1700 }
1701 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1702 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
1703 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
1704 }
1705 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1706 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
1707 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
1708 }
Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE>1709 pub unsafe fn Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE> {
1710 let mut result__: <WDSTRANSPORT_NAMESPACE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1711 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_NAMESPACE_TYPE>(result__)
1712 }
Id(&self) -> ::windows::runtime::Result<u32>1713 pub unsafe fn Id(&self) -> ::windows::runtime::Result<u32> {
1714 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1715 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1716 }
1717 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1718 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1719 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1720 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1721 }
1722 #[cfg(feature = "Win32_Foundation")]
SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()>1723 pub unsafe fn SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()> {
1724 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), bszname.into_param().abi()).ok()
1725 }
1726 #[cfg(feature = "Win32_Foundation")]
FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1727 pub unsafe fn FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1728 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1729 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1730 }
1731 #[cfg(feature = "Win32_Foundation")]
SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()>1732 pub unsafe fn SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()> {
1733 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), bszfriendlyname.into_param().abi()).ok()
1734 }
1735 #[cfg(feature = "Win32_Foundation")]
Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1736 pub unsafe fn Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1737 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1738 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1739 }
1740 #[cfg(feature = "Win32_Foundation")]
SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()>1741 pub unsafe fn SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()> {
1742 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), bszdescription.into_param().abi()).ok()
1743 }
1744 #[cfg(feature = "Win32_Foundation")]
ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1745 pub unsafe fn ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1746 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1747 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1748 }
1749 #[cfg(feature = "Win32_Foundation")]
SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()>1750 pub unsafe fn SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()> {
1751 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), bszcontentprovider.into_param().abi()).ok()
1752 }
1753 #[cfg(feature = "Win32_Foundation")]
Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1754 pub unsafe fn Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1755 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1756 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1757 }
1758 #[cfg(feature = "Win32_Foundation")]
SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()>1759 pub unsafe fn SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()> {
1760 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), bszconfiguration.into_param().abi()).ok()
1761 }
Registered(&self) -> ::windows::runtime::Result<i16>1762 pub unsafe fn Registered(&self) -> ::windows::runtime::Result<i16> {
1763 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1764 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1765 }
Tombstoned(&self) -> ::windows::runtime::Result<i16>1766 pub unsafe fn Tombstoned(&self) -> ::windows::runtime::Result<i16> {
1767 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1768 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1769 }
TombstoneTime(&self) -> ::windows::runtime::Result<f64>1770 pub unsafe fn TombstoneTime(&self) -> ::windows::runtime::Result<f64> {
1771 let mut result__: <f64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1772 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__)
1773 }
TransmissionStarted(&self) -> ::windows::runtime::Result<i16>1774 pub unsafe fn TransmissionStarted(&self) -> ::windows::runtime::Result<i16> {
1775 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1776 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1777 }
Register(&self) -> ::windows::runtime::Result<()>1778 pub unsafe fn Register(&self) -> ::windows::runtime::Result<()> {
1779 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self)).ok()
1780 }
Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()>1781 pub unsafe fn Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()> {
1782 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(bterminatesessions)).ok()
1783 }
Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace>1784 pub unsafe fn Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace> {
1785 let mut result__: <IWdsTransportNamespace as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1786 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportNamespace>(result__)
1787 }
Refresh(&self) -> ::windows::runtime::Result<()>1788 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
1789 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self)).ok()
1790 }
RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection>1791 pub unsafe fn RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
1792 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1793 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
1794 }
StartTransmission(&self) -> ::windows::runtime::Result<()>1795 pub unsafe fn StartTransmission(&self) -> ::windows::runtime::Result<()> {
1796 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self)).ok()
1797 }
1798 }
1799 unsafe impl ::windows::runtime::Interface for IWdsTransportNamespaceScheduledCast {
1800 type Vtable = IWdsTransportNamespaceScheduledCast_abi;
1801 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(943771343, 55148, 16750, [164, 204, 49, 199, 65, 210, 135, 75]);
1802 }
1803 impl ::std::convert::From<IWdsTransportNamespaceScheduledCast> for ::windows::runtime::IUnknown {
from(value: IWdsTransportNamespaceScheduledCast) -> Self1804 fn from(value: IWdsTransportNamespaceScheduledCast) -> Self {
1805 unsafe { ::std::mem::transmute(value) }
1806 }
1807 }
1808 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCast> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportNamespaceScheduledCast) -> Self1809 fn from(value: &IWdsTransportNamespaceScheduledCast) -> Self {
1810 ::std::convert::From::from(::std::clone::Clone::clone(value))
1811 }
1812 }
1813 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportNamespaceScheduledCast {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1814 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1815 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
1816 }
1817 }
1818 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportNamespaceScheduledCast {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1819 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
1820 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
1821 }
1822 }
1823 impl ::std::convert::From<IWdsTransportNamespaceScheduledCast> for IWdsTransportNamespace {
from(value: IWdsTransportNamespaceScheduledCast) -> Self1824 fn from(value: IWdsTransportNamespaceScheduledCast) -> Self {
1825 unsafe { ::std::mem::transmute(value) }
1826 }
1827 }
1828 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCast> for IWdsTransportNamespace {
from(value: &IWdsTransportNamespaceScheduledCast) -> Self1829 fn from(value: &IWdsTransportNamespaceScheduledCast) -> Self {
1830 ::std::convert::From::from(::std::clone::Clone::clone(value))
1831 }
1832 }
1833 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespace> for IWdsTransportNamespaceScheduledCast {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace>1834 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace> {
1835 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespace>::into(self))
1836 }
1837 }
1838 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespace> for &IWdsTransportNamespaceScheduledCast {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace>1839 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace> {
1840 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespace>::into(::std::clone::Clone::clone(self)))
1841 }
1842 }
1843 #[cfg(feature = "Win32_System_Ole_Automation")]
1844 impl ::std::convert::From<IWdsTransportNamespaceScheduledCast> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportNamespaceScheduledCast) -> Self1845 fn from(value: IWdsTransportNamespaceScheduledCast) -> Self {
1846 unsafe { ::std::mem::transmute(value) }
1847 }
1848 }
1849 #[cfg(feature = "Win32_System_Ole_Automation")]
1850 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCast> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportNamespaceScheduledCast) -> Self1851 fn from(value: &IWdsTransportNamespaceScheduledCast) -> Self {
1852 ::std::convert::From::from(::std::clone::Clone::clone(value))
1853 }
1854 }
1855 #[cfg(feature = "Win32_System_Ole_Automation")]
1856 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportNamespaceScheduledCast {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1857 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1858 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
1859 }
1860 }
1861 #[cfg(feature = "Win32_System_Ole_Automation")]
1862 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportNamespaceScheduledCast {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1863 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
1864 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
1865 }
1866 }
1867 #[repr(C)]
1868 #[doc(hidden)]
1869 pub struct IWdsTransportNamespaceScheduledCast_abi(
1870 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1871 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1872 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
1873 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
1874 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1875 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
1876 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
1877 #[cfg(not(feature = "Win32_Foundation"))] usize,
1878 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
1879 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
1880 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
1881 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut WDSTRANSPORT_NAMESPACE_TYPE) -> ::windows::runtime::HRESULT,
1882 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulid: *mut u32) -> ::windows::runtime::HRESULT,
1883 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1884 #[cfg(not(feature = "Win32_Foundation"))] usize,
1885 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1886 #[cfg(not(feature = "Win32_Foundation"))] usize,
1887 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszfriendlyname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1888 #[cfg(not(feature = "Win32_Foundation"))] usize,
1889 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszfriendlyname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1890 #[cfg(not(feature = "Win32_Foundation"))] usize,
1891 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszdescription: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1892 #[cfg(not(feature = "Win32_Foundation"))] usize,
1893 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszdescription: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1894 #[cfg(not(feature = "Win32_Foundation"))] usize,
1895 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszcontentprovider: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1896 #[cfg(not(feature = "Win32_Foundation"))] usize,
1897 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszcontentprovider: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1898 #[cfg(not(feature = "Win32_Foundation"))] usize,
1899 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszconfiguration: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1900 #[cfg(not(feature = "Win32_Foundation"))] usize,
1901 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszconfiguration: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
1902 #[cfg(not(feature = "Win32_Foundation"))] usize,
1903 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbregistered: *mut i16) -> ::windows::runtime::HRESULT,
1904 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtombstoned: *mut i16) -> ::windows::runtime::HRESULT,
1905 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptombstonetime: *mut f64) -> ::windows::runtime::HRESULT,
1906 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtransmissionstarted: *mut i16) -> ::windows::runtime::HRESULT,
1907 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1908 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bterminatesessions: i16) -> ::windows::runtime::HRESULT,
1909 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportnamespaceclone: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1910 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1911 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportcontents: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1912 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
1913 );
1914 #[repr(transparent)]
1915 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
1916 pub struct IWdsTransportNamespaceScheduledCastAutoStart(::windows::runtime::IUnknown);
1917 impl IWdsTransportNamespaceScheduledCastAutoStart {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1918 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
1919 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1920 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1921 }
1922 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1923 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
1924 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1925 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
1926 }
1927 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1928 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
1929 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
1930 }
1931 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1932 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
1933 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
1934 }
Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE>1935 pub unsafe fn Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE> {
1936 let mut result__: <WDSTRANSPORT_NAMESPACE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1937 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_NAMESPACE_TYPE>(result__)
1938 }
Id(&self) -> ::windows::runtime::Result<u32>1939 pub unsafe fn Id(&self) -> ::windows::runtime::Result<u32> {
1940 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1941 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
1942 }
1943 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1944 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1945 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1946 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1947 }
1948 #[cfg(feature = "Win32_Foundation")]
SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()>1949 pub unsafe fn SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()> {
1950 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), bszname.into_param().abi()).ok()
1951 }
1952 #[cfg(feature = "Win32_Foundation")]
FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1953 pub unsafe fn FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1954 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1955 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1956 }
1957 #[cfg(feature = "Win32_Foundation")]
SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()>1958 pub unsafe fn SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()> {
1959 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), bszfriendlyname.into_param().abi()).ok()
1960 }
1961 #[cfg(feature = "Win32_Foundation")]
Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1962 pub unsafe fn Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1963 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1964 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1965 }
1966 #[cfg(feature = "Win32_Foundation")]
SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()>1967 pub unsafe fn SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()> {
1968 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), bszdescription.into_param().abi()).ok()
1969 }
1970 #[cfg(feature = "Win32_Foundation")]
ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1971 pub unsafe fn ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1972 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1973 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1974 }
1975 #[cfg(feature = "Win32_Foundation")]
SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()>1976 pub unsafe fn SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()> {
1977 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), bszcontentprovider.into_param().abi()).ok()
1978 }
1979 #[cfg(feature = "Win32_Foundation")]
Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>1980 pub unsafe fn Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
1981 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1982 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
1983 }
1984 #[cfg(feature = "Win32_Foundation")]
SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()>1985 pub unsafe fn SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()> {
1986 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), bszconfiguration.into_param().abi()).ok()
1987 }
Registered(&self) -> ::windows::runtime::Result<i16>1988 pub unsafe fn Registered(&self) -> ::windows::runtime::Result<i16> {
1989 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1990 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1991 }
Tombstoned(&self) -> ::windows::runtime::Result<i16>1992 pub unsafe fn Tombstoned(&self) -> ::windows::runtime::Result<i16> {
1993 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1994 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
1995 }
TombstoneTime(&self) -> ::windows::runtime::Result<f64>1996 pub unsafe fn TombstoneTime(&self) -> ::windows::runtime::Result<f64> {
1997 let mut result__: <f64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
1998 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__)
1999 }
TransmissionStarted(&self) -> ::windows::runtime::Result<i16>2000 pub unsafe fn TransmissionStarted(&self) -> ::windows::runtime::Result<i16> {
2001 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2002 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
2003 }
Register(&self) -> ::windows::runtime::Result<()>2004 pub unsafe fn Register(&self) -> ::windows::runtime::Result<()> {
2005 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self)).ok()
2006 }
Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()>2007 pub unsafe fn Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()> {
2008 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(bterminatesessions)).ok()
2009 }
Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace>2010 pub unsafe fn Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace> {
2011 let mut result__: <IWdsTransportNamespace as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2012 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportNamespace>(result__)
2013 }
Refresh(&self) -> ::windows::runtime::Result<()>2014 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
2015 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self)).ok()
2016 }
RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection>2017 pub unsafe fn RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
2018 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2019 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
2020 }
StartTransmission(&self) -> ::windows::runtime::Result<()>2021 pub unsafe fn StartTransmission(&self) -> ::windows::runtime::Result<()> {
2022 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self)).ok()
2023 }
MinimumClients(&self) -> ::windows::runtime::Result<u32>2024 pub unsafe fn MinimumClients(&self) -> ::windows::runtime::Result<u32> {
2025 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2026 (::windows::runtime::Interface::vtable(self).29)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2027 }
SetMinimumClients(&self, ulminimumclients: u32) -> ::windows::runtime::Result<()>2028 pub unsafe fn SetMinimumClients(&self, ulminimumclients: u32) -> ::windows::runtime::Result<()> {
2029 (::windows::runtime::Interface::vtable(self).30)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulminimumclients)).ok()
2030 }
StartTime(&self) -> ::windows::runtime::Result<f64>2031 pub unsafe fn StartTime(&self) -> ::windows::runtime::Result<f64> {
2032 let mut result__: <f64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2033 (::windows::runtime::Interface::vtable(self).31)(::std::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__)
2034 }
SetStartTime(&self, starttime: f64) -> ::windows::runtime::Result<()>2035 pub unsafe fn SetStartTime(&self, starttime: f64) -> ::windows::runtime::Result<()> {
2036 (::windows::runtime::Interface::vtable(self).32)(::std::mem::transmute_copy(self), ::std::mem::transmute(starttime)).ok()
2037 }
2038 }
2039 unsafe impl ::windows::runtime::Interface for IWdsTransportNamespaceScheduledCastAutoStart {
2040 type Vtable = IWdsTransportNamespaceScheduledCastAutoStart_abi;
2041 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3590762301, 60060, 16921, [150, 30, 116, 145, 214, 24, 217, 185]);
2042 }
2043 impl ::std::convert::From<IWdsTransportNamespaceScheduledCastAutoStart> for ::windows::runtime::IUnknown {
from(value: IWdsTransportNamespaceScheduledCastAutoStart) -> Self2044 fn from(value: IWdsTransportNamespaceScheduledCastAutoStart) -> Self {
2045 unsafe { ::std::mem::transmute(value) }
2046 }
2047 }
2048 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCastAutoStart> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportNamespaceScheduledCastAutoStart) -> Self2049 fn from(value: &IWdsTransportNamespaceScheduledCastAutoStart) -> Self {
2050 ::std::convert::From::from(::std::clone::Clone::clone(value))
2051 }
2052 }
2053 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportNamespaceScheduledCastAutoStart {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2054 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2055 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
2056 }
2057 }
2058 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportNamespaceScheduledCastAutoStart {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2059 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2060 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
2061 }
2062 }
2063 impl ::std::convert::From<IWdsTransportNamespaceScheduledCastAutoStart> for IWdsTransportNamespaceScheduledCast {
from(value: IWdsTransportNamespaceScheduledCastAutoStart) -> Self2064 fn from(value: IWdsTransportNamespaceScheduledCastAutoStart) -> Self {
2065 unsafe { ::std::mem::transmute(value) }
2066 }
2067 }
2068 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCastAutoStart> for IWdsTransportNamespaceScheduledCast {
from(value: &IWdsTransportNamespaceScheduledCastAutoStart) -> Self2069 fn from(value: &IWdsTransportNamespaceScheduledCastAutoStart) -> Self {
2070 ::std::convert::From::from(::std::clone::Clone::clone(value))
2071 }
2072 }
2073 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespaceScheduledCast> for IWdsTransportNamespaceScheduledCastAutoStart {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespaceScheduledCast>2074 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespaceScheduledCast> {
2075 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespaceScheduledCast>::into(self))
2076 }
2077 }
2078 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespaceScheduledCast> for &IWdsTransportNamespaceScheduledCastAutoStart {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespaceScheduledCast>2079 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespaceScheduledCast> {
2080 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespaceScheduledCast>::into(::std::clone::Clone::clone(self)))
2081 }
2082 }
2083 impl ::std::convert::From<IWdsTransportNamespaceScheduledCastAutoStart> for IWdsTransportNamespace {
from(value: IWdsTransportNamespaceScheduledCastAutoStart) -> Self2084 fn from(value: IWdsTransportNamespaceScheduledCastAutoStart) -> Self {
2085 unsafe { ::std::mem::transmute(value) }
2086 }
2087 }
2088 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCastAutoStart> for IWdsTransportNamespace {
from(value: &IWdsTransportNamespaceScheduledCastAutoStart) -> Self2089 fn from(value: &IWdsTransportNamespaceScheduledCastAutoStart) -> Self {
2090 ::std::convert::From::from(::std::clone::Clone::clone(value))
2091 }
2092 }
2093 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespace> for IWdsTransportNamespaceScheduledCastAutoStart {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace>2094 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace> {
2095 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespace>::into(self))
2096 }
2097 }
2098 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespace> for &IWdsTransportNamespaceScheduledCastAutoStart {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace>2099 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace> {
2100 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespace>::into(::std::clone::Clone::clone(self)))
2101 }
2102 }
2103 #[cfg(feature = "Win32_System_Ole_Automation")]
2104 impl ::std::convert::From<IWdsTransportNamespaceScheduledCastAutoStart> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportNamespaceScheduledCastAutoStart) -> Self2105 fn from(value: IWdsTransportNamespaceScheduledCastAutoStart) -> Self {
2106 unsafe { ::std::mem::transmute(value) }
2107 }
2108 }
2109 #[cfg(feature = "Win32_System_Ole_Automation")]
2110 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCastAutoStart> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportNamespaceScheduledCastAutoStart) -> Self2111 fn from(value: &IWdsTransportNamespaceScheduledCastAutoStart) -> Self {
2112 ::std::convert::From::from(::std::clone::Clone::clone(value))
2113 }
2114 }
2115 #[cfg(feature = "Win32_System_Ole_Automation")]
2116 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportNamespaceScheduledCastAutoStart {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2117 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2118 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
2119 }
2120 }
2121 #[cfg(feature = "Win32_System_Ole_Automation")]
2122 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportNamespaceScheduledCastAutoStart {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2123 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2124 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
2125 }
2126 }
2127 #[repr(C)]
2128 #[doc(hidden)]
2129 pub struct IWdsTransportNamespaceScheduledCastAutoStart_abi(
2130 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2131 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2132 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2133 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
2134 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2135 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
2136 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
2137 #[cfg(not(feature = "Win32_Foundation"))] usize,
2138 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
2139 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
2140 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
2141 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut WDSTRANSPORT_NAMESPACE_TYPE) -> ::windows::runtime::HRESULT,
2142 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulid: *mut u32) -> ::windows::runtime::HRESULT,
2143 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2144 #[cfg(not(feature = "Win32_Foundation"))] usize,
2145 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2146 #[cfg(not(feature = "Win32_Foundation"))] usize,
2147 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszfriendlyname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2148 #[cfg(not(feature = "Win32_Foundation"))] usize,
2149 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszfriendlyname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2150 #[cfg(not(feature = "Win32_Foundation"))] usize,
2151 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszdescription: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2152 #[cfg(not(feature = "Win32_Foundation"))] usize,
2153 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszdescription: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2154 #[cfg(not(feature = "Win32_Foundation"))] usize,
2155 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszcontentprovider: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2156 #[cfg(not(feature = "Win32_Foundation"))] usize,
2157 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszcontentprovider: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2158 #[cfg(not(feature = "Win32_Foundation"))] usize,
2159 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszconfiguration: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2160 #[cfg(not(feature = "Win32_Foundation"))] usize,
2161 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszconfiguration: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2162 #[cfg(not(feature = "Win32_Foundation"))] usize,
2163 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbregistered: *mut i16) -> ::windows::runtime::HRESULT,
2164 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtombstoned: *mut i16) -> ::windows::runtime::HRESULT,
2165 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptombstonetime: *mut f64) -> ::windows::runtime::HRESULT,
2166 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtransmissionstarted: *mut i16) -> ::windows::runtime::HRESULT,
2167 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2168 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bterminatesessions: i16) -> ::windows::runtime::HRESULT,
2169 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportnamespaceclone: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2170 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2171 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportcontents: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2172 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2173 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulminimumclients: *mut u32) -> ::windows::runtime::HRESULT,
2174 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulminimumclients: u32) -> ::windows::runtime::HRESULT,
2175 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstarttime: *mut f64) -> ::windows::runtime::HRESULT,
2176 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, starttime: f64) -> ::windows::runtime::HRESULT,
2177 );
2178 #[repr(transparent)]
2179 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
2180 pub struct IWdsTransportNamespaceScheduledCastManualStart(::windows::runtime::IUnknown);
2181 impl IWdsTransportNamespaceScheduledCastManualStart {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>2182 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
2183 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2184 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2185 }
2186 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>2187 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
2188 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2189 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
2190 }
2191 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>2192 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
2193 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
2194 }
2195 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>2196 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
2197 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
2198 }
Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE>2199 pub unsafe fn Type(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NAMESPACE_TYPE> {
2200 let mut result__: <WDSTRANSPORT_NAMESPACE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2201 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_NAMESPACE_TYPE>(result__)
2202 }
Id(&self) -> ::windows::runtime::Result<u32>2203 pub unsafe fn Id(&self) -> ::windows::runtime::Result<u32> {
2204 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2205 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2206 }
2207 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2208 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2209 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2210 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2211 }
2212 #[cfg(feature = "Win32_Foundation")]
SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()>2213 pub unsafe fn SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()> {
2214 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), bszname.into_param().abi()).ok()
2215 }
2216 #[cfg(feature = "Win32_Foundation")]
FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2217 pub unsafe fn FriendlyName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2218 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2219 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2220 }
2221 #[cfg(feature = "Win32_Foundation")]
SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()>2222 pub unsafe fn SetFriendlyName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszfriendlyname: Param0) -> ::windows::runtime::Result<()> {
2223 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), bszfriendlyname.into_param().abi()).ok()
2224 }
2225 #[cfg(feature = "Win32_Foundation")]
Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2226 pub unsafe fn Description(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2227 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2228 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2229 }
2230 #[cfg(feature = "Win32_Foundation")]
SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()>2231 pub unsafe fn SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszdescription: Param0) -> ::windows::runtime::Result<()> {
2232 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), bszdescription.into_param().abi()).ok()
2233 }
2234 #[cfg(feature = "Win32_Foundation")]
ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2235 pub unsafe fn ContentProvider(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2236 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2237 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2238 }
2239 #[cfg(feature = "Win32_Foundation")]
SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()>2240 pub unsafe fn SetContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszcontentprovider: Param0) -> ::windows::runtime::Result<()> {
2241 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), bszcontentprovider.into_param().abi()).ok()
2242 }
2243 #[cfg(feature = "Win32_Foundation")]
Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2244 pub unsafe fn Configuration(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2245 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2246 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2247 }
2248 #[cfg(feature = "Win32_Foundation")]
SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()>2249 pub unsafe fn SetConfiguration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszconfiguration: Param0) -> ::windows::runtime::Result<()> {
2250 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), bszconfiguration.into_param().abi()).ok()
2251 }
Registered(&self) -> ::windows::runtime::Result<i16>2252 pub unsafe fn Registered(&self) -> ::windows::runtime::Result<i16> {
2253 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2254 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
2255 }
Tombstoned(&self) -> ::windows::runtime::Result<i16>2256 pub unsafe fn Tombstoned(&self) -> ::windows::runtime::Result<i16> {
2257 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2258 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
2259 }
TombstoneTime(&self) -> ::windows::runtime::Result<f64>2260 pub unsafe fn TombstoneTime(&self) -> ::windows::runtime::Result<f64> {
2261 let mut result__: <f64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2262 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__)
2263 }
TransmissionStarted(&self) -> ::windows::runtime::Result<i16>2264 pub unsafe fn TransmissionStarted(&self) -> ::windows::runtime::Result<i16> {
2265 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2266 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
2267 }
Register(&self) -> ::windows::runtime::Result<()>2268 pub unsafe fn Register(&self) -> ::windows::runtime::Result<()> {
2269 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self)).ok()
2270 }
Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()>2271 pub unsafe fn Deregister(&self, bterminatesessions: i16) -> ::windows::runtime::Result<()> {
2272 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(bterminatesessions)).ok()
2273 }
Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace>2274 pub unsafe fn Clone(&self) -> ::windows::runtime::Result<IWdsTransportNamespace> {
2275 let mut result__: <IWdsTransportNamespace as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2276 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportNamespace>(result__)
2277 }
Refresh(&self) -> ::windows::runtime::Result<()>2278 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
2279 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self)).ok()
2280 }
RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection>2281 pub unsafe fn RetrieveContents(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
2282 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2283 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
2284 }
StartTransmission(&self) -> ::windows::runtime::Result<()>2285 pub unsafe fn StartTransmission(&self) -> ::windows::runtime::Result<()> {
2286 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self)).ok()
2287 }
2288 }
2289 unsafe impl ::windows::runtime::Interface for IWdsTransportNamespaceScheduledCastManualStart {
2290 type Vtable = IWdsTransportNamespaceScheduledCastManualStart_abi;
2291 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(20868684, 59047, 20405, [183, 255, 217, 245, 218, 128, 92, 49]);
2292 }
2293 impl ::std::convert::From<IWdsTransportNamespaceScheduledCastManualStart> for ::windows::runtime::IUnknown {
from(value: IWdsTransportNamespaceScheduledCastManualStart) -> Self2294 fn from(value: IWdsTransportNamespaceScheduledCastManualStart) -> Self {
2295 unsafe { ::std::mem::transmute(value) }
2296 }
2297 }
2298 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCastManualStart> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportNamespaceScheduledCastManualStart) -> Self2299 fn from(value: &IWdsTransportNamespaceScheduledCastManualStart) -> Self {
2300 ::std::convert::From::from(::std::clone::Clone::clone(value))
2301 }
2302 }
2303 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportNamespaceScheduledCastManualStart {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2304 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2305 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
2306 }
2307 }
2308 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportNamespaceScheduledCastManualStart {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2309 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2310 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
2311 }
2312 }
2313 impl ::std::convert::From<IWdsTransportNamespaceScheduledCastManualStart> for IWdsTransportNamespaceScheduledCast {
from(value: IWdsTransportNamespaceScheduledCastManualStart) -> Self2314 fn from(value: IWdsTransportNamespaceScheduledCastManualStart) -> Self {
2315 unsafe { ::std::mem::transmute(value) }
2316 }
2317 }
2318 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCastManualStart> for IWdsTransportNamespaceScheduledCast {
from(value: &IWdsTransportNamespaceScheduledCastManualStart) -> Self2319 fn from(value: &IWdsTransportNamespaceScheduledCastManualStart) -> Self {
2320 ::std::convert::From::from(::std::clone::Clone::clone(value))
2321 }
2322 }
2323 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespaceScheduledCast> for IWdsTransportNamespaceScheduledCastManualStart {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespaceScheduledCast>2324 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespaceScheduledCast> {
2325 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespaceScheduledCast>::into(self))
2326 }
2327 }
2328 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespaceScheduledCast> for &IWdsTransportNamespaceScheduledCastManualStart {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespaceScheduledCast>2329 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespaceScheduledCast> {
2330 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespaceScheduledCast>::into(::std::clone::Clone::clone(self)))
2331 }
2332 }
2333 impl ::std::convert::From<IWdsTransportNamespaceScheduledCastManualStart> for IWdsTransportNamespace {
from(value: IWdsTransportNamespaceScheduledCastManualStart) -> Self2334 fn from(value: IWdsTransportNamespaceScheduledCastManualStart) -> Self {
2335 unsafe { ::std::mem::transmute(value) }
2336 }
2337 }
2338 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCastManualStart> for IWdsTransportNamespace {
from(value: &IWdsTransportNamespaceScheduledCastManualStart) -> Self2339 fn from(value: &IWdsTransportNamespaceScheduledCastManualStart) -> Self {
2340 ::std::convert::From::from(::std::clone::Clone::clone(value))
2341 }
2342 }
2343 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespace> for IWdsTransportNamespaceScheduledCastManualStart {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace>2344 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace> {
2345 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespace>::into(self))
2346 }
2347 }
2348 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportNamespace> for &IWdsTransportNamespaceScheduledCastManualStart {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace>2349 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportNamespace> {
2350 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportNamespace>::into(::std::clone::Clone::clone(self)))
2351 }
2352 }
2353 #[cfg(feature = "Win32_System_Ole_Automation")]
2354 impl ::std::convert::From<IWdsTransportNamespaceScheduledCastManualStart> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportNamespaceScheduledCastManualStart) -> Self2355 fn from(value: IWdsTransportNamespaceScheduledCastManualStart) -> Self {
2356 unsafe { ::std::mem::transmute(value) }
2357 }
2358 }
2359 #[cfg(feature = "Win32_System_Ole_Automation")]
2360 impl ::std::convert::From<&IWdsTransportNamespaceScheduledCastManualStart> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportNamespaceScheduledCastManualStart) -> Self2361 fn from(value: &IWdsTransportNamespaceScheduledCastManualStart) -> Self {
2362 ::std::convert::From::from(::std::clone::Clone::clone(value))
2363 }
2364 }
2365 #[cfg(feature = "Win32_System_Ole_Automation")]
2366 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportNamespaceScheduledCastManualStart {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2367 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2368 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
2369 }
2370 }
2371 #[cfg(feature = "Win32_System_Ole_Automation")]
2372 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportNamespaceScheduledCastManualStart {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2373 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2374 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
2375 }
2376 }
2377 #[repr(C)]
2378 #[doc(hidden)]
2379 pub struct IWdsTransportNamespaceScheduledCastManualStart_abi(
2380 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2381 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2382 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2383 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
2384 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2385 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
2386 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
2387 #[cfg(not(feature = "Win32_Foundation"))] usize,
2388 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
2389 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
2390 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
2391 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut WDSTRANSPORT_NAMESPACE_TYPE) -> ::windows::runtime::HRESULT,
2392 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulid: *mut u32) -> ::windows::runtime::HRESULT,
2393 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2394 #[cfg(not(feature = "Win32_Foundation"))] usize,
2395 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2396 #[cfg(not(feature = "Win32_Foundation"))] usize,
2397 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszfriendlyname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2398 #[cfg(not(feature = "Win32_Foundation"))] usize,
2399 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszfriendlyname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2400 #[cfg(not(feature = "Win32_Foundation"))] usize,
2401 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszdescription: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2402 #[cfg(not(feature = "Win32_Foundation"))] usize,
2403 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszdescription: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2404 #[cfg(not(feature = "Win32_Foundation"))] usize,
2405 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszcontentprovider: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2406 #[cfg(not(feature = "Win32_Foundation"))] usize,
2407 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszcontentprovider: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2408 #[cfg(not(feature = "Win32_Foundation"))] usize,
2409 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszconfiguration: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2410 #[cfg(not(feature = "Win32_Foundation"))] usize,
2411 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszconfiguration: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2412 #[cfg(not(feature = "Win32_Foundation"))] usize,
2413 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbregistered: *mut i16) -> ::windows::runtime::HRESULT,
2414 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtombstoned: *mut i16) -> ::windows::runtime::HRESULT,
2415 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptombstonetime: *mut f64) -> ::windows::runtime::HRESULT,
2416 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbtransmissionstarted: *mut i16) -> ::windows::runtime::HRESULT,
2417 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2418 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bterminatesessions: i16) -> ::windows::runtime::HRESULT,
2419 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportnamespaceclone: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2420 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2421 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportcontents: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2422 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2423 );
2424 #[repr(transparent)]
2425 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
2426 pub struct IWdsTransportServer(::windows::runtime::IUnknown);
2427 impl IWdsTransportServer {
2428 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2429 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2430 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2431 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2432 }
SetupManager(&self) -> ::windows::runtime::Result<IWdsTransportSetupManager>2433 pub unsafe fn SetupManager(&self) -> ::windows::runtime::Result<IWdsTransportSetupManager> {
2434 let mut result__: <IWdsTransportSetupManager as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2435 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportSetupManager>(result__)
2436 }
ConfigurationManager(&self) -> ::windows::runtime::Result<IWdsTransportConfigurationManager>2437 pub unsafe fn ConfigurationManager(&self) -> ::windows::runtime::Result<IWdsTransportConfigurationManager> {
2438 let mut result__: <IWdsTransportConfigurationManager as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2439 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportConfigurationManager>(result__)
2440 }
NamespaceManager(&self) -> ::windows::runtime::Result<IWdsTransportNamespaceManager>2441 pub unsafe fn NamespaceManager(&self) -> ::windows::runtime::Result<IWdsTransportNamespaceManager> {
2442 let mut result__: <IWdsTransportNamespaceManager as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2443 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportNamespaceManager>(result__)
2444 }
DisconnectClient(&self, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::Result<()>2445 pub unsafe fn DisconnectClient(&self, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::Result<()> {
2446 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulclientid), ::std::mem::transmute(disconnectiontype)).ok()
2447 }
2448 }
2449 unsafe impl ::windows::runtime::Interface for IWdsTransportServer {
2450 type Vtable = IWdsTransportServer_abi;
2451 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(164417683, 33549, 17220, [163, 10, 115, 174, 142, 143, 202, 144]);
2452 }
2453 impl ::std::convert::From<IWdsTransportServer> for ::windows::runtime::IUnknown {
from(value: IWdsTransportServer) -> Self2454 fn from(value: IWdsTransportServer) -> Self {
2455 unsafe { ::std::mem::transmute(value) }
2456 }
2457 }
2458 impl ::std::convert::From<&IWdsTransportServer> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportServer) -> Self2459 fn from(value: &IWdsTransportServer) -> Self {
2460 ::std::convert::From::from(::std::clone::Clone::clone(value))
2461 }
2462 }
2463 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportServer {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2464 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2465 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
2466 }
2467 }
2468 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportServer {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2469 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2470 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
2471 }
2472 }
2473 #[cfg(feature = "Win32_System_Ole_Automation")]
2474 impl ::std::convert::From<IWdsTransportServer> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportServer) -> Self2475 fn from(value: IWdsTransportServer) -> Self {
2476 unsafe { ::std::mem::transmute(value) }
2477 }
2478 }
2479 #[cfg(feature = "Win32_System_Ole_Automation")]
2480 impl ::std::convert::From<&IWdsTransportServer> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportServer) -> Self2481 fn from(value: &IWdsTransportServer) -> Self {
2482 ::std::convert::From::from(::std::clone::Clone::clone(value))
2483 }
2484 }
2485 #[cfg(feature = "Win32_System_Ole_Automation")]
2486 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportServer {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2487 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2488 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
2489 }
2490 }
2491 #[cfg(feature = "Win32_System_Ole_Automation")]
2492 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportServer {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2493 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2494 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
2495 }
2496 }
2497 #[repr(C)]
2498 #[doc(hidden)]
2499 pub struct IWdsTransportServer_abi(
2500 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2501 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2502 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2503 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
2504 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2505 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
2506 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
2507 #[cfg(not(feature = "Win32_Foundation"))] usize,
2508 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
2509 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
2510 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
2511 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2512 #[cfg(not(feature = "Win32_Foundation"))] usize,
2513 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportsetupmanager: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2514 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportconfigurationmanager: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2515 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportnamespacemanager: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2516 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::HRESULT,
2517 );
2518 #[repr(transparent)]
2519 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
2520 pub struct IWdsTransportServer2(::windows::runtime::IUnknown);
2521 impl IWdsTransportServer2 {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>2522 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
2523 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2524 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2525 }
2526 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>2527 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
2528 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2529 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
2530 }
2531 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>2532 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
2533 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
2534 }
2535 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>2536 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
2537 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
2538 }
2539 #[cfg(feature = "Win32_Foundation")]
Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2540 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2541 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2542 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2543 }
SetupManager(&self) -> ::windows::runtime::Result<IWdsTransportSetupManager>2544 pub unsafe fn SetupManager(&self) -> ::windows::runtime::Result<IWdsTransportSetupManager> {
2545 let mut result__: <IWdsTransportSetupManager as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2546 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportSetupManager>(result__)
2547 }
ConfigurationManager(&self) -> ::windows::runtime::Result<IWdsTransportConfigurationManager>2548 pub unsafe fn ConfigurationManager(&self) -> ::windows::runtime::Result<IWdsTransportConfigurationManager> {
2549 let mut result__: <IWdsTransportConfigurationManager as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2550 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportConfigurationManager>(result__)
2551 }
NamespaceManager(&self) -> ::windows::runtime::Result<IWdsTransportNamespaceManager>2552 pub unsafe fn NamespaceManager(&self) -> ::windows::runtime::Result<IWdsTransportNamespaceManager> {
2553 let mut result__: <IWdsTransportNamespaceManager as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2554 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportNamespaceManager>(result__)
2555 }
DisconnectClient(&self, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::Result<()>2556 pub unsafe fn DisconnectClient(&self, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::Result<()> {
2557 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulclientid), ::std::mem::transmute(disconnectiontype)).ok()
2558 }
TftpManager(&self) -> ::windows::runtime::Result<IWdsTransportTftpManager>2559 pub unsafe fn TftpManager(&self) -> ::windows::runtime::Result<IWdsTransportTftpManager> {
2560 let mut result__: <IWdsTransportTftpManager as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2561 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportTftpManager>(result__)
2562 }
2563 }
2564 unsafe impl ::windows::runtime::Interface for IWdsTransportServer2 {
2565 type Vtable = IWdsTransportServer2_abi;
2566 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(628005279, 28148, 17720, [129, 185, 133, 123, 154, 184, 251, 71]);
2567 }
2568 impl ::std::convert::From<IWdsTransportServer2> for ::windows::runtime::IUnknown {
from(value: IWdsTransportServer2) -> Self2569 fn from(value: IWdsTransportServer2) -> Self {
2570 unsafe { ::std::mem::transmute(value) }
2571 }
2572 }
2573 impl ::std::convert::From<&IWdsTransportServer2> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportServer2) -> Self2574 fn from(value: &IWdsTransportServer2) -> Self {
2575 ::std::convert::From::from(::std::clone::Clone::clone(value))
2576 }
2577 }
2578 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportServer2 {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2579 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2580 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
2581 }
2582 }
2583 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportServer2 {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2584 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2585 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
2586 }
2587 }
2588 impl ::std::convert::From<IWdsTransportServer2> for IWdsTransportServer {
from(value: IWdsTransportServer2) -> Self2589 fn from(value: IWdsTransportServer2) -> Self {
2590 unsafe { ::std::mem::transmute(value) }
2591 }
2592 }
2593 impl ::std::convert::From<&IWdsTransportServer2> for IWdsTransportServer {
from(value: &IWdsTransportServer2) -> Self2594 fn from(value: &IWdsTransportServer2) -> Self {
2595 ::std::convert::From::from(::std::clone::Clone::clone(value))
2596 }
2597 }
2598 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportServer> for IWdsTransportServer2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportServer>2599 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportServer> {
2600 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportServer>::into(self))
2601 }
2602 }
2603 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportServer> for &IWdsTransportServer2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportServer>2604 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportServer> {
2605 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportServer>::into(::std::clone::Clone::clone(self)))
2606 }
2607 }
2608 #[cfg(feature = "Win32_System_Ole_Automation")]
2609 impl ::std::convert::From<IWdsTransportServer2> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportServer2) -> Self2610 fn from(value: IWdsTransportServer2) -> Self {
2611 unsafe { ::std::mem::transmute(value) }
2612 }
2613 }
2614 #[cfg(feature = "Win32_System_Ole_Automation")]
2615 impl ::std::convert::From<&IWdsTransportServer2> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportServer2) -> Self2616 fn from(value: &IWdsTransportServer2) -> Self {
2617 ::std::convert::From::from(::std::clone::Clone::clone(value))
2618 }
2619 }
2620 #[cfg(feature = "Win32_System_Ole_Automation")]
2621 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportServer2 {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2622 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2623 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
2624 }
2625 }
2626 #[cfg(feature = "Win32_System_Ole_Automation")]
2627 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportServer2 {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2628 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2629 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
2630 }
2631 }
2632 #[repr(C)]
2633 #[doc(hidden)]
2634 pub struct IWdsTransportServer2_abi(
2635 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2636 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2637 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2638 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
2639 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2640 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
2641 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
2642 #[cfg(not(feature = "Win32_Foundation"))] usize,
2643 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
2644 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
2645 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
2646 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2647 #[cfg(not(feature = "Win32_Foundation"))] usize,
2648 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportsetupmanager: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2649 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportconfigurationmanager: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2650 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportnamespacemanager: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2651 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::runtime::HRESULT,
2652 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransporttftpmanager: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2653 );
2654 #[repr(transparent)]
2655 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
2656 pub struct IWdsTransportServicePolicy(::windows::runtime::IUnknown);
2657 impl IWdsTransportServicePolicy {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>2658 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
2659 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2660 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2661 }
2662 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>2663 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
2664 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2665 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
2666 }
2667 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>2668 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
2669 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
2670 }
2671 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>2672 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
2673 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
2674 }
Dirty(&self) -> ::windows::runtime::Result<i16>2675 pub unsafe fn Dirty(&self) -> ::windows::runtime::Result<i16> {
2676 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2677 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
2678 }
Discard(&self) -> ::windows::runtime::Result<()>2679 pub unsafe fn Discard(&self) -> ::windows::runtime::Result<()> {
2680 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self)).ok()
2681 }
Refresh(&self) -> ::windows::runtime::Result<()>2682 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
2683 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self)).ok()
2684 }
Commit(&self) -> ::windows::runtime::Result<()>2685 pub unsafe fn Commit(&self) -> ::windows::runtime::Result<()> {
2686 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self)).ok()
2687 }
IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE>2688 pub unsafe fn IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE> {
2689 let mut result__: <WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2690 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), &mut result__).from_abi::<WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE>(result__)
2691 }
SetIpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::runtime::Result<()>2692 pub unsafe fn SetIpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::runtime::Result<()> {
2693 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), ::std::mem::transmute(sourcetype)).ok()
2694 }
2695 #[cfg(feature = "Win32_Foundation")]
StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2696 pub unsafe fn StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2697 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2698 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2699 }
2700 #[cfg(feature = "Win32_Foundation")]
SetStartIpAddress<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: Param1) -> ::windows::runtime::Result<()>2701 pub unsafe fn SetStartIpAddress<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: Param1) -> ::windows::runtime::Result<()> {
2702 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), bszstartipaddress.into_param().abi()).ok()
2703 }
2704 #[cfg(feature = "Win32_Foundation")]
EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2705 pub unsafe fn EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2706 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2707 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2708 }
2709 #[cfg(feature = "Win32_Foundation")]
SetEndIpAddress<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: Param1) -> ::windows::runtime::Result<()>2710 pub unsafe fn SetEndIpAddress<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: Param1) -> ::windows::runtime::Result<()> {
2711 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), bszendipaddress.into_param().abi()).ok()
2712 }
StartPort(&self) -> ::windows::runtime::Result<u32>2713 pub unsafe fn StartPort(&self) -> ::windows::runtime::Result<u32> {
2714 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2715 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2716 }
SetStartPort(&self, ulstartport: u32) -> ::windows::runtime::Result<()>2717 pub unsafe fn SetStartPort(&self, ulstartport: u32) -> ::windows::runtime::Result<()> {
2718 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulstartport)).ok()
2719 }
EndPort(&self) -> ::windows::runtime::Result<u32>2720 pub unsafe fn EndPort(&self) -> ::windows::runtime::Result<u32> {
2721 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2722 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2723 }
SetEndPort(&self, ulendport: u32) -> ::windows::runtime::Result<()>2724 pub unsafe fn SetEndPort(&self, ulendport: u32) -> ::windows::runtime::Result<()> {
2725 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulendport)).ok()
2726 }
NetworkProfile(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NETWORK_PROFILE_TYPE>2727 pub unsafe fn NetworkProfile(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NETWORK_PROFILE_TYPE> {
2728 let mut result__: <WDSTRANSPORT_NETWORK_PROFILE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2729 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_NETWORK_PROFILE_TYPE>(result__)
2730 }
SetNetworkProfile(&self, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows::runtime::Result<()>2731 pub unsafe fn SetNetworkProfile(&self, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows::runtime::Result<()> {
2732 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(profiletype)).ok()
2733 }
2734 }
2735 unsafe impl ::windows::runtime::Interface for IWdsTransportServicePolicy {
2736 type Vtable = IWdsTransportServicePolicy_abi;
2737 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3108406648, 40747, 18636, [178, 122, 166, 7, 153, 194, 117, 12]);
2738 }
2739 impl ::std::convert::From<IWdsTransportServicePolicy> for ::windows::runtime::IUnknown {
from(value: IWdsTransportServicePolicy) -> Self2740 fn from(value: IWdsTransportServicePolicy) -> Self {
2741 unsafe { ::std::mem::transmute(value) }
2742 }
2743 }
2744 impl ::std::convert::From<&IWdsTransportServicePolicy> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportServicePolicy) -> Self2745 fn from(value: &IWdsTransportServicePolicy) -> Self {
2746 ::std::convert::From::from(::std::clone::Clone::clone(value))
2747 }
2748 }
2749 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportServicePolicy {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2750 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2751 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
2752 }
2753 }
2754 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportServicePolicy {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2755 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2756 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
2757 }
2758 }
2759 impl ::std::convert::From<IWdsTransportServicePolicy> for IWdsTransportCacheable {
from(value: IWdsTransportServicePolicy) -> Self2760 fn from(value: IWdsTransportServicePolicy) -> Self {
2761 unsafe { ::std::mem::transmute(value) }
2762 }
2763 }
2764 impl ::std::convert::From<&IWdsTransportServicePolicy> for IWdsTransportCacheable {
from(value: &IWdsTransportServicePolicy) -> Self2765 fn from(value: &IWdsTransportServicePolicy) -> Self {
2766 ::std::convert::From::from(::std::clone::Clone::clone(value))
2767 }
2768 }
2769 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportCacheable> for IWdsTransportServicePolicy {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable>2770 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable> {
2771 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportCacheable>::into(self))
2772 }
2773 }
2774 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportCacheable> for &IWdsTransportServicePolicy {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable>2775 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable> {
2776 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportCacheable>::into(::std::clone::Clone::clone(self)))
2777 }
2778 }
2779 #[cfg(feature = "Win32_System_Ole_Automation")]
2780 impl ::std::convert::From<IWdsTransportServicePolicy> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportServicePolicy) -> Self2781 fn from(value: IWdsTransportServicePolicy) -> Self {
2782 unsafe { ::std::mem::transmute(value) }
2783 }
2784 }
2785 #[cfg(feature = "Win32_System_Ole_Automation")]
2786 impl ::std::convert::From<&IWdsTransportServicePolicy> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportServicePolicy) -> Self2787 fn from(value: &IWdsTransportServicePolicy) -> Self {
2788 ::std::convert::From::from(::std::clone::Clone::clone(value))
2789 }
2790 }
2791 #[cfg(feature = "Win32_System_Ole_Automation")]
2792 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportServicePolicy {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2793 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2794 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
2795 }
2796 }
2797 #[cfg(feature = "Win32_System_Ole_Automation")]
2798 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportServicePolicy {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2799 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
2800 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
2801 }
2802 }
2803 #[repr(C)]
2804 #[doc(hidden)]
2805 pub struct IWdsTransportServicePolicy_abi(
2806 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2807 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2808 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
2809 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
2810 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2811 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
2812 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
2813 #[cfg(not(feature = "Win32_Foundation"))] usize,
2814 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
2815 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
2816 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
2817 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbdirty: *mut i16) -> ::windows::runtime::HRESULT,
2818 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2819 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2820 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
2821 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, psourcetype: *mut WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::runtime::HRESULT,
2822 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::runtime::HRESULT,
2823 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszstartipaddress: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2824 #[cfg(not(feature = "Win32_Foundation"))] usize,
2825 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2826 #[cfg(not(feature = "Win32_Foundation"))] usize,
2827 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszendipaddress: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2828 #[cfg(not(feature = "Win32_Foundation"))] usize,
2829 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
2830 #[cfg(not(feature = "Win32_Foundation"))] usize,
2831 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulstartport: *mut u32) -> ::windows::runtime::HRESULT,
2832 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulstartport: u32) -> ::windows::runtime::HRESULT,
2833 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulendport: *mut u32) -> ::windows::runtime::HRESULT,
2834 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulendport: u32) -> ::windows::runtime::HRESULT,
2835 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprofiletype: *mut WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows::runtime::HRESULT,
2836 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows::runtime::HRESULT,
2837 );
2838 #[repr(transparent)]
2839 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
2840 pub struct IWdsTransportServicePolicy2(::windows::runtime::IUnknown);
2841 impl IWdsTransportServicePolicy2 {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>2842 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
2843 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2844 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2845 }
2846 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>2847 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
2848 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2849 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
2850 }
2851 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>2852 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
2853 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
2854 }
2855 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>2856 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
2857 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
2858 }
Dirty(&self) -> ::windows::runtime::Result<i16>2859 pub unsafe fn Dirty(&self) -> ::windows::runtime::Result<i16> {
2860 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2861 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
2862 }
Discard(&self) -> ::windows::runtime::Result<()>2863 pub unsafe fn Discard(&self) -> ::windows::runtime::Result<()> {
2864 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self)).ok()
2865 }
Refresh(&self) -> ::windows::runtime::Result<()>2866 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> {
2867 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self)).ok()
2868 }
Commit(&self) -> ::windows::runtime::Result<()>2869 pub unsafe fn Commit(&self) -> ::windows::runtime::Result<()> {
2870 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self)).ok()
2871 }
IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE>2872 pub unsafe fn IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE> {
2873 let mut result__: <WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2874 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), &mut result__).from_abi::<WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE>(result__)
2875 }
SetIpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::runtime::Result<()>2876 pub unsafe fn SetIpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::runtime::Result<()> {
2877 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), ::std::mem::transmute(sourcetype)).ok()
2878 }
2879 #[cfg(feature = "Win32_Foundation")]
StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2880 pub unsafe fn StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2881 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2882 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2883 }
2884 #[cfg(feature = "Win32_Foundation")]
SetStartIpAddress<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: Param1) -> ::windows::runtime::Result<()>2885 pub unsafe fn SetStartIpAddress<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: Param1) -> ::windows::runtime::Result<()> {
2886 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), bszstartipaddress.into_param().abi()).ok()
2887 }
2888 #[cfg(feature = "Win32_Foundation")]
EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2889 pub unsafe fn EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
2890 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2891 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
2892 }
2893 #[cfg(feature = "Win32_Foundation")]
SetEndIpAddress<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: Param1) -> ::windows::runtime::Result<()>2894 pub unsafe fn SetEndIpAddress<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: Param1) -> ::windows::runtime::Result<()> {
2895 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(addresstype), bszendipaddress.into_param().abi()).ok()
2896 }
StartPort(&self) -> ::windows::runtime::Result<u32>2897 pub unsafe fn StartPort(&self) -> ::windows::runtime::Result<u32> {
2898 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2899 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2900 }
SetStartPort(&self, ulstartport: u32) -> ::windows::runtime::Result<()>2901 pub unsafe fn SetStartPort(&self, ulstartport: u32) -> ::windows::runtime::Result<()> {
2902 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulstartport)).ok()
2903 }
EndPort(&self) -> ::windows::runtime::Result<u32>2904 pub unsafe fn EndPort(&self) -> ::windows::runtime::Result<u32> {
2905 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2906 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2907 }
SetEndPort(&self, ulendport: u32) -> ::windows::runtime::Result<()>2908 pub unsafe fn SetEndPort(&self, ulendport: u32) -> ::windows::runtime::Result<()> {
2909 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(ulendport)).ok()
2910 }
NetworkProfile(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NETWORK_PROFILE_TYPE>2911 pub unsafe fn NetworkProfile(&self) -> ::windows::runtime::Result<WDSTRANSPORT_NETWORK_PROFILE_TYPE> {
2912 let mut result__: <WDSTRANSPORT_NETWORK_PROFILE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2913 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_NETWORK_PROFILE_TYPE>(result__)
2914 }
SetNetworkProfile(&self, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows::runtime::Result<()>2915 pub unsafe fn SetNetworkProfile(&self, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows::runtime::Result<()> {
2916 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(profiletype)).ok()
2917 }
UdpPortPolicy(&self) -> ::windows::runtime::Result<WDSTRANSPORT_UDP_PORT_POLICY>2918 pub unsafe fn UdpPortPolicy(&self) -> ::windows::runtime::Result<WDSTRANSPORT_UDP_PORT_POLICY> {
2919 let mut result__: <WDSTRANSPORT_UDP_PORT_POLICY as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2920 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), &mut result__).from_abi::<WDSTRANSPORT_UDP_PORT_POLICY>(result__)
2921 }
SetUdpPortPolicy(&self, udpportpolicy: WDSTRANSPORT_UDP_PORT_POLICY) -> ::windows::runtime::Result<()>2922 pub unsafe fn SetUdpPortPolicy(&self, udpportpolicy: WDSTRANSPORT_UDP_PORT_POLICY) -> ::windows::runtime::Result<()> {
2923 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(udpportpolicy)).ok()
2924 }
TftpMaximumBlockSize(&self) -> ::windows::runtime::Result<u32>2925 pub unsafe fn TftpMaximumBlockSize(&self) -> ::windows::runtime::Result<u32> {
2926 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2927 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
2928 }
SetTftpMaximumBlockSize(&self, ultftpmaximumblocksize: u32) -> ::windows::runtime::Result<()>2929 pub unsafe fn SetTftpMaximumBlockSize(&self, ultftpmaximumblocksize: u32) -> ::windows::runtime::Result<()> {
2930 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self), ::std::mem::transmute(ultftpmaximumblocksize)).ok()
2931 }
EnableTftpVariableWindowExtension(&self) -> ::windows::runtime::Result<i16>2932 pub unsafe fn EnableTftpVariableWindowExtension(&self) -> ::windows::runtime::Result<i16> {
2933 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
2934 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__)
2935 }
SetEnableTftpVariableWindowExtension(&self, benabletftpvariablewindowextension: i16) -> ::windows::runtime::Result<()>2936 pub unsafe fn SetEnableTftpVariableWindowExtension(&self, benabletftpvariablewindowextension: i16) -> ::windows::runtime::Result<()> {
2937 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self), ::std::mem::transmute(benabletftpvariablewindowextension)).ok()
2938 }
2939 }
2940 unsafe impl ::windows::runtime::Interface for IWdsTransportServicePolicy2 {
2941 type Vtable = IWdsTransportServicePolicy2_abi;
2942 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1707187804, 43646, 19345, [137, 68, 145, 224, 229, 87, 39, 151]);
2943 }
2944 impl ::std::convert::From<IWdsTransportServicePolicy2> for ::windows::runtime::IUnknown {
from(value: IWdsTransportServicePolicy2) -> Self2945 fn from(value: IWdsTransportServicePolicy2) -> Self {
2946 unsafe { ::std::mem::transmute(value) }
2947 }
2948 }
2949 impl ::std::convert::From<&IWdsTransportServicePolicy2> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportServicePolicy2) -> Self2950 fn from(value: &IWdsTransportServicePolicy2) -> Self {
2951 ::std::convert::From::from(::std::clone::Clone::clone(value))
2952 }
2953 }
2954 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportServicePolicy2 {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2955 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2956 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
2957 }
2958 }
2959 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportServicePolicy2 {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2960 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
2961 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
2962 }
2963 }
2964 impl ::std::convert::From<IWdsTransportServicePolicy2> for IWdsTransportServicePolicy {
from(value: IWdsTransportServicePolicy2) -> Self2965 fn from(value: IWdsTransportServicePolicy2) -> Self {
2966 unsafe { ::std::mem::transmute(value) }
2967 }
2968 }
2969 impl ::std::convert::From<&IWdsTransportServicePolicy2> for IWdsTransportServicePolicy {
from(value: &IWdsTransportServicePolicy2) -> Self2970 fn from(value: &IWdsTransportServicePolicy2) -> Self {
2971 ::std::convert::From::from(::std::clone::Clone::clone(value))
2972 }
2973 }
2974 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportServicePolicy> for IWdsTransportServicePolicy2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportServicePolicy>2975 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportServicePolicy> {
2976 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportServicePolicy>::into(self))
2977 }
2978 }
2979 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportServicePolicy> for &IWdsTransportServicePolicy2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportServicePolicy>2980 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportServicePolicy> {
2981 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportServicePolicy>::into(::std::clone::Clone::clone(self)))
2982 }
2983 }
2984 impl ::std::convert::From<IWdsTransportServicePolicy2> for IWdsTransportCacheable {
from(value: IWdsTransportServicePolicy2) -> Self2985 fn from(value: IWdsTransportServicePolicy2) -> Self {
2986 unsafe { ::std::mem::transmute(value) }
2987 }
2988 }
2989 impl ::std::convert::From<&IWdsTransportServicePolicy2> for IWdsTransportCacheable {
from(value: &IWdsTransportServicePolicy2) -> Self2990 fn from(value: &IWdsTransportServicePolicy2) -> Self {
2991 ::std::convert::From::from(::std::clone::Clone::clone(value))
2992 }
2993 }
2994 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportCacheable> for IWdsTransportServicePolicy2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable>2995 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable> {
2996 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportCacheable>::into(self))
2997 }
2998 }
2999 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportCacheable> for &IWdsTransportServicePolicy2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable>3000 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportCacheable> {
3001 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportCacheable>::into(::std::clone::Clone::clone(self)))
3002 }
3003 }
3004 #[cfg(feature = "Win32_System_Ole_Automation")]
3005 impl ::std::convert::From<IWdsTransportServicePolicy2> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportServicePolicy2) -> Self3006 fn from(value: IWdsTransportServicePolicy2) -> Self {
3007 unsafe { ::std::mem::transmute(value) }
3008 }
3009 }
3010 #[cfg(feature = "Win32_System_Ole_Automation")]
3011 impl ::std::convert::From<&IWdsTransportServicePolicy2> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportServicePolicy2) -> Self3012 fn from(value: &IWdsTransportServicePolicy2) -> Self {
3013 ::std::convert::From::from(::std::clone::Clone::clone(value))
3014 }
3015 }
3016 #[cfg(feature = "Win32_System_Ole_Automation")]
3017 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportServicePolicy2 {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3018 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3019 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
3020 }
3021 }
3022 #[cfg(feature = "Win32_System_Ole_Automation")]
3023 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportServicePolicy2 {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3024 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3025 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
3026 }
3027 }
3028 #[repr(C)]
3029 #[doc(hidden)]
3030 pub struct IWdsTransportServicePolicy2_abi(
3031 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3032 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3033 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3034 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
3035 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3036 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
3037 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
3038 #[cfg(not(feature = "Win32_Foundation"))] usize,
3039 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
3040 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
3041 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
3042 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbdirty: *mut i16) -> ::windows::runtime::HRESULT,
3043 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3044 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3045 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3046 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, psourcetype: *mut WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::runtime::HRESULT,
3047 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::runtime::HRESULT,
3048 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszstartipaddress: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3049 #[cfg(not(feature = "Win32_Foundation"))] usize,
3050 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3051 #[cfg(not(feature = "Win32_Foundation"))] usize,
3052 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszendipaddress: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3053 #[cfg(not(feature = "Win32_Foundation"))] usize,
3054 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3055 #[cfg(not(feature = "Win32_Foundation"))] usize,
3056 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulstartport: *mut u32) -> ::windows::runtime::HRESULT,
3057 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulstartport: u32) -> ::windows::runtime::HRESULT,
3058 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulendport: *mut u32) -> ::windows::runtime::HRESULT,
3059 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ulendport: u32) -> ::windows::runtime::HRESULT,
3060 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprofiletype: *mut WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows::runtime::HRESULT,
3061 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows::runtime::HRESULT,
3062 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pudpportpolicy: *mut WDSTRANSPORT_UDP_PORT_POLICY) -> ::windows::runtime::HRESULT,
3063 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, udpportpolicy: WDSTRANSPORT_UDP_PORT_POLICY) -> ::windows::runtime::HRESULT,
3064 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pultftpmaximumblocksize: *mut u32) -> ::windows::runtime::HRESULT,
3065 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ultftpmaximumblocksize: u32) -> ::windows::runtime::HRESULT,
3066 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbenabletftpvariablewindowextension: *mut i16) -> ::windows::runtime::HRESULT,
3067 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, benabletftpvariablewindowextension: i16) -> ::windows::runtime::HRESULT,
3068 );
3069 #[repr(transparent)]
3070 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
3071 pub struct IWdsTransportSession(::windows::runtime::IUnknown);
3072 impl IWdsTransportSession {
Content(&self) -> ::windows::runtime::Result<IWdsTransportContent>3073 pub unsafe fn Content(&self) -> ::windows::runtime::Result<IWdsTransportContent> {
3074 let mut result__: <IWdsTransportContent as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3075 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportContent>(result__)
3076 }
Id(&self) -> ::windows::runtime::Result<u32>3077 pub unsafe fn Id(&self) -> ::windows::runtime::Result<u32> {
3078 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3079 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3080 }
3081 #[cfg(feature = "Win32_Foundation")]
NetworkInterfaceName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3082 pub unsafe fn NetworkInterfaceName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
3083 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3084 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
3085 }
3086 #[cfg(feature = "Win32_Foundation")]
NetworkInterfaceAddress(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3087 pub unsafe fn NetworkInterfaceAddress(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
3088 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3089 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
3090 }
TransferRate(&self) -> ::windows::runtime::Result<u32>3091 pub unsafe fn TransferRate(&self) -> ::windows::runtime::Result<u32> {
3092 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3093 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3094 }
MasterClientId(&self) -> ::windows::runtime::Result<u32>3095 pub unsafe fn MasterClientId(&self) -> ::windows::runtime::Result<u32> {
3096 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3097 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3098 }
RetrieveClients(&self) -> ::windows::runtime::Result<IWdsTransportCollection>3099 pub unsafe fn RetrieveClients(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
3100 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3101 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
3102 }
Terminate(&self) -> ::windows::runtime::Result<()>3103 pub unsafe fn Terminate(&self) -> ::windows::runtime::Result<()> {
3104 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self)).ok()
3105 }
3106 }
3107 unsafe impl ::windows::runtime::Interface for IWdsTransportSession {
3108 type Vtable = IWdsTransportSession_abi;
3109 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4109363848, 26033, 20272, [164, 185, 39, 147, 152, 119, 150, 251]);
3110 }
3111 impl ::std::convert::From<IWdsTransportSession> for ::windows::runtime::IUnknown {
from(value: IWdsTransportSession) -> Self3112 fn from(value: IWdsTransportSession) -> Self {
3113 unsafe { ::std::mem::transmute(value) }
3114 }
3115 }
3116 impl ::std::convert::From<&IWdsTransportSession> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportSession) -> Self3117 fn from(value: &IWdsTransportSession) -> Self {
3118 ::std::convert::From::from(::std::clone::Clone::clone(value))
3119 }
3120 }
3121 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportSession {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3122 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3123 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
3124 }
3125 }
3126 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportSession {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3127 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3128 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
3129 }
3130 }
3131 #[cfg(feature = "Win32_System_Ole_Automation")]
3132 impl ::std::convert::From<IWdsTransportSession> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportSession) -> Self3133 fn from(value: IWdsTransportSession) -> Self {
3134 unsafe { ::std::mem::transmute(value) }
3135 }
3136 }
3137 #[cfg(feature = "Win32_System_Ole_Automation")]
3138 impl ::std::convert::From<&IWdsTransportSession> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportSession) -> Self3139 fn from(value: &IWdsTransportSession) -> Self {
3140 ::std::convert::From::from(::std::clone::Clone::clone(value))
3141 }
3142 }
3143 #[cfg(feature = "Win32_System_Ole_Automation")]
3144 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportSession {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3145 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3146 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
3147 }
3148 }
3149 #[cfg(feature = "Win32_System_Ole_Automation")]
3150 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportSession {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3151 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3152 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
3153 }
3154 }
3155 #[repr(C)]
3156 #[doc(hidden)]
3157 pub struct IWdsTransportSession_abi(
3158 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3159 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3160 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3161 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
3162 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3163 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
3164 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
3165 #[cfg(not(feature = "Win32_Foundation"))] usize,
3166 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
3167 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
3168 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
3169 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportcontent: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3170 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulid: *mut u32) -> ::windows::runtime::HRESULT,
3171 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbsznetworkinterfacename: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3172 #[cfg(not(feature = "Win32_Foundation"))] usize,
3173 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbsznetworkinterfaceaddress: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3174 #[cfg(not(feature = "Win32_Foundation"))] usize,
3175 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pultransferrate: *mut u32) -> ::windows::runtime::HRESULT,
3176 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulmasterclientid: *mut u32) -> ::windows::runtime::HRESULT,
3177 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransportclients: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3178 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3179 );
3180 #[repr(transparent)]
3181 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
3182 pub struct IWdsTransportSetupManager(::windows::runtime::IUnknown);
3183 impl IWdsTransportSetupManager {
Version(&self) -> ::windows::runtime::Result<u64>3184 pub unsafe fn Version(&self) -> ::windows::runtime::Result<u64> {
3185 let mut result__: <u64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3186 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u64>(result__)
3187 }
InstalledFeatures(&self) -> ::windows::runtime::Result<u32>3188 pub unsafe fn InstalledFeatures(&self) -> ::windows::runtime::Result<u32> {
3189 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3190 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3191 }
Protocols(&self) -> ::windows::runtime::Result<u32>3192 pub unsafe fn Protocols(&self) -> ::windows::runtime::Result<u32> {
3193 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3194 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3195 }
3196 #[cfg(feature = "Win32_Foundation")]
RegisterContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0, bszdescription: Param1, bszfilepath: Param2, bszinitializationroutine: Param3) -> ::windows::runtime::Result<()>3197 pub unsafe fn RegisterContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0, bszdescription: Param1, bszfilepath: Param2, bszinitializationroutine: Param3) -> ::windows::runtime::Result<()> {
3198 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), bszname.into_param().abi(), bszdescription.into_param().abi(), bszfilepath.into_param().abi(), bszinitializationroutine.into_param().abi()).ok()
3199 }
3200 #[cfg(feature = "Win32_Foundation")]
DeregisterContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()>3201 pub unsafe fn DeregisterContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()> {
3202 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), bszname.into_param().abi()).ok()
3203 }
3204 }
3205 unsafe impl ::windows::runtime::Interface for IWdsTransportSetupManager {
3206 type Vtable = IWdsTransportSetupManager_abi;
3207 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4146299941, 61352, 16548, [174, 249, 201, 141, 150, 156, 11, 117]);
3208 }
3209 impl ::std::convert::From<IWdsTransportSetupManager> for ::windows::runtime::IUnknown {
from(value: IWdsTransportSetupManager) -> Self3210 fn from(value: IWdsTransportSetupManager) -> Self {
3211 unsafe { ::std::mem::transmute(value) }
3212 }
3213 }
3214 impl ::std::convert::From<&IWdsTransportSetupManager> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportSetupManager) -> Self3215 fn from(value: &IWdsTransportSetupManager) -> Self {
3216 ::std::convert::From::from(::std::clone::Clone::clone(value))
3217 }
3218 }
3219 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportSetupManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3220 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3221 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
3222 }
3223 }
3224 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportSetupManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3225 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3226 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
3227 }
3228 }
3229 #[cfg(feature = "Win32_System_Ole_Automation")]
3230 impl ::std::convert::From<IWdsTransportSetupManager> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportSetupManager) -> Self3231 fn from(value: IWdsTransportSetupManager) -> Self {
3232 unsafe { ::std::mem::transmute(value) }
3233 }
3234 }
3235 #[cfg(feature = "Win32_System_Ole_Automation")]
3236 impl ::std::convert::From<&IWdsTransportSetupManager> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportSetupManager) -> Self3237 fn from(value: &IWdsTransportSetupManager) -> Self {
3238 ::std::convert::From::from(::std::clone::Clone::clone(value))
3239 }
3240 }
3241 #[cfg(feature = "Win32_System_Ole_Automation")]
3242 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportSetupManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3243 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3244 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
3245 }
3246 }
3247 #[cfg(feature = "Win32_System_Ole_Automation")]
3248 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportSetupManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3249 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3250 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
3251 }
3252 }
3253 #[repr(C)]
3254 #[doc(hidden)]
3255 pub struct IWdsTransportSetupManager_abi(
3256 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3257 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3258 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3259 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
3260 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3261 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
3262 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
3263 #[cfg(not(feature = "Win32_Foundation"))] usize,
3264 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
3265 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
3266 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
3267 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pullversion: *mut u64) -> ::windows::runtime::HRESULT,
3268 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulinstalledfeatures: *mut u32) -> ::windows::runtime::HRESULT,
3269 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulprotocols: *mut u32) -> ::windows::runtime::HRESULT,
3270 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bszdescription: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bszfilepath: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bszinitializationroutine: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3271 #[cfg(not(feature = "Win32_Foundation"))] usize,
3272 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3273 #[cfg(not(feature = "Win32_Foundation"))] usize,
3274 );
3275 #[repr(transparent)]
3276 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
3277 pub struct IWdsTransportSetupManager2(::windows::runtime::IUnknown);
3278 impl IWdsTransportSetupManager2 {
GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>3279 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> {
3280 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3281 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3282 }
3283 #[cfg(feature = "Win32_System_Ole_Automation")]
GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>3284 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> {
3285 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3286 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__)
3287 }
3288 #[cfg(feature = "Win32_Foundation")]
GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>3289 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> {
3290 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok()
3291 }
3292 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>3293 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> {
3294 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok()
3295 }
Version(&self) -> ::windows::runtime::Result<u64>3296 pub unsafe fn Version(&self) -> ::windows::runtime::Result<u64> {
3297 let mut result__: <u64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3298 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u64>(result__)
3299 }
InstalledFeatures(&self) -> ::windows::runtime::Result<u32>3300 pub unsafe fn InstalledFeatures(&self) -> ::windows::runtime::Result<u32> {
3301 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3302 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3303 }
Protocols(&self) -> ::windows::runtime::Result<u32>3304 pub unsafe fn Protocols(&self) -> ::windows::runtime::Result<u32> {
3305 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3306 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3307 }
3308 #[cfg(feature = "Win32_Foundation")]
RegisterContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0, bszdescription: Param1, bszfilepath: Param2, bszinitializationroutine: Param3) -> ::windows::runtime::Result<()>3309 pub unsafe fn RegisterContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0, bszdescription: Param1, bszfilepath: Param2, bszinitializationroutine: Param3) -> ::windows::runtime::Result<()> {
3310 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), bszname.into_param().abi(), bszdescription.into_param().abi(), bszfilepath.into_param().abi(), bszinitializationroutine.into_param().abi()).ok()
3311 }
3312 #[cfg(feature = "Win32_Foundation")]
DeregisterContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()>3313 pub unsafe fn DeregisterContentProvider<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bszname: Param0) -> ::windows::runtime::Result<()> {
3314 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), bszname.into_param().abi()).ok()
3315 }
TftpCapabilities(&self) -> ::windows::runtime::Result<u32>3316 pub unsafe fn TftpCapabilities(&self) -> ::windows::runtime::Result<u32> {
3317 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3318 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3319 }
ContentProviders(&self) -> ::windows::runtime::Result<IWdsTransportCollection>3320 pub unsafe fn ContentProviders(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
3321 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3322 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
3323 }
3324 }
3325 unsafe impl ::windows::runtime::Interface for IWdsTransportSetupManager2 {
3326 type Vtable = IWdsTransportSetupManager2_abi;
3327 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(46037466, 32414, 17254, [139, 110, 42, 169, 169, 27, 228, 127]);
3328 }
3329 impl ::std::convert::From<IWdsTransportSetupManager2> for ::windows::runtime::IUnknown {
from(value: IWdsTransportSetupManager2) -> Self3330 fn from(value: IWdsTransportSetupManager2) -> Self {
3331 unsafe { ::std::mem::transmute(value) }
3332 }
3333 }
3334 impl ::std::convert::From<&IWdsTransportSetupManager2> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportSetupManager2) -> Self3335 fn from(value: &IWdsTransportSetupManager2) -> Self {
3336 ::std::convert::From::from(::std::clone::Clone::clone(value))
3337 }
3338 }
3339 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportSetupManager2 {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3340 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3341 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
3342 }
3343 }
3344 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportSetupManager2 {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3345 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3346 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
3347 }
3348 }
3349 impl ::std::convert::From<IWdsTransportSetupManager2> for IWdsTransportSetupManager {
from(value: IWdsTransportSetupManager2) -> Self3350 fn from(value: IWdsTransportSetupManager2) -> Self {
3351 unsafe { ::std::mem::transmute(value) }
3352 }
3353 }
3354 impl ::std::convert::From<&IWdsTransportSetupManager2> for IWdsTransportSetupManager {
from(value: &IWdsTransportSetupManager2) -> Self3355 fn from(value: &IWdsTransportSetupManager2) -> Self {
3356 ::std::convert::From::from(::std::clone::Clone::clone(value))
3357 }
3358 }
3359 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportSetupManager> for IWdsTransportSetupManager2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportSetupManager>3360 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportSetupManager> {
3361 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportSetupManager>::into(self))
3362 }
3363 }
3364 impl<'a> ::windows::runtime::IntoParam<'a, IWdsTransportSetupManager> for &IWdsTransportSetupManager2 {
into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportSetupManager>3365 fn into_param(self) -> ::windows::runtime::Param<'a, IWdsTransportSetupManager> {
3366 ::windows::runtime::Param::Owned(::std::convert::Into::<IWdsTransportSetupManager>::into(::std::clone::Clone::clone(self)))
3367 }
3368 }
3369 #[cfg(feature = "Win32_System_Ole_Automation")]
3370 impl ::std::convert::From<IWdsTransportSetupManager2> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportSetupManager2) -> Self3371 fn from(value: IWdsTransportSetupManager2) -> Self {
3372 unsafe { ::std::mem::transmute(value) }
3373 }
3374 }
3375 #[cfg(feature = "Win32_System_Ole_Automation")]
3376 impl ::std::convert::From<&IWdsTransportSetupManager2> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportSetupManager2) -> Self3377 fn from(value: &IWdsTransportSetupManager2) -> Self {
3378 ::std::convert::From::from(::std::clone::Clone::clone(value))
3379 }
3380 }
3381 #[cfg(feature = "Win32_System_Ole_Automation")]
3382 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportSetupManager2 {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3383 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3384 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
3385 }
3386 }
3387 #[cfg(feature = "Win32_System_Ole_Automation")]
3388 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportSetupManager2 {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3389 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3390 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
3391 }
3392 }
3393 #[repr(C)]
3394 #[doc(hidden)]
3395 pub struct IWdsTransportSetupManager2_abi(
3396 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3397 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3398 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3399 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
3400 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3401 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
3402 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
3403 #[cfg(not(feature = "Win32_Foundation"))] usize,
3404 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
3405 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
3406 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
3407 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pullversion: *mut u64) -> ::windows::runtime::HRESULT,
3408 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulinstalledfeatures: *mut u32) -> ::windows::runtime::HRESULT,
3409 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulprotocols: *mut u32) -> ::windows::runtime::HRESULT,
3410 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bszdescription: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bszfilepath: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, bszinitializationroutine: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3411 #[cfg(not(feature = "Win32_Foundation"))] usize,
3412 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bszname: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3413 #[cfg(not(feature = "Win32_Foundation"))] usize,
3414 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pultftpcapabilities: *mut u32) -> ::windows::runtime::HRESULT,
3415 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppprovidercollection: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3416 );
3417 #[repr(transparent)]
3418 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
3419 pub struct IWdsTransportTftpClient(::windows::runtime::IUnknown);
3420 impl IWdsTransportTftpClient {
3421 #[cfg(feature = "Win32_Foundation")]
FileName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3422 pub unsafe fn FileName(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
3423 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3424 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
3425 }
3426 #[cfg(feature = "Win32_Foundation")]
IpAddress(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3427 pub unsafe fn IpAddress(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> {
3428 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3429 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__)
3430 }
Timeout(&self) -> ::windows::runtime::Result<u32>3431 pub unsafe fn Timeout(&self) -> ::windows::runtime::Result<u32> {
3432 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3433 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3434 }
CurrentFileOffset(&self) -> ::windows::runtime::Result<u64>3435 pub unsafe fn CurrentFileOffset(&self) -> ::windows::runtime::Result<u64> {
3436 let mut result__: <u64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3437 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u64>(result__)
3438 }
FileSize(&self) -> ::windows::runtime::Result<u64>3439 pub unsafe fn FileSize(&self) -> ::windows::runtime::Result<u64> {
3440 let mut result__: <u64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3441 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u64>(result__)
3442 }
BlockSize(&self) -> ::windows::runtime::Result<u32>3443 pub unsafe fn BlockSize(&self) -> ::windows::runtime::Result<u32> {
3444 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3445 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3446 }
WindowSize(&self) -> ::windows::runtime::Result<u32>3447 pub unsafe fn WindowSize(&self) -> ::windows::runtime::Result<u32> {
3448 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3449 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__)
3450 }
3451 }
3452 unsafe impl ::windows::runtime::Interface for IWdsTransportTftpClient {
3453 type Vtable = IWdsTransportTftpClient_abi;
3454 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2955072430, 34893, 19845, [177, 70, 83, 50, 14, 118, 239, 98]);
3455 }
3456 impl ::std::convert::From<IWdsTransportTftpClient> for ::windows::runtime::IUnknown {
from(value: IWdsTransportTftpClient) -> Self3457 fn from(value: IWdsTransportTftpClient) -> Self {
3458 unsafe { ::std::mem::transmute(value) }
3459 }
3460 }
3461 impl ::std::convert::From<&IWdsTransportTftpClient> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportTftpClient) -> Self3462 fn from(value: &IWdsTransportTftpClient) -> Self {
3463 ::std::convert::From::from(::std::clone::Clone::clone(value))
3464 }
3465 }
3466 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportTftpClient {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3467 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3468 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
3469 }
3470 }
3471 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportTftpClient {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3472 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3473 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
3474 }
3475 }
3476 #[cfg(feature = "Win32_System_Ole_Automation")]
3477 impl ::std::convert::From<IWdsTransportTftpClient> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportTftpClient) -> Self3478 fn from(value: IWdsTransportTftpClient) -> Self {
3479 unsafe { ::std::mem::transmute(value) }
3480 }
3481 }
3482 #[cfg(feature = "Win32_System_Ole_Automation")]
3483 impl ::std::convert::From<&IWdsTransportTftpClient> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportTftpClient) -> Self3484 fn from(value: &IWdsTransportTftpClient) -> Self {
3485 ::std::convert::From::from(::std::clone::Clone::clone(value))
3486 }
3487 }
3488 #[cfg(feature = "Win32_System_Ole_Automation")]
3489 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportTftpClient {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3490 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3491 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
3492 }
3493 }
3494 #[cfg(feature = "Win32_System_Ole_Automation")]
3495 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportTftpClient {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3496 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3497 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
3498 }
3499 }
3500 #[repr(C)]
3501 #[doc(hidden)]
3502 pub struct IWdsTransportTftpClient_abi(
3503 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3504 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3505 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3506 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
3507 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3508 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
3509 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
3510 #[cfg(not(feature = "Win32_Foundation"))] usize,
3511 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
3512 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
3513 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
3514 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszfilename: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3515 #[cfg(not(feature = "Win32_Foundation"))] usize,
3516 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbszipaddress: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT,
3517 #[cfg(not(feature = "Win32_Foundation"))] usize,
3518 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pultimeout: *mut u32) -> ::windows::runtime::HRESULT,
3519 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pul64currentoffset: *mut u64) -> ::windows::runtime::HRESULT,
3520 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pul64filesize: *mut u64) -> ::windows::runtime::HRESULT,
3521 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulblocksize: *mut u32) -> ::windows::runtime::HRESULT,
3522 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pulwindowsize: *mut u32) -> ::windows::runtime::HRESULT,
3523 );
3524 #[repr(transparent)]
3525 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
3526 pub struct IWdsTransportTftpManager(::windows::runtime::IUnknown);
3527 impl IWdsTransportTftpManager {
RetrieveTftpClients(&self) -> ::windows::runtime::Result<IWdsTransportCollection>3528 pub unsafe fn RetrieveTftpClients(&self) -> ::windows::runtime::Result<IWdsTransportCollection> {
3529 let mut result__: <IWdsTransportCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
3530 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IWdsTransportCollection>(result__)
3531 }
3532 }
3533 unsafe impl ::windows::runtime::Interface for IWdsTransportTftpManager {
3534 type Vtable = IWdsTransportTftpManager_abi;
3535 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(321365960, 44682, 20403, [129, 80, 19, 98, 39, 195, 126, 154]);
3536 }
3537 impl ::std::convert::From<IWdsTransportTftpManager> for ::windows::runtime::IUnknown {
from(value: IWdsTransportTftpManager) -> Self3538 fn from(value: IWdsTransportTftpManager) -> Self {
3539 unsafe { ::std::mem::transmute(value) }
3540 }
3541 }
3542 impl ::std::convert::From<&IWdsTransportTftpManager> for ::windows::runtime::IUnknown {
from(value: &IWdsTransportTftpManager) -> Self3543 fn from(value: &IWdsTransportTftpManager) -> Self {
3544 ::std::convert::From::from(::std::clone::Clone::clone(value))
3545 }
3546 }
3547 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IWdsTransportTftpManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3548 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3549 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
3550 }
3551 }
3552 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IWdsTransportTftpManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3553 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
3554 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
3555 }
3556 }
3557 #[cfg(feature = "Win32_System_Ole_Automation")]
3558 impl ::std::convert::From<IWdsTransportTftpManager> for super::Ole::Automation::IDispatch {
from(value: IWdsTransportTftpManager) -> Self3559 fn from(value: IWdsTransportTftpManager) -> Self {
3560 unsafe { ::std::mem::transmute(value) }
3561 }
3562 }
3563 #[cfg(feature = "Win32_System_Ole_Automation")]
3564 impl ::std::convert::From<&IWdsTransportTftpManager> for super::Ole::Automation::IDispatch {
from(value: &IWdsTransportTftpManager) -> Self3565 fn from(value: &IWdsTransportTftpManager) -> Self {
3566 ::std::convert::From::from(::std::clone::Clone::clone(value))
3567 }
3568 }
3569 #[cfg(feature = "Win32_System_Ole_Automation")]
3570 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IWdsTransportTftpManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3571 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3572 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self))
3573 }
3574 }
3575 #[cfg(feature = "Win32_System_Ole_Automation")]
3576 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IWdsTransportTftpManager {
into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3577 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> {
3578 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self)))
3579 }
3580 }
3581 #[repr(C)]
3582 #[doc(hidden)]
3583 pub struct IWdsTransportTftpManager_abi(
3584 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3585 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3586 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
3587 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT,
3588 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3589 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize,
3590 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT,
3591 #[cfg(not(feature = "Win32_Foundation"))] usize,
3592 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))]
3593 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT,
3594 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize,
3595 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwdstransporttftpclients: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
3596 );
3597 pub const MC_SERVER_CURRENT_VERSION: u32 = 1u32;
3598 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
3599 #[repr(transparent)]
3600 pub struct PFN_WDS_CLI_CALLBACK_MESSAGE_ID(pub u32);
3601 pub const WDS_CLI_MSG_START: PFN_WDS_CLI_CALLBACK_MESSAGE_ID = PFN_WDS_CLI_CALLBACK_MESSAGE_ID(0u32);
3602 pub const WDS_CLI_MSG_COMPLETE: PFN_WDS_CLI_CALLBACK_MESSAGE_ID = PFN_WDS_CLI_CALLBACK_MESSAGE_ID(1u32);
3603 pub const WDS_CLI_MSG_PROGRESS: PFN_WDS_CLI_CALLBACK_MESSAGE_ID = PFN_WDS_CLI_CALLBACK_MESSAGE_ID(2u32);
3604 pub const WDS_CLI_MSG_TEXT: PFN_WDS_CLI_CALLBACK_MESSAGE_ID = PFN_WDS_CLI_CALLBACK_MESSAGE_ID(3u32);
3605 impl ::std::convert::From<u32> for PFN_WDS_CLI_CALLBACK_MESSAGE_ID {
from(value: u32) -> Self3606 fn from(value: u32) -> Self {
3607 Self(value)
3608 }
3609 }
3610 unsafe impl ::windows::runtime::Abi for PFN_WDS_CLI_CALLBACK_MESSAGE_ID {
3611 type Abi = Self;
3612 type DefaultType = Self;
3613 }
3614 impl ::std::ops::BitOr for PFN_WDS_CLI_CALLBACK_MESSAGE_ID {
3615 type Output = Self;
bitor(self, rhs: Self) -> Self3616 fn bitor(self, rhs: Self) -> Self {
3617 Self(self.0 | rhs.0)
3618 }
3619 }
3620 impl ::std::ops::BitAnd for PFN_WDS_CLI_CALLBACK_MESSAGE_ID {
3621 type Output = Self;
bitand(self, rhs: Self) -> Self3622 fn bitand(self, rhs: Self) -> Self {
3623 Self(self.0 & rhs.0)
3624 }
3625 }
3626 impl ::std::ops::BitOrAssign for PFN_WDS_CLI_CALLBACK_MESSAGE_ID {
bitor_assign(&mut self, rhs: Self)3627 fn bitor_assign(&mut self, rhs: Self) {
3628 self.0.bitor_assign(rhs.0)
3629 }
3630 }
3631 impl ::std::ops::BitAndAssign for PFN_WDS_CLI_CALLBACK_MESSAGE_ID {
bitand_assign(&mut self, rhs: Self)3632 fn bitand_assign(&mut self, rhs: Self) {
3633 self.0.bitand_assign(rhs.0)
3634 }
3635 }
3636 impl ::std::ops::Not for PFN_WDS_CLI_CALLBACK_MESSAGE_ID {
3637 type Output = Self;
not(self) -> Self3638 fn not(self) -> Self {
3639 Self(self.0.not())
3640 }
3641 }
3642 #[cfg(feature = "Win32_Foundation")]
3643 pub type PFN_WdsCliCallback = unsafe extern "system" fn(dwmessageid: PFN_WDS_CLI_CALLBACK_MESSAGE_ID, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pvuserdata: *const ::std::ffi::c_void);
3644 #[cfg(feature = "Win32_Foundation")]
3645 pub type PFN_WdsCliTraceFunction = unsafe extern "system" fn(pwszformat: super::super::Foundation::PWSTR, params: *const i8);
3646 #[cfg(feature = "Win32_Foundation")]
3647 pub type PFN_WdsTransportClientReceiveContents = unsafe extern "system" fn(hsessionkey: super::super::Foundation::HANDLE, pcallerdata: *const ::std::ffi::c_void, pcontents: *const ::std::ffi::c_void, ulsize: u32, pullcontentoffset: *const u64);
3648 #[cfg(feature = "Win32_Foundation")]
3649 pub type PFN_WdsTransportClientReceiveMetadata = unsafe extern "system" fn(hsessionkey: super::super::Foundation::HANDLE, pcallerdata: *const ::std::ffi::c_void, pmetadata: *const ::std::ffi::c_void, ulsize: u32);
3650 #[cfg(feature = "Win32_Foundation")]
3651 pub type PFN_WdsTransportClientSessionComplete = unsafe extern "system" fn(hsessionkey: super::super::Foundation::HANDLE, pcallerdata: *const ::std::ffi::c_void, dwerror: u32);
3652 #[cfg(feature = "Win32_Foundation")]
3653 pub type PFN_WdsTransportClientSessionNegotiate = unsafe extern "system" fn(hsessionkey: super::super::Foundation::HANDLE, pcallerdata: *const ::std::ffi::c_void, pinfo: *const TRANSPORTCLIENT_SESSION_INFO, hnegotiatekey: super::super::Foundation::HANDLE);
3654 #[cfg(feature = "Win32_Foundation")]
3655 pub type PFN_WdsTransportClientSessionStart = unsafe extern "system" fn(hsessionkey: super::super::Foundation::HANDLE, pcallerdata: *const ::std::ffi::c_void, ullfilesize: *const u64);
3656 #[cfg(feature = "Win32_Foundation")]
3657 pub type PFN_WdsTransportClientSessionStartEx = unsafe extern "system" fn(hsessionkey: super::super::Foundation::HANDLE, pcallerdata: *const ::std::ffi::c_void, info: *const TRANSPORTCLIENT_SESSION_INFO);
3658 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3659 #[repr(C)]
3660 pub struct PXE_ADDRESS {
3661 pub uFlags: u32,
3662 pub Anonymous: PXE_ADDRESS_0,
3663 pub uAddrLen: u32,
3664 pub uPort: u16,
3665 }
3666 impl PXE_ADDRESS {}
3667 impl ::std::default::Default for PXE_ADDRESS {
default() -> Self3668 fn default() -> Self {
3669 unsafe { ::std::mem::zeroed() }
3670 }
3671 }
3672 impl ::std::cmp::PartialEq for PXE_ADDRESS {
eq(&self, _other: &Self) -> bool3673 fn eq(&self, _other: &Self) -> bool {
3674 unimplemented!()
3675 }
3676 }
3677 impl ::std::cmp::Eq for PXE_ADDRESS {}
3678 unsafe impl ::windows::runtime::Abi for PXE_ADDRESS {
3679 type Abi = Self;
3680 type DefaultType = Self;
3681 }
3682 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3683 #[repr(C)]
3684 pub union PXE_ADDRESS_0 {
3685 pub bAddress: [u8; 16],
3686 pub uIpAddress: u32,
3687 }
3688 impl PXE_ADDRESS_0 {}
3689 impl ::std::default::Default for PXE_ADDRESS_0 {
default() -> Self3690 fn default() -> Self {
3691 unsafe { ::std::mem::zeroed() }
3692 }
3693 }
3694 impl ::std::cmp::PartialEq for PXE_ADDRESS_0 {
eq(&self, _other: &Self) -> bool3695 fn eq(&self, _other: &Self) -> bool {
3696 unimplemented!()
3697 }
3698 }
3699 impl ::std::cmp::Eq for PXE_ADDRESS_0 {}
3700 unsafe impl ::windows::runtime::Abi for PXE_ADDRESS_0 {
3701 type Abi = Self;
3702 type DefaultType = Self;
3703 }
3704 pub const PXE_ADDR_BROADCAST: u32 = 1u32;
3705 pub const PXE_ADDR_USE_ADDR: u32 = 4u32;
3706 pub const PXE_ADDR_USE_DHCP_RULES: u32 = 8u32;
3707 pub const PXE_ADDR_USE_PORT: u32 = 2u32;
3708 pub const PXE_BA_CUSTOM: u32 = 2u32;
3709 pub const PXE_BA_IGNORE: u32 = 3u32;
3710 pub const PXE_BA_NBP: u32 = 1u32;
3711 pub const PXE_BA_REJECTED: u32 = 4u32;
3712 pub const PXE_CALLBACK_MAX: u32 = 3u32;
3713 pub const PXE_CALLBACK_RECV_REQUEST: u32 = 0u32;
3714 pub const PXE_CALLBACK_SERVICE_CONTROL: u32 = 2u32;
3715 pub const PXE_CALLBACK_SHUTDOWN: u32 = 1u32;
3716 pub const PXE_DHCPV6_CLIENT_PORT: u32 = 546u32;
3717 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3718 #[repr(C)]
3719 pub struct PXE_DHCPV6_MESSAGE {
3720 pub MessageType: u8,
3721 pub TransactionIDByte1: u8,
3722 pub TransactionIDByte2: u8,
3723 pub TransactionIDByte3: u8,
3724 pub Options: [PXE_DHCPV6_OPTION; 1],
3725 }
3726 impl PXE_DHCPV6_MESSAGE {}
3727 impl ::std::default::Default for PXE_DHCPV6_MESSAGE {
default() -> Self3728 fn default() -> Self {
3729 unsafe { ::std::mem::zeroed() }
3730 }
3731 }
3732 impl ::std::cmp::PartialEq for PXE_DHCPV6_MESSAGE {
eq(&self, _other: &Self) -> bool3733 fn eq(&self, _other: &Self) -> bool {
3734 unimplemented!()
3735 }
3736 }
3737 impl ::std::cmp::Eq for PXE_DHCPV6_MESSAGE {}
3738 unsafe impl ::windows::runtime::Abi for PXE_DHCPV6_MESSAGE {
3739 type Abi = Self;
3740 type DefaultType = Self;
3741 }
3742 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3743 #[repr(C)]
3744 pub struct PXE_DHCPV6_MESSAGE_HEADER {
3745 pub MessageType: u8,
3746 pub Message: [u8; 1],
3747 }
3748 impl PXE_DHCPV6_MESSAGE_HEADER {}
3749 impl ::std::default::Default for PXE_DHCPV6_MESSAGE_HEADER {
default() -> Self3750 fn default() -> Self {
3751 unsafe { ::std::mem::zeroed() }
3752 }
3753 }
3754 impl ::std::fmt::Debug for PXE_DHCPV6_MESSAGE_HEADER {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result3755 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3756 fmt.debug_struct("PXE_DHCPV6_MESSAGE_HEADER").field("MessageType", &self.MessageType).field("Message", &self.Message).finish()
3757 }
3758 }
3759 impl ::std::cmp::PartialEq for PXE_DHCPV6_MESSAGE_HEADER {
eq(&self, other: &Self) -> bool3760 fn eq(&self, other: &Self) -> bool {
3761 self.MessageType == other.MessageType && self.Message == other.Message
3762 }
3763 }
3764 impl ::std::cmp::Eq for PXE_DHCPV6_MESSAGE_HEADER {}
3765 unsafe impl ::windows::runtime::Abi for PXE_DHCPV6_MESSAGE_HEADER {
3766 type Abi = Self;
3767 type DefaultType = Self;
3768 }
3769 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3770 #[repr(C)]
3771 pub struct PXE_DHCPV6_NESTED_RELAY_MESSAGE {
3772 pub pRelayMessage: *mut PXE_DHCPV6_RELAY_MESSAGE,
3773 pub cbRelayMessage: u32,
3774 pub pInterfaceIdOption: *mut ::std::ffi::c_void,
3775 pub cbInterfaceIdOption: u16,
3776 }
3777 impl PXE_DHCPV6_NESTED_RELAY_MESSAGE {}
3778 impl ::std::default::Default for PXE_DHCPV6_NESTED_RELAY_MESSAGE {
default() -> Self3779 fn default() -> Self {
3780 unsafe { ::std::mem::zeroed() }
3781 }
3782 }
3783 impl ::std::fmt::Debug for PXE_DHCPV6_NESTED_RELAY_MESSAGE {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result3784 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3785 fmt.debug_struct("PXE_DHCPV6_NESTED_RELAY_MESSAGE").field("pRelayMessage", &self.pRelayMessage).field("cbRelayMessage", &self.cbRelayMessage).field("pInterfaceIdOption", &self.pInterfaceIdOption).field("cbInterfaceIdOption", &self.cbInterfaceIdOption).finish()
3786 }
3787 }
3788 impl ::std::cmp::PartialEq for PXE_DHCPV6_NESTED_RELAY_MESSAGE {
eq(&self, other: &Self) -> bool3789 fn eq(&self, other: &Self) -> bool {
3790 self.pRelayMessage == other.pRelayMessage && self.cbRelayMessage == other.cbRelayMessage && self.pInterfaceIdOption == other.pInterfaceIdOption && self.cbInterfaceIdOption == other.cbInterfaceIdOption
3791 }
3792 }
3793 impl ::std::cmp::Eq for PXE_DHCPV6_NESTED_RELAY_MESSAGE {}
3794 unsafe impl ::windows::runtime::Abi for PXE_DHCPV6_NESTED_RELAY_MESSAGE {
3795 type Abi = Self;
3796 type DefaultType = Self;
3797 }
3798 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3799 #[repr(C, packed(1))]
3800 pub struct PXE_DHCPV6_OPTION {
3801 pub OptionCode: u16,
3802 pub DataLength: u16,
3803 pub Data: [u8; 1],
3804 }
3805 impl PXE_DHCPV6_OPTION {}
3806 impl ::std::default::Default for PXE_DHCPV6_OPTION {
default() -> Self3807 fn default() -> Self {
3808 unsafe { ::std::mem::zeroed() }
3809 }
3810 }
3811 impl ::std::cmp::PartialEq for PXE_DHCPV6_OPTION {
eq(&self, _other: &Self) -> bool3812 fn eq(&self, _other: &Self) -> bool {
3813 unimplemented!()
3814 }
3815 }
3816 impl ::std::cmp::Eq for PXE_DHCPV6_OPTION {}
3817 unsafe impl ::windows::runtime::Abi for PXE_DHCPV6_OPTION {
3818 type Abi = Self;
3819 type DefaultType = Self;
3820 }
3821 pub const PXE_DHCPV6_RELAY_HOP_COUNT_LIMIT: u32 = 32u32;
3822 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3823 #[repr(C)]
3824 pub struct PXE_DHCPV6_RELAY_MESSAGE {
3825 pub MessageType: u8,
3826 pub HopCount: u8,
3827 pub LinkAddress: [u8; 16],
3828 pub PeerAddress: [u8; 16],
3829 pub Options: [PXE_DHCPV6_OPTION; 1],
3830 }
3831 impl PXE_DHCPV6_RELAY_MESSAGE {}
3832 impl ::std::default::Default for PXE_DHCPV6_RELAY_MESSAGE {
default() -> Self3833 fn default() -> Self {
3834 unsafe { ::std::mem::zeroed() }
3835 }
3836 }
3837 impl ::std::cmp::PartialEq for PXE_DHCPV6_RELAY_MESSAGE {
eq(&self, _other: &Self) -> bool3838 fn eq(&self, _other: &Self) -> bool {
3839 unimplemented!()
3840 }
3841 }
3842 impl ::std::cmp::Eq for PXE_DHCPV6_RELAY_MESSAGE {}
3843 unsafe impl ::windows::runtime::Abi for PXE_DHCPV6_RELAY_MESSAGE {
3844 type Abi = Self;
3845 type DefaultType = Self;
3846 }
3847 pub const PXE_DHCPV6_SERVER_PORT: u32 = 547u32;
3848 pub const PXE_DHCP_CLIENT_PORT: u32 = 68u32;
3849 pub const PXE_DHCP_FILE_SIZE: u32 = 128u32;
3850 pub const PXE_DHCP_HWAADR_SIZE: u32 = 16u32;
3851 pub const PXE_DHCP_MAGIC_COOKIE_SIZE: u32 = 4u32;
3852 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3853 #[repr(C, packed(1))]
3854 pub struct PXE_DHCP_MESSAGE {
3855 pub Operation: u8,
3856 pub HardwareAddressType: u8,
3857 pub HardwareAddressLength: u8,
3858 pub HopCount: u8,
3859 pub TransactionID: u32,
3860 pub SecondsSinceBoot: u16,
3861 pub Reserved: u16,
3862 pub ClientIpAddress: u32,
3863 pub YourIpAddress: u32,
3864 pub BootstrapServerAddress: u32,
3865 pub RelayAgentIpAddress: u32,
3866 pub HardwareAddress: [u8; 16],
3867 pub HostName: [u8; 64],
3868 pub BootFileName: [u8; 128],
3869 pub Anonymous: PXE_DHCP_MESSAGE_0,
3870 pub Option: PXE_DHCP_OPTION,
3871 }
3872 impl PXE_DHCP_MESSAGE {}
3873 impl ::std::default::Default for PXE_DHCP_MESSAGE {
default() -> Self3874 fn default() -> Self {
3875 unsafe { ::std::mem::zeroed() }
3876 }
3877 }
3878 impl ::std::cmp::PartialEq for PXE_DHCP_MESSAGE {
eq(&self, _other: &Self) -> bool3879 fn eq(&self, _other: &Self) -> bool {
3880 unimplemented!()
3881 }
3882 }
3883 impl ::std::cmp::Eq for PXE_DHCP_MESSAGE {}
3884 unsafe impl ::windows::runtime::Abi for PXE_DHCP_MESSAGE {
3885 type Abi = Self;
3886 type DefaultType = Self;
3887 }
3888 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3889 #[repr(C, packed(1))]
3890 pub union PXE_DHCP_MESSAGE_0 {
3891 pub bMagicCookie: [u8; 4],
3892 pub uMagicCookie: u32,
3893 }
3894 impl PXE_DHCP_MESSAGE_0 {}
3895 impl ::std::default::Default for PXE_DHCP_MESSAGE_0 {
default() -> Self3896 fn default() -> Self {
3897 unsafe { ::std::mem::zeroed() }
3898 }
3899 }
3900 impl ::std::cmp::PartialEq for PXE_DHCP_MESSAGE_0 {
eq(&self, _other: &Self) -> bool3901 fn eq(&self, _other: &Self) -> bool {
3902 unimplemented!()
3903 }
3904 }
3905 impl ::std::cmp::Eq for PXE_DHCP_MESSAGE_0 {}
3906 unsafe impl ::windows::runtime::Abi for PXE_DHCP_MESSAGE_0 {
3907 type Abi = Self;
3908 type DefaultType = Self;
3909 }
3910 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3911 #[repr(C)]
3912 pub struct PXE_DHCP_OPTION {
3913 pub OptionType: u8,
3914 pub OptionLength: u8,
3915 pub OptionValue: [u8; 1],
3916 }
3917 impl PXE_DHCP_OPTION {}
3918 impl ::std::default::Default for PXE_DHCP_OPTION {
default() -> Self3919 fn default() -> Self {
3920 unsafe { ::std::mem::zeroed() }
3921 }
3922 }
3923 impl ::std::fmt::Debug for PXE_DHCP_OPTION {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result3924 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3925 fmt.debug_struct("PXE_DHCP_OPTION").field("OptionType", &self.OptionType).field("OptionLength", &self.OptionLength).field("OptionValue", &self.OptionValue).finish()
3926 }
3927 }
3928 impl ::std::cmp::PartialEq for PXE_DHCP_OPTION {
eq(&self, other: &Self) -> bool3929 fn eq(&self, other: &Self) -> bool {
3930 self.OptionType == other.OptionType && self.OptionLength == other.OptionLength && self.OptionValue == other.OptionValue
3931 }
3932 }
3933 impl ::std::cmp::Eq for PXE_DHCP_OPTION {}
3934 unsafe impl ::windows::runtime::Abi for PXE_DHCP_OPTION {
3935 type Abi = Self;
3936 type DefaultType = Self;
3937 }
3938 pub const PXE_DHCP_SERVER_PORT: u32 = 67u32;
3939 pub const PXE_DHCP_SERVER_SIZE: u32 = 64u32;
3940 pub const PXE_GSI_SERVER_DUID: u32 = 2u32;
3941 pub const PXE_GSI_TRACE_ENABLED: u32 = 1u32;
3942 pub const PXE_MAX_ADDRESS: u32 = 16u32;
3943 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
3944 #[repr(C)]
3945 #[cfg(feature = "Win32_Foundation")]
3946 pub struct PXE_PROVIDER {
3947 pub uSizeOfStruct: u32,
3948 pub pwszName: super::super::Foundation::PWSTR,
3949 pub pwszFilePath: super::super::Foundation::PWSTR,
3950 pub bIsCritical: super::super::Foundation::BOOL,
3951 pub uIndex: u32,
3952 }
3953 #[cfg(feature = "Win32_Foundation")]
3954 impl PXE_PROVIDER {}
3955 #[cfg(feature = "Win32_Foundation")]
3956 impl ::std::default::Default for PXE_PROVIDER {
default() -> Self3957 fn default() -> Self {
3958 unsafe { ::std::mem::zeroed() }
3959 }
3960 }
3961 #[cfg(feature = "Win32_Foundation")]
3962 impl ::std::fmt::Debug for PXE_PROVIDER {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result3963 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3964 fmt.debug_struct("PXE_PROVIDER").field("uSizeOfStruct", &self.uSizeOfStruct).field("pwszName", &self.pwszName).field("pwszFilePath", &self.pwszFilePath).field("bIsCritical", &self.bIsCritical).field("uIndex", &self.uIndex).finish()
3965 }
3966 }
3967 #[cfg(feature = "Win32_Foundation")]
3968 impl ::std::cmp::PartialEq for PXE_PROVIDER {
eq(&self, other: &Self) -> bool3969 fn eq(&self, other: &Self) -> bool {
3970 self.uSizeOfStruct == other.uSizeOfStruct && self.pwszName == other.pwszName && self.pwszFilePath == other.pwszFilePath && self.bIsCritical == other.bIsCritical && self.uIndex == other.uIndex
3971 }
3972 }
3973 #[cfg(feature = "Win32_Foundation")]
3974 impl ::std::cmp::Eq for PXE_PROVIDER {}
3975 #[cfg(feature = "Win32_Foundation")]
3976 unsafe impl ::windows::runtime::Abi for PXE_PROVIDER {
3977 type Abi = Self;
3978 type DefaultType = Self;
3979 }
3980 pub const PXE_PROV_ATTR_FILTER: u32 = 0u32;
3981 pub const PXE_PROV_ATTR_FILTER_IPV6: u32 = 1u32;
3982 pub const PXE_PROV_ATTR_IPV6_CAPABLE: u32 = 2u32;
3983 pub const PXE_PROV_FILTER_ALL: u32 = 0u32;
3984 pub const PXE_PROV_FILTER_DHCP_ONLY: u32 = 1u32;
3985 pub const PXE_PROV_FILTER_PXE_ONLY: u32 = 2u32;
3986 pub const PXE_REG_INDEX_BOTTOM: u32 = 4294967295u32;
3987 pub const PXE_REG_INDEX_TOP: u32 = 0u32;
3988 pub const PXE_SERVER_PORT: u32 = 4011u32;
3989 pub const PXE_TRACE_ERROR: u32 = 524288u32;
3990 pub const PXE_TRACE_FATAL: u32 = 1048576u32;
3991 pub const PXE_TRACE_INFO: u32 = 131072u32;
3992 pub const PXE_TRACE_VERBOSE: u32 = 65536u32;
3993 pub const PXE_TRACE_WARNING: u32 = 262144u32;
3994 #[cfg(feature = "Win32_Foundation")]
3995 #[inline]
PxeAsyncRecvDone<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hclientrequest: Param0, action: u32) -> u323996 pub unsafe fn PxeAsyncRecvDone<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hclientrequest: Param0, action: u32) -> u32 {
3997 #[cfg(windows)]
3998 {
3999 #[link(name = "windows")]
4000 extern "system" {
4001 fn PxeAsyncRecvDone(hclientrequest: super::super::Foundation::HANDLE, action: u32) -> u32;
4002 }
4003 ::std::mem::transmute(PxeAsyncRecvDone(hclientrequest.into_param().abi(), ::std::mem::transmute(action)))
4004 }
4005 #[cfg(not(windows))]
4006 unimplemented!("Unsupported target OS");
4007 }
4008 #[inline]
PxeDhcpAppendOption(preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32, boption: u8, boptionlen: u8, pvalue: *const ::std::ffi::c_void) -> u324009 pub unsafe fn PxeDhcpAppendOption(preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32, boption: u8, boptionlen: u8, pvalue: *const ::std::ffi::c_void) -> u32 {
4010 #[cfg(windows)]
4011 {
4012 #[link(name = "windows")]
4013 extern "system" {
4014 fn PxeDhcpAppendOption(preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32, boption: u8, boptionlen: u8, pvalue: *const ::std::ffi::c_void) -> u32;
4015 }
4016 ::std::mem::transmute(PxeDhcpAppendOption(::std::mem::transmute(preplypacket), ::std::mem::transmute(umaxreplypacketlen), ::std::mem::transmute(pureplypacketlen), ::std::mem::transmute(boption), ::std::mem::transmute(boptionlen), ::std::mem::transmute(pvalue)))
4017 }
4018 #[cfg(not(windows))]
4019 unimplemented!("Unsupported target OS");
4020 }
4021 #[inline]
PxeDhcpAppendOptionRaw(preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32, ubufferlen: u16, pbuffer: *const ::std::ffi::c_void) -> u324022 pub unsafe fn PxeDhcpAppendOptionRaw(preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32, ubufferlen: u16, pbuffer: *const ::std::ffi::c_void) -> u32 {
4023 #[cfg(windows)]
4024 {
4025 #[link(name = "windows")]
4026 extern "system" {
4027 fn PxeDhcpAppendOptionRaw(preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32, ubufferlen: u16, pbuffer: *const ::std::ffi::c_void) -> u32;
4028 }
4029 ::std::mem::transmute(PxeDhcpAppendOptionRaw(::std::mem::transmute(preplypacket), ::std::mem::transmute(umaxreplypacketlen), ::std::mem::transmute(pureplypacketlen), ::std::mem::transmute(ubufferlen), ::std::mem::transmute(pbuffer)))
4030 }
4031 #[cfg(not(windows))]
4032 unimplemented!("Unsupported target OS");
4033 }
4034 #[inline]
PxeDhcpGetOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, uinstance: u32, boption: u8, pboptionlen: *mut u8, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u324035 pub unsafe fn PxeDhcpGetOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, uinstance: u32, boption: u8, pboptionlen: *mut u8, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u32 {
4036 #[cfg(windows)]
4037 {
4038 #[link(name = "windows")]
4039 extern "system" {
4040 fn PxeDhcpGetOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, uinstance: u32, boption: u8, pboptionlen: *mut u8, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u32;
4041 }
4042 ::std::mem::transmute(PxeDhcpGetOptionValue(::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), ::std::mem::transmute(uinstance), ::std::mem::transmute(boption), ::std::mem::transmute(pboptionlen), ::std::mem::transmute(ppoptionvalue)))
4043 }
4044 #[cfg(not(windows))]
4045 unimplemented!("Unsupported target OS");
4046 }
4047 #[inline]
PxeDhcpGetVendorOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, boption: u8, uinstance: u32, pboptionlen: *mut u8, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u324048 pub unsafe fn PxeDhcpGetVendorOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, boption: u8, uinstance: u32, pboptionlen: *mut u8, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u32 {
4049 #[cfg(windows)]
4050 {
4051 #[link(name = "windows")]
4052 extern "system" {
4053 fn PxeDhcpGetVendorOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, boption: u8, uinstance: u32, pboptionlen: *mut u8, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u32;
4054 }
4055 ::std::mem::transmute(PxeDhcpGetVendorOptionValue(::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), ::std::mem::transmute(boption), ::std::mem::transmute(uinstance), ::std::mem::transmute(pboptionlen), ::std::mem::transmute(ppoptionvalue)))
4056 }
4057 #[cfg(not(windows))]
4058 unimplemented!("Unsupported target OS");
4059 }
4060 #[inline]
PxeDhcpInitialize(precvpacket: *const ::std::ffi::c_void, urecvpacketlen: u32, preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32) -> u324061 pub unsafe fn PxeDhcpInitialize(precvpacket: *const ::std::ffi::c_void, urecvpacketlen: u32, preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32) -> u32 {
4062 #[cfg(windows)]
4063 {
4064 #[link(name = "windows")]
4065 extern "system" {
4066 fn PxeDhcpInitialize(precvpacket: *const ::std::ffi::c_void, urecvpacketlen: u32, preplypacket: *mut ::std::ffi::c_void, umaxreplypacketlen: u32, pureplypacketlen: *mut u32) -> u32;
4067 }
4068 ::std::mem::transmute(PxeDhcpInitialize(::std::mem::transmute(precvpacket), ::std::mem::transmute(urecvpacketlen), ::std::mem::transmute(preplypacket), ::std::mem::transmute(umaxreplypacketlen), ::std::mem::transmute(pureplypacketlen)))
4069 }
4070 #[cfg(not(windows))]
4071 unimplemented!("Unsupported target OS");
4072 }
4073 #[cfg(feature = "Win32_Foundation")]
4074 #[inline]
PxeDhcpIsValid<'a, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(ppacket: *const ::std::ffi::c_void, upacketlen: u32, brequestpacket: Param2, pbpxeoptionpresent: *mut super::super::Foundation::BOOL) -> u324075 pub unsafe fn PxeDhcpIsValid<'a, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(ppacket: *const ::std::ffi::c_void, upacketlen: u32, brequestpacket: Param2, pbpxeoptionpresent: *mut super::super::Foundation::BOOL) -> u32 {
4076 #[cfg(windows)]
4077 {
4078 #[link(name = "windows")]
4079 extern "system" {
4080 fn PxeDhcpIsValid(ppacket: *const ::std::ffi::c_void, upacketlen: u32, brequestpacket: super::super::Foundation::BOOL, pbpxeoptionpresent: *mut super::super::Foundation::BOOL) -> u32;
4081 }
4082 ::std::mem::transmute(PxeDhcpIsValid(::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), brequestpacket.into_param().abi(), ::std::mem::transmute(pbpxeoptionpresent)))
4083 }
4084 #[cfg(not(windows))]
4085 unimplemented!("Unsupported target OS");
4086 }
4087 #[inline]
PxeDhcpv6AppendOption(preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32, woptiontype: u16, cboption: u16, poption: *const ::std::ffi::c_void) -> u324088 pub unsafe fn PxeDhcpv6AppendOption(preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32, woptiontype: u16, cboption: u16, poption: *const ::std::ffi::c_void) -> u32 {
4089 #[cfg(windows)]
4090 {
4091 #[link(name = "windows")]
4092 extern "system" {
4093 fn PxeDhcpv6AppendOption(preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32, woptiontype: u16, cboption: u16, poption: *const ::std::ffi::c_void) -> u32;
4094 }
4095 ::std::mem::transmute(PxeDhcpv6AppendOption(::std::mem::transmute(preply), ::std::mem::transmute(cbreply), ::std::mem::transmute(pcbreplyused), ::std::mem::transmute(woptiontype), ::std::mem::transmute(cboption), ::std::mem::transmute(poption)))
4096 }
4097 #[cfg(not(windows))]
4098 unimplemented!("Unsupported target OS");
4099 }
4100 #[inline]
PxeDhcpv6AppendOptionRaw(preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32, cbbuffer: u16, pbuffer: *const ::std::ffi::c_void) -> u324101 pub unsafe fn PxeDhcpv6AppendOptionRaw(preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32, cbbuffer: u16, pbuffer: *const ::std::ffi::c_void) -> u32 {
4102 #[cfg(windows)]
4103 {
4104 #[link(name = "windows")]
4105 extern "system" {
4106 fn PxeDhcpv6AppendOptionRaw(preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32, cbbuffer: u16, pbuffer: *const ::std::ffi::c_void) -> u32;
4107 }
4108 ::std::mem::transmute(PxeDhcpv6AppendOptionRaw(::std::mem::transmute(preply), ::std::mem::transmute(cbreply), ::std::mem::transmute(pcbreplyused), ::std::mem::transmute(cbbuffer), ::std::mem::transmute(pbuffer)))
4109 }
4110 #[cfg(not(windows))]
4111 unimplemented!("Unsupported target OS");
4112 }
4113 #[inline]
PxeDhcpv6CreateRelayRepl(prelaymessages: *const PXE_DHCPV6_NESTED_RELAY_MESSAGE, nrelaymessages: u32, pinnerpacket: *const u8, cbinnerpacket: u32, preplybuffer: *mut ::std::ffi::c_void, cbreplybuffer: u32, pcbreplybuffer: *mut u32) -> u324114 pub unsafe fn PxeDhcpv6CreateRelayRepl(prelaymessages: *const PXE_DHCPV6_NESTED_RELAY_MESSAGE, nrelaymessages: u32, pinnerpacket: *const u8, cbinnerpacket: u32, preplybuffer: *mut ::std::ffi::c_void, cbreplybuffer: u32, pcbreplybuffer: *mut u32) -> u32 {
4115 #[cfg(windows)]
4116 {
4117 #[link(name = "windows")]
4118 extern "system" {
4119 fn PxeDhcpv6CreateRelayRepl(prelaymessages: *const PXE_DHCPV6_NESTED_RELAY_MESSAGE, nrelaymessages: u32, pinnerpacket: *const u8, cbinnerpacket: u32, preplybuffer: *mut ::std::ffi::c_void, cbreplybuffer: u32, pcbreplybuffer: *mut u32) -> u32;
4120 }
4121 ::std::mem::transmute(PxeDhcpv6CreateRelayRepl(::std::mem::transmute(prelaymessages), ::std::mem::transmute(nrelaymessages), ::std::mem::transmute(pinnerpacket), ::std::mem::transmute(cbinnerpacket), ::std::mem::transmute(preplybuffer), ::std::mem::transmute(cbreplybuffer), ::std::mem::transmute(pcbreplybuffer)))
4122 }
4123 #[cfg(not(windows))]
4124 unimplemented!("Unsupported target OS");
4125 }
4126 #[inline]
PxeDhcpv6GetOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, uinstance: u32, woption: u16, pwoptionlen: *mut u16, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u324127 pub unsafe fn PxeDhcpv6GetOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, uinstance: u32, woption: u16, pwoptionlen: *mut u16, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u32 {
4128 #[cfg(windows)]
4129 {
4130 #[link(name = "windows")]
4131 extern "system" {
4132 fn PxeDhcpv6GetOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, uinstance: u32, woption: u16, pwoptionlen: *mut u16, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u32;
4133 }
4134 ::std::mem::transmute(PxeDhcpv6GetOptionValue(::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), ::std::mem::transmute(uinstance), ::std::mem::transmute(woption), ::std::mem::transmute(pwoptionlen), ::std::mem::transmute(ppoptionvalue)))
4135 }
4136 #[cfg(not(windows))]
4137 unimplemented!("Unsupported target OS");
4138 }
4139 #[inline]
PxeDhcpv6GetVendorOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, dwenterprisenumber: u32, woption: u16, uinstance: u32, pwoptionlen: *mut u16, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u324140 pub unsafe fn PxeDhcpv6GetVendorOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, dwenterprisenumber: u32, woption: u16, uinstance: u32, pwoptionlen: *mut u16, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u32 {
4141 #[cfg(windows)]
4142 {
4143 #[link(name = "windows")]
4144 extern "system" {
4145 fn PxeDhcpv6GetVendorOptionValue(ppacket: *const ::std::ffi::c_void, upacketlen: u32, dwenterprisenumber: u32, woption: u16, uinstance: u32, pwoptionlen: *mut u16, ppoptionvalue: *mut *mut ::std::ffi::c_void) -> u32;
4146 }
4147 ::std::mem::transmute(PxeDhcpv6GetVendorOptionValue(::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), ::std::mem::transmute(dwenterprisenumber), ::std::mem::transmute(woption), ::std::mem::transmute(uinstance), ::std::mem::transmute(pwoptionlen), ::std::mem::transmute(ppoptionvalue)))
4148 }
4149 #[cfg(not(windows))]
4150 unimplemented!("Unsupported target OS");
4151 }
4152 #[inline]
PxeDhcpv6Initialize(prequest: *const ::std::ffi::c_void, cbrequest: u32, preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32) -> u324153 pub unsafe fn PxeDhcpv6Initialize(prequest: *const ::std::ffi::c_void, cbrequest: u32, preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32) -> u32 {
4154 #[cfg(windows)]
4155 {
4156 #[link(name = "windows")]
4157 extern "system" {
4158 fn PxeDhcpv6Initialize(prequest: *const ::std::ffi::c_void, cbrequest: u32, preply: *mut ::std::ffi::c_void, cbreply: u32, pcbreplyused: *mut u32) -> u32;
4159 }
4160 ::std::mem::transmute(PxeDhcpv6Initialize(::std::mem::transmute(prequest), ::std::mem::transmute(cbrequest), ::std::mem::transmute(preply), ::std::mem::transmute(cbreply), ::std::mem::transmute(pcbreplyused)))
4161 }
4162 #[cfg(not(windows))]
4163 unimplemented!("Unsupported target OS");
4164 }
4165 #[cfg(feature = "Win32_Foundation")]
4166 #[inline]
PxeDhcpv6IsValid<'a, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(ppacket: *const ::std::ffi::c_void, upacketlen: u32, brequestpacket: Param2, pbpxeoptionpresent: *mut super::super::Foundation::BOOL) -> u324167 pub unsafe fn PxeDhcpv6IsValid<'a, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(ppacket: *const ::std::ffi::c_void, upacketlen: u32, brequestpacket: Param2, pbpxeoptionpresent: *mut super::super::Foundation::BOOL) -> u32 {
4168 #[cfg(windows)]
4169 {
4170 #[link(name = "windows")]
4171 extern "system" {
4172 fn PxeDhcpv6IsValid(ppacket: *const ::std::ffi::c_void, upacketlen: u32, brequestpacket: super::super::Foundation::BOOL, pbpxeoptionpresent: *mut super::super::Foundation::BOOL) -> u32;
4173 }
4174 ::std::mem::transmute(PxeDhcpv6IsValid(::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), brequestpacket.into_param().abi(), ::std::mem::transmute(pbpxeoptionpresent)))
4175 }
4176 #[cfg(not(windows))]
4177 unimplemented!("Unsupported target OS");
4178 }
4179 #[inline]
PxeDhcpv6ParseRelayForw(prelayforwpacket: *const ::std::ffi::c_void, urelayforwpacketlen: u32, prelaymessages: *mut PXE_DHCPV6_NESTED_RELAY_MESSAGE, nrelaymessages: u32, pnrelaymessages: *mut u32, ppinnerpacket: *mut *mut u8, pcbinnerpacket: *mut u32) -> u324180 pub unsafe fn PxeDhcpv6ParseRelayForw(prelayforwpacket: *const ::std::ffi::c_void, urelayforwpacketlen: u32, prelaymessages: *mut PXE_DHCPV6_NESTED_RELAY_MESSAGE, nrelaymessages: u32, pnrelaymessages: *mut u32, ppinnerpacket: *mut *mut u8, pcbinnerpacket: *mut u32) -> u32 {
4181 #[cfg(windows)]
4182 {
4183 #[link(name = "windows")]
4184 extern "system" {
4185 fn PxeDhcpv6ParseRelayForw(prelayforwpacket: *const ::std::ffi::c_void, urelayforwpacketlen: u32, prelaymessages: *mut PXE_DHCPV6_NESTED_RELAY_MESSAGE, nrelaymessages: u32, pnrelaymessages: *mut u32, ppinnerpacket: *mut *mut u8, pcbinnerpacket: *mut u32) -> u32;
4186 }
4187 ::std::mem::transmute(PxeDhcpv6ParseRelayForw(
4188 ::std::mem::transmute(prelayforwpacket),
4189 ::std::mem::transmute(urelayforwpacketlen),
4190 ::std::mem::transmute(prelaymessages),
4191 ::std::mem::transmute(nrelaymessages),
4192 ::std::mem::transmute(pnrelaymessages),
4193 ::std::mem::transmute(ppinnerpacket),
4194 ::std::mem::transmute(pcbinnerpacket),
4195 ))
4196 }
4197 #[cfg(not(windows))]
4198 unimplemented!("Unsupported target OS");
4199 }
4200 #[inline]
PxeGetServerInfo(uinfotype: u32, pbuffer: *mut ::std::ffi::c_void, ubufferlen: u32) -> u324201 pub unsafe fn PxeGetServerInfo(uinfotype: u32, pbuffer: *mut ::std::ffi::c_void, ubufferlen: u32) -> u32 {
4202 #[cfg(windows)]
4203 {
4204 #[link(name = "windows")]
4205 extern "system" {
4206 fn PxeGetServerInfo(uinfotype: u32, pbuffer: *mut ::std::ffi::c_void, ubufferlen: u32) -> u32;
4207 }
4208 ::std::mem::transmute(PxeGetServerInfo(::std::mem::transmute(uinfotype), ::std::mem::transmute(pbuffer), ::std::mem::transmute(ubufferlen)))
4209 }
4210 #[cfg(not(windows))]
4211 unimplemented!("Unsupported target OS");
4212 }
4213 #[inline]
PxeGetServerInfoEx(uinfotype: u32, pbuffer: *mut ::std::ffi::c_void, ubufferlen: u32, pubufferused: *mut u32) -> u324214 pub unsafe fn PxeGetServerInfoEx(uinfotype: u32, pbuffer: *mut ::std::ffi::c_void, ubufferlen: u32, pubufferused: *mut u32) -> u32 {
4215 #[cfg(windows)]
4216 {
4217 #[link(name = "windows")]
4218 extern "system" {
4219 fn PxeGetServerInfoEx(uinfotype: u32, pbuffer: *mut ::std::ffi::c_void, ubufferlen: u32, pubufferused: *mut u32) -> u32;
4220 }
4221 ::std::mem::transmute(PxeGetServerInfoEx(::std::mem::transmute(uinfotype), ::std::mem::transmute(pbuffer), ::std::mem::transmute(ubufferlen), ::std::mem::transmute(pubufferused)))
4222 }
4223 #[cfg(not(windows))]
4224 unimplemented!("Unsupported target OS");
4225 }
4226 #[cfg(feature = "Win32_Foundation")]
4227 #[inline]
PxePacketAllocate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, hclientrequest: Param1, usize: u32) -> *mut ::std::ffi::c_void4228 pub unsafe fn PxePacketAllocate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, hclientrequest: Param1, usize: u32) -> *mut ::std::ffi::c_void {
4229 #[cfg(windows)]
4230 {
4231 #[link(name = "windows")]
4232 extern "system" {
4233 fn PxePacketAllocate(hprovider: super::super::Foundation::HANDLE, hclientrequest: super::super::Foundation::HANDLE, usize: u32) -> *mut ::std::ffi::c_void;
4234 }
4235 ::std::mem::transmute(PxePacketAllocate(hprovider.into_param().abi(), hclientrequest.into_param().abi(), ::std::mem::transmute(usize)))
4236 }
4237 #[cfg(not(windows))]
4238 unimplemented!("Unsupported target OS");
4239 }
4240 #[cfg(feature = "Win32_Foundation")]
4241 #[inline]
PxePacketFree<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, hclientrequest: Param1, ppacket: *const ::std::ffi::c_void) -> u324242 pub unsafe fn PxePacketFree<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, hclientrequest: Param1, ppacket: *const ::std::ffi::c_void) -> u32 {
4243 #[cfg(windows)]
4244 {
4245 #[link(name = "windows")]
4246 extern "system" {
4247 fn PxePacketFree(hprovider: super::super::Foundation::HANDLE, hclientrequest: super::super::Foundation::HANDLE, ppacket: *const ::std::ffi::c_void) -> u32;
4248 }
4249 ::std::mem::transmute(PxePacketFree(hprovider.into_param().abi(), hclientrequest.into_param().abi(), ::std::mem::transmute(ppacket)))
4250 }
4251 #[cfg(not(windows))]
4252 unimplemented!("Unsupported target OS");
4253 }
4254 #[cfg(feature = "Win32_Foundation")]
4255 #[inline]
PxeProviderEnumClose<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(henum: Param0) -> u324256 pub unsafe fn PxeProviderEnumClose<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(henum: Param0) -> u32 {
4257 #[cfg(windows)]
4258 {
4259 #[link(name = "windows")]
4260 extern "system" {
4261 fn PxeProviderEnumClose(henum: super::super::Foundation::HANDLE) -> u32;
4262 }
4263 ::std::mem::transmute(PxeProviderEnumClose(henum.into_param().abi()))
4264 }
4265 #[cfg(not(windows))]
4266 unimplemented!("Unsupported target OS");
4267 }
4268 #[cfg(feature = "Win32_Foundation")]
4269 #[inline]
PxeProviderEnumFirst(phenum: *mut super::super::Foundation::HANDLE) -> u324270 pub unsafe fn PxeProviderEnumFirst(phenum: *mut super::super::Foundation::HANDLE) -> u32 {
4271 #[cfg(windows)]
4272 {
4273 #[link(name = "windows")]
4274 extern "system" {
4275 fn PxeProviderEnumFirst(phenum: *mut super::super::Foundation::HANDLE) -> u32;
4276 }
4277 ::std::mem::transmute(PxeProviderEnumFirst(::std::mem::transmute(phenum)))
4278 }
4279 #[cfg(not(windows))]
4280 unimplemented!("Unsupported target OS");
4281 }
4282 #[cfg(feature = "Win32_Foundation")]
4283 #[inline]
PxeProviderEnumNext<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(henum: Param0, ppprovider: *mut *mut PXE_PROVIDER) -> u324284 pub unsafe fn PxeProviderEnumNext<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(henum: Param0, ppprovider: *mut *mut PXE_PROVIDER) -> u32 {
4285 #[cfg(windows)]
4286 {
4287 #[link(name = "windows")]
4288 extern "system" {
4289 fn PxeProviderEnumNext(henum: super::super::Foundation::HANDLE, ppprovider: *mut *mut PXE_PROVIDER) -> u32;
4290 }
4291 ::std::mem::transmute(PxeProviderEnumNext(henum.into_param().abi(), ::std::mem::transmute(ppprovider)))
4292 }
4293 #[cfg(not(windows))]
4294 unimplemented!("Unsupported target OS");
4295 }
4296 #[cfg(feature = "Win32_Foundation")]
4297 #[inline]
PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u324298 pub unsafe fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32 {
4299 #[cfg(windows)]
4300 {
4301 #[link(name = "windows")]
4302 extern "system" {
4303 fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32;
4304 }
4305 ::std::mem::transmute(PxeProviderFreeInfo(::std::mem::transmute(pprovider)))
4306 }
4307 #[cfg(not(windows))]
4308 unimplemented!("Unsupported target OS");
4309 }
4310 #[cfg(feature = "Win32_Foundation")]
4311 #[inline]
PxeProviderQueryIndex<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(pszprovidername: Param0, puindex: *mut u32) -> u324312 pub unsafe fn PxeProviderQueryIndex<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(pszprovidername: Param0, puindex: *mut u32) -> u32 {
4313 #[cfg(windows)]
4314 {
4315 #[link(name = "windows")]
4316 extern "system" {
4317 fn PxeProviderQueryIndex(pszprovidername: super::super::Foundation::PWSTR, puindex: *mut u32) -> u32;
4318 }
4319 ::std::mem::transmute(PxeProviderQueryIndex(pszprovidername.into_param().abi(), ::std::mem::transmute(puindex)))
4320 }
4321 #[cfg(not(windows))]
4322 unimplemented!("Unsupported target OS");
4323 }
4324 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
4325 #[inline]
PxeProviderRegister<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(pszprovidername: Param0, pszmodulepath: Param1, index: u32, biscritical: Param3, phproviderkey: *mut super::Registry::HKEY) -> u324326 pub unsafe fn PxeProviderRegister<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(pszprovidername: Param0, pszmodulepath: Param1, index: u32, biscritical: Param3, phproviderkey: *mut super::Registry::HKEY) -> u32 {
4327 #[cfg(windows)]
4328 {
4329 #[link(name = "windows")]
4330 extern "system" {
4331 fn PxeProviderRegister(pszprovidername: super::super::Foundation::PWSTR, pszmodulepath: super::super::Foundation::PWSTR, index: u32, biscritical: super::super::Foundation::BOOL, phproviderkey: *mut super::Registry::HKEY) -> u32;
4332 }
4333 ::std::mem::transmute(PxeProviderRegister(pszprovidername.into_param().abi(), pszmodulepath.into_param().abi(), ::std::mem::transmute(index), biscritical.into_param().abi(), ::std::mem::transmute(phproviderkey)))
4334 }
4335 #[cfg(not(windows))]
4336 unimplemented!("Unsupported target OS");
4337 }
4338 #[cfg(feature = "Win32_Foundation")]
4339 #[inline]
PxeProviderSetAttribute<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, attribute: u32, pparameterbuffer: *const ::std::ffi::c_void, uparamlen: u32) -> u324340 pub unsafe fn PxeProviderSetAttribute<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, attribute: u32, pparameterbuffer: *const ::std::ffi::c_void, uparamlen: u32) -> u32 {
4341 #[cfg(windows)]
4342 {
4343 #[link(name = "windows")]
4344 extern "system" {
4345 fn PxeProviderSetAttribute(hprovider: super::super::Foundation::HANDLE, attribute: u32, pparameterbuffer: *const ::std::ffi::c_void, uparamlen: u32) -> u32;
4346 }
4347 ::std::mem::transmute(PxeProviderSetAttribute(hprovider.into_param().abi(), ::std::mem::transmute(attribute), ::std::mem::transmute(pparameterbuffer), ::std::mem::transmute(uparamlen)))
4348 }
4349 #[cfg(not(windows))]
4350 unimplemented!("Unsupported target OS");
4351 }
4352 #[cfg(feature = "Win32_Foundation")]
4353 #[inline]
PxeProviderUnRegister<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(pszprovidername: Param0) -> u324354 pub unsafe fn PxeProviderUnRegister<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(pszprovidername: Param0) -> u32 {
4355 #[cfg(windows)]
4356 {
4357 #[link(name = "windows")]
4358 extern "system" {
4359 fn PxeProviderUnRegister(pszprovidername: super::super::Foundation::PWSTR) -> u32;
4360 }
4361 ::std::mem::transmute(PxeProviderUnRegister(pszprovidername.into_param().abi()))
4362 }
4363 #[cfg(not(windows))]
4364 unimplemented!("Unsupported target OS");
4365 }
4366 #[cfg(feature = "Win32_Foundation")]
4367 #[inline]
PxeRegisterCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, callbacktype: u32, pcallbackfunction: *const ::std::ffi::c_void, pcontext: *const ::std::ffi::c_void) -> u324368 pub unsafe fn PxeRegisterCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, callbacktype: u32, pcallbackfunction: *const ::std::ffi::c_void, pcontext: *const ::std::ffi::c_void) -> u32 {
4369 #[cfg(windows)]
4370 {
4371 #[link(name = "windows")]
4372 extern "system" {
4373 fn PxeRegisterCallback(hprovider: super::super::Foundation::HANDLE, callbacktype: u32, pcallbackfunction: *const ::std::ffi::c_void, pcontext: *const ::std::ffi::c_void) -> u32;
4374 }
4375 ::std::mem::transmute(PxeRegisterCallback(hprovider.into_param().abi(), ::std::mem::transmute(callbacktype), ::std::mem::transmute(pcallbackfunction), ::std::mem::transmute(pcontext)))
4376 }
4377 #[cfg(not(windows))]
4378 unimplemented!("Unsupported target OS");
4379 }
4380 #[cfg(feature = "Win32_Foundation")]
4381 #[inline]
PxeSendReply<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hclientrequest: Param0, ppacket: *const ::std::ffi::c_void, upacketlen: u32, paddress: *const PXE_ADDRESS) -> u324382 pub unsafe fn PxeSendReply<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hclientrequest: Param0, ppacket: *const ::std::ffi::c_void, upacketlen: u32, paddress: *const PXE_ADDRESS) -> u32 {
4383 #[cfg(windows)]
4384 {
4385 #[link(name = "windows")]
4386 extern "system" {
4387 fn PxeSendReply(hclientrequest: super::super::Foundation::HANDLE, ppacket: *const ::std::ffi::c_void, upacketlen: u32, paddress: *const PXE_ADDRESS) -> u32;
4388 }
4389 ::std::mem::transmute(PxeSendReply(hclientrequest.into_param().abi(), ::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), ::std::mem::transmute(paddress)))
4390 }
4391 #[cfg(not(windows))]
4392 unimplemented!("Unsupported target OS");
4393 }
4394 #[cfg(feature = "Win32_Foundation")]
4395 #[inline]
PxeTrace<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hprovider: Param0, severity: u32, pszformat: Param2) -> u324396 pub unsafe fn PxeTrace<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hprovider: Param0, severity: u32, pszformat: Param2) -> u32 {
4397 #[cfg(windows)]
4398 {
4399 #[link(name = "windows")]
4400 extern "system" {
4401 fn PxeTrace(hprovider: super::super::Foundation::HANDLE, severity: u32, pszformat: super::super::Foundation::PWSTR) -> u32;
4402 }
4403 ::std::mem::transmute(PxeTrace(hprovider.into_param().abi(), ::std::mem::transmute(severity), pszformat.into_param().abi()))
4404 }
4405 #[cfg(not(windows))]
4406 unimplemented!("Unsupported target OS");
4407 }
4408 #[cfg(feature = "Win32_Foundation")]
4409 #[inline]
PxeTraceV<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hprovider: Param0, severity: u32, pszformat: Param2, params: *const i8) -> u324410 pub unsafe fn PxeTraceV<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hprovider: Param0, severity: u32, pszformat: Param2, params: *const i8) -> u32 {
4411 #[cfg(windows)]
4412 {
4413 #[link(name = "windows")]
4414 extern "system" {
4415 fn PxeTraceV(hprovider: super::super::Foundation::HANDLE, severity: u32, pszformat: super::super::Foundation::PWSTR, params: *const i8) -> u32;
4416 }
4417 ::std::mem::transmute(PxeTraceV(hprovider.into_param().abi(), ::std::mem::transmute(severity), pszformat.into_param().abi(), ::std::mem::transmute(params)))
4418 }
4419 #[cfg(not(windows))]
4420 unimplemented!("Unsupported target OS");
4421 }
4422 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4423 #[repr(transparent)]
4424 pub struct TRANSPORTCLIENT_CALLBACK_ID(pub i32);
4425 pub const WDS_TRANSPORTCLIENT_SESSION_START: TRANSPORTCLIENT_CALLBACK_ID = TRANSPORTCLIENT_CALLBACK_ID(0i32);
4426 pub const WDS_TRANSPORTCLIENT_RECEIVE_CONTENTS: TRANSPORTCLIENT_CALLBACK_ID = TRANSPORTCLIENT_CALLBACK_ID(1i32);
4427 pub const WDS_TRANSPORTCLIENT_SESSION_COMPLETE: TRANSPORTCLIENT_CALLBACK_ID = TRANSPORTCLIENT_CALLBACK_ID(2i32);
4428 pub const WDS_TRANSPORTCLIENT_RECEIVE_METADATA: TRANSPORTCLIENT_CALLBACK_ID = TRANSPORTCLIENT_CALLBACK_ID(3i32);
4429 pub const WDS_TRANSPORTCLIENT_SESSION_STARTEX: TRANSPORTCLIENT_CALLBACK_ID = TRANSPORTCLIENT_CALLBACK_ID(4i32);
4430 pub const WDS_TRANSPORTCLIENT_SESSION_NEGOTIATE: TRANSPORTCLIENT_CALLBACK_ID = TRANSPORTCLIENT_CALLBACK_ID(5i32);
4431 pub const WDS_TRANSPORTCLIENT_MAX_CALLBACKS: TRANSPORTCLIENT_CALLBACK_ID = TRANSPORTCLIENT_CALLBACK_ID(6i32);
4432 impl ::std::convert::From<i32> for TRANSPORTCLIENT_CALLBACK_ID {
from(value: i32) -> Self4433 fn from(value: i32) -> Self {
4434 Self(value)
4435 }
4436 }
4437 unsafe impl ::windows::runtime::Abi for TRANSPORTCLIENT_CALLBACK_ID {
4438 type Abi = Self;
4439 type DefaultType = Self;
4440 }
4441 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
4442 #[repr(C)]
4443 pub struct TRANSPORTCLIENT_SESSION_INFO {
4444 pub ulStructureLength: u32,
4445 pub ullFileSize: u64,
4446 pub ulBlockSize: u32,
4447 }
4448 impl TRANSPORTCLIENT_SESSION_INFO {}
4449 impl ::std::default::Default for TRANSPORTCLIENT_SESSION_INFO {
default() -> Self4450 fn default() -> Self {
4451 unsafe { ::std::mem::zeroed() }
4452 }
4453 }
4454 impl ::std::fmt::Debug for TRANSPORTCLIENT_SESSION_INFO {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result4455 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4456 fmt.debug_struct("TRANSPORTCLIENT_SESSION_INFO").field("ulStructureLength", &self.ulStructureLength).field("ullFileSize", &self.ullFileSize).field("ulBlockSize", &self.ulBlockSize).finish()
4457 }
4458 }
4459 impl ::std::cmp::PartialEq for TRANSPORTCLIENT_SESSION_INFO {
eq(&self, other: &Self) -> bool4460 fn eq(&self, other: &Self) -> bool {
4461 self.ulStructureLength == other.ulStructureLength && self.ullFileSize == other.ullFileSize && self.ulBlockSize == other.ulBlockSize
4462 }
4463 }
4464 impl ::std::cmp::Eq for TRANSPORTCLIENT_SESSION_INFO {}
4465 unsafe impl ::windows::runtime::Abi for TRANSPORTCLIENT_SESSION_INFO {
4466 type Abi = Self;
4467 type DefaultType = Self;
4468 }
4469 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4470 #[repr(transparent)]
4471 pub struct TRANSPORTPROVIDER_CALLBACK_ID(pub i32);
4472 pub const WDS_TRANSPORTPROVIDER_CREATE_INSTANCE: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(0i32);
4473 pub const WDS_TRANSPORTPROVIDER_COMPARE_CONTENT: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(1i32);
4474 pub const WDS_TRANSPORTPROVIDER_OPEN_CONTENT: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(2i32);
4475 pub const WDS_TRANSPORTPROVIDER_USER_ACCESS_CHECK: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(3i32);
4476 pub const WDS_TRANSPORTPROVIDER_GET_CONTENT_SIZE: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(4i32);
4477 pub const WDS_TRANSPORTPROVIDER_READ_CONTENT: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(5i32);
4478 pub const WDS_TRANSPORTPROVIDER_CLOSE_CONTENT: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(6i32);
4479 pub const WDS_TRANSPORTPROVIDER_CLOSE_INSTANCE: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(7i32);
4480 pub const WDS_TRANSPORTPROVIDER_SHUTDOWN: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(8i32);
4481 pub const WDS_TRANSPORTPROVIDER_DUMP_STATE: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(9i32);
4482 pub const WDS_TRANSPORTPROVIDER_REFRESH_SETTINGS: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(10i32);
4483 pub const WDS_TRANSPORTPROVIDER_GET_CONTENT_METADATA: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(11i32);
4484 pub const WDS_TRANSPORTPROVIDER_MAX_CALLBACKS: TRANSPORTPROVIDER_CALLBACK_ID = TRANSPORTPROVIDER_CALLBACK_ID(12i32);
4485 impl ::std::convert::From<i32> for TRANSPORTPROVIDER_CALLBACK_ID {
from(value: i32) -> Self4486 fn from(value: i32) -> Self {
4487 Self(value)
4488 }
4489 }
4490 unsafe impl ::windows::runtime::Abi for TRANSPORTPROVIDER_CALLBACK_ID {
4491 type Abi = Self;
4492 type DefaultType = Self;
4493 }
4494 pub const TRANSPORTPROVIDER_CURRENT_VERSION: u32 = 1u32;
4495 pub const WDSBP_OPTVAL_ACTION_ABORT: u32 = 5u32;
4496 pub const WDSBP_OPTVAL_ACTION_APPROVAL: u32 = 1u32;
4497 pub const WDSBP_OPTVAL_ACTION_REFERRAL: u32 = 3u32;
4498 pub const WDSBP_OPTVAL_NBP_VER_7: u32 = 1792u32;
4499 pub const WDSBP_OPTVAL_NBP_VER_8: u32 = 2048u32;
4500 pub const WDSBP_OPTVAL_PXE_PROMPT_NOPROMPT: u32 = 2u32;
4501 pub const WDSBP_OPTVAL_PXE_PROMPT_OPTIN: u32 = 1u32;
4502 pub const WDSBP_OPTVAL_PXE_PROMPT_OPTOUT: u32 = 3u32;
4503 pub const WDSBP_OPT_TYPE_BYTE: u32 = 1u32;
4504 pub const WDSBP_OPT_TYPE_IP4: u32 = 6u32;
4505 pub const WDSBP_OPT_TYPE_IP6: u32 = 7u32;
4506 pub const WDSBP_OPT_TYPE_NONE: u32 = 0u32;
4507 pub const WDSBP_OPT_TYPE_STR: u32 = 5u32;
4508 pub const WDSBP_OPT_TYPE_ULONG: u32 = 3u32;
4509 pub const WDSBP_OPT_TYPE_USHORT: u32 = 2u32;
4510 pub const WDSBP_OPT_TYPE_WSTR: u32 = 4u32;
4511 pub const WDSBP_PK_TYPE_BCD: u32 = 4u32;
4512 pub const WDSBP_PK_TYPE_DHCP: u32 = 1u32;
4513 pub const WDSBP_PK_TYPE_DHCPV6: u32 = 8u32;
4514 pub const WDSBP_PK_TYPE_WDSNBP: u32 = 2u32;
4515 pub const WDSMCCLIENT_CATEGORY: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(2i32 as _);
4516 pub const WDSMCSERVER_CATEGORY: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(1i32 as _);
4517 pub const WDSMCS_E_CLIENT_DOESNOT_SUPPORT_SECURITY_MODE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801648i32 as _);
4518 pub const WDSMCS_E_CLIENT_NOT_FOUND: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801660i32 as _);
4519 pub const WDSMCS_E_CONTENT_NOT_FOUND: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801661i32 as _);
4520 pub const WDSMCS_E_CONTENT_PROVIDER_NOT_FOUND: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801658i32 as _);
4521 pub const WDSMCS_E_INCOMPATIBLE_VERSION: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801662i32 as _);
4522 pub const WDSMCS_E_NAMESPACE_ALREADY_EXISTS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801657i32 as _);
4523 pub const WDSMCS_E_NAMESPACE_ALREADY_STARTED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801655i32 as _);
4524 pub const WDSMCS_E_NAMESPACE_NOT_FOUND: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801659i32 as _);
4525 pub const WDSMCS_E_NAMESPACE_SHUTDOWN_IN_PROGRESS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801656i32 as _);
4526 pub const WDSMCS_E_NS_START_FAILED_NO_CLIENTS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801654i32 as _);
4527 pub const WDSMCS_E_PACKET_HAS_SECURITY: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801650i32 as _);
4528 pub const WDSMCS_E_PACKET_NOT_CHECKSUMED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801649i32 as _);
4529 pub const WDSMCS_E_PACKET_NOT_HASHED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801652i32 as _);
4530 pub const WDSMCS_E_PACKET_NOT_SIGNED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801651i32 as _);
4531 pub const WDSMCS_E_REQCALLBACKS_NOT_REG: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801663i32 as _);
4532 pub const WDSMCS_E_SESSION_SHUTDOWN_IN_PROGRESS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801664i32 as _);
4533 pub const WDSMCS_E_START_TIME_IN_PAST: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054801653i32 as _);
4534 pub const WDSTPC_E_ALREADY_COMPLETED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735615i32 as _);
4535 pub const WDSTPC_E_ALREADY_IN_LOWEST_SESSION: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735606i32 as _);
4536 pub const WDSTPC_E_ALREADY_IN_PROGRESS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735614i32 as _);
4537 pub const WDSTPC_E_CALLBACKS_NOT_REG: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735616i32 as _);
4538 pub const WDSTPC_E_CLIENT_DEMOTE_NOT_SUPPORTED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735605i32 as _);
4539 pub const WDSTPC_E_KICKED_FAIL: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735609i32 as _);
4540 pub const WDSTPC_E_KICKED_FALLBACK: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735610i32 as _);
4541 pub const WDSTPC_E_KICKED_POLICY_NOT_MET: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735611i32 as _);
4542 pub const WDSTPC_E_KICKED_UNKNOWN: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735608i32 as _);
4543 pub const WDSTPC_E_MULTISTREAM_NOT_ENABLED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735607i32 as _);
4544 pub const WDSTPC_E_NOT_INITIALIZED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735612i32 as _);
4545 pub const WDSTPC_E_NO_IP4_INTERFACE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735604i32 as _);
4546 pub const WDSTPC_E_UNKNOWN_ERROR: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735613i32 as _);
4547 pub const WDSTPTC_E_WIM_APPLY_REQUIRES_REFERENCE_IMAGE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1054735603i32 as _);
4548 pub const WDSTPTMGMT_CATEGORY: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(1i32 as _);
4549 pub const WDSTPTMGMT_E_CANNOT_REFRESH_DIRTY_OBJECT: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915761i32 as _);
4550 pub const WDSTPTMGMT_E_CANNOT_REINITIALIZE_OBJECT: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915767i32 as _);
4551 pub const WDSTPTMGMT_E_CONTENT_PROVIDER_ALREADY_REGISTERED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915773i32 as _);
4552 pub const WDSTPTMGMT_E_CONTENT_PROVIDER_NOT_REGISTERED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915772i32 as _);
4553 pub const WDSTPTMGMT_E_INVALID_AUTO_DISCONNECT_THRESHOLD: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915748i32 as _);
4554 pub const WDSTPTMGMT_E_INVALID_CLASS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915774i32 as _);
4555 pub const WDSTPTMGMT_E_INVALID_CONTENT_PROVIDER_NAME: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915771i32 as _);
4556 pub const WDSTPTMGMT_E_INVALID_DIAGNOSTICS_COMPONENTS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915762i32 as _);
4557 pub const WDSTPTMGMT_E_INVALID_IPV4_MULTICAST_ADDRESS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915753i32 as _);
4558 pub const WDSTPTMGMT_E_INVALID_IPV6_MULTICAST_ADDRESS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915752i32 as _);
4559 pub const WDSTPTMGMT_E_INVALID_IPV6_MULTICAST_ADDRESS_SOURCE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915750i32 as _);
4560 pub const WDSTPTMGMT_E_INVALID_IP_ADDRESS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915754i32 as _);
4561 pub const WDSTPTMGMT_E_INVALID_MULTISTREAM_STREAM_COUNT: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915749i32 as _);
4562 pub const WDSTPTMGMT_E_INVALID_NAMESPACE_DATA: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915765i32 as _);
4563 pub const WDSTPTMGMT_E_INVALID_NAMESPACE_NAME: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915766i32 as _);
4564 pub const WDSTPTMGMT_E_INVALID_NAMESPACE_START_PARAMETERS: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915758i32 as _);
4565 pub const WDSTPTMGMT_E_INVALID_NAMESPACE_START_TIME: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915763i32 as _);
4566 pub const WDSTPTMGMT_E_INVALID_OPERATION: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915775i32 as _);
4567 pub const WDSTPTMGMT_E_INVALID_PROPERTY: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915776i32 as _);
4568 pub const WDSTPTMGMT_E_INVALID_SERVICE_IP_ADDRESS_RANGE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915760i32 as _);
4569 pub const WDSTPTMGMT_E_INVALID_SERVICE_PORT_RANGE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915759i32 as _);
4570 pub const WDSTPTMGMT_E_INVALID_SLOW_CLIENT_HANDLING_TYPE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915746i32 as _);
4571 pub const WDSTPTMGMT_E_INVALID_TFTP_MAX_BLOCKSIZE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915741i32 as _);
4572 pub const WDSTPTMGMT_E_IPV6_NOT_SUPPORTED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915751i32 as _);
4573 pub const WDSTPTMGMT_E_MULTICAST_SESSION_POLICY_NOT_SUPPORTED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915747i32 as _);
4574 pub const WDSTPTMGMT_E_NAMESPACE_ALREADY_REGISTERED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915769i32 as _);
4575 pub const WDSTPTMGMT_E_NAMESPACE_NOT_ON_SERVER: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915756i32 as _);
4576 pub const WDSTPTMGMT_E_NAMESPACE_NOT_REGISTERED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915768i32 as _);
4577 pub const WDSTPTMGMT_E_NAMESPACE_READ_ONLY: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915764i32 as _);
4578 pub const WDSTPTMGMT_E_NAMESPACE_REMOVED_FROM_SERVER: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915755i32 as _);
4579 pub const WDSTPTMGMT_E_NETWORK_PROFILES_NOT_SUPPORTED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915745i32 as _);
4580 pub const WDSTPTMGMT_E_TFTP_MAX_BLOCKSIZE_NOT_SUPPORTED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915743i32 as _);
4581 pub const WDSTPTMGMT_E_TFTP_VAR_WINDOW_NOT_SUPPORTED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915742i32 as _);
4582 pub const WDSTPTMGMT_E_TRANSPORT_SERVER_ROLE_NOT_CONFIGURED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915770i32 as _);
4583 pub const WDSTPTMGMT_E_TRANSPORT_SERVER_UNAVAILABLE: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915757i32 as _);
4584 pub const WDSTPTMGMT_E_UDP_PORT_POLICY_NOT_SUPPORTED: ::windows::runtime::HRESULT = ::windows::runtime::HRESULT(-1055915744i32 as _);
4585 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4586 #[repr(transparent)]
4587 pub struct WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS(pub i32);
4588 pub const WdsTptDiagnosticsComponentPxe: WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS = WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS(1i32);
4589 pub const WdsTptDiagnosticsComponentTftp: WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS = WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS(2i32);
4590 pub const WdsTptDiagnosticsComponentImageServer: WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS = WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS(4i32);
4591 pub const WdsTptDiagnosticsComponentMulticast: WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS = WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS(8i32);
4592 impl ::std::convert::From<i32> for WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS {
from(value: i32) -> Self4593 fn from(value: i32) -> Self {
4594 Self(value)
4595 }
4596 }
4597 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS {
4598 type Abi = Self;
4599 type DefaultType = Self;
4600 }
4601 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4602 #[repr(transparent)]
4603 pub struct WDSTRANSPORT_DISCONNECT_TYPE(pub i32);
4604 pub const WdsTptDisconnectUnknown: WDSTRANSPORT_DISCONNECT_TYPE = WDSTRANSPORT_DISCONNECT_TYPE(0i32);
4605 pub const WdsTptDisconnectFallback: WDSTRANSPORT_DISCONNECT_TYPE = WDSTRANSPORT_DISCONNECT_TYPE(1i32);
4606 pub const WdsTptDisconnectAbort: WDSTRANSPORT_DISCONNECT_TYPE = WDSTRANSPORT_DISCONNECT_TYPE(2i32);
4607 impl ::std::convert::From<i32> for WDSTRANSPORT_DISCONNECT_TYPE {
from(value: i32) -> Self4608 fn from(value: i32) -> Self {
4609 Self(value)
4610 }
4611 }
4612 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_DISCONNECT_TYPE {
4613 type Abi = Self;
4614 type DefaultType = Self;
4615 }
4616 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4617 #[repr(transparent)]
4618 pub struct WDSTRANSPORT_FEATURE_FLAGS(pub i32);
4619 pub const WdsTptFeatureAdminPack: WDSTRANSPORT_FEATURE_FLAGS = WDSTRANSPORT_FEATURE_FLAGS(1i32);
4620 pub const WdsTptFeatureTransportServer: WDSTRANSPORT_FEATURE_FLAGS = WDSTRANSPORT_FEATURE_FLAGS(2i32);
4621 pub const WdsTptFeatureDeploymentServer: WDSTRANSPORT_FEATURE_FLAGS = WDSTRANSPORT_FEATURE_FLAGS(4i32);
4622 impl ::std::convert::From<i32> for WDSTRANSPORT_FEATURE_FLAGS {
from(value: i32) -> Self4623 fn from(value: i32) -> Self {
4624 Self(value)
4625 }
4626 }
4627 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_FEATURE_FLAGS {
4628 type Abi = Self;
4629 type DefaultType = Self;
4630 }
4631 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4632 #[repr(transparent)]
4633 pub struct WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE(pub i32);
4634 pub const WdsTptIpAddressSourceUnknown: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE = WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE(0i32);
4635 pub const WdsTptIpAddressSourceDhcp: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE = WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE(1i32);
4636 pub const WdsTptIpAddressSourceRange: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE = WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE(2i32);
4637 impl ::std::convert::From<i32> for WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE {
from(value: i32) -> Self4638 fn from(value: i32) -> Self {
4639 Self(value)
4640 }
4641 }
4642 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE {
4643 type Abi = Self;
4644 type DefaultType = Self;
4645 }
4646 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4647 #[repr(transparent)]
4648 pub struct WDSTRANSPORT_IP_ADDRESS_TYPE(pub i32);
4649 pub const WdsTptIpAddressUnknown: WDSTRANSPORT_IP_ADDRESS_TYPE = WDSTRANSPORT_IP_ADDRESS_TYPE(0i32);
4650 pub const WdsTptIpAddressIpv4: WDSTRANSPORT_IP_ADDRESS_TYPE = WDSTRANSPORT_IP_ADDRESS_TYPE(1i32);
4651 pub const WdsTptIpAddressIpv6: WDSTRANSPORT_IP_ADDRESS_TYPE = WDSTRANSPORT_IP_ADDRESS_TYPE(2i32);
4652 impl ::std::convert::From<i32> for WDSTRANSPORT_IP_ADDRESS_TYPE {
from(value: i32) -> Self4653 fn from(value: i32) -> Self {
4654 Self(value)
4655 }
4656 }
4657 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_IP_ADDRESS_TYPE {
4658 type Abi = Self;
4659 type DefaultType = Self;
4660 }
4661 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4662 #[repr(transparent)]
4663 pub struct WDSTRANSPORT_NAMESPACE_TYPE(pub i32);
4664 pub const WdsTptNamespaceTypeUnknown: WDSTRANSPORT_NAMESPACE_TYPE = WDSTRANSPORT_NAMESPACE_TYPE(0i32);
4665 pub const WdsTptNamespaceTypeAutoCast: WDSTRANSPORT_NAMESPACE_TYPE = WDSTRANSPORT_NAMESPACE_TYPE(1i32);
4666 pub const WdsTptNamespaceTypeScheduledCastManualStart: WDSTRANSPORT_NAMESPACE_TYPE = WDSTRANSPORT_NAMESPACE_TYPE(2i32);
4667 pub const WdsTptNamespaceTypeScheduledCastAutoStart: WDSTRANSPORT_NAMESPACE_TYPE = WDSTRANSPORT_NAMESPACE_TYPE(3i32);
4668 impl ::std::convert::From<i32> for WDSTRANSPORT_NAMESPACE_TYPE {
from(value: i32) -> Self4669 fn from(value: i32) -> Self {
4670 Self(value)
4671 }
4672 }
4673 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_NAMESPACE_TYPE {
4674 type Abi = Self;
4675 type DefaultType = Self;
4676 }
4677 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4678 #[repr(transparent)]
4679 pub struct WDSTRANSPORT_NETWORK_PROFILE_TYPE(pub i32);
4680 pub const WdsTptNetworkProfileUnknown: WDSTRANSPORT_NETWORK_PROFILE_TYPE = WDSTRANSPORT_NETWORK_PROFILE_TYPE(0i32);
4681 pub const WdsTptNetworkProfileCustom: WDSTRANSPORT_NETWORK_PROFILE_TYPE = WDSTRANSPORT_NETWORK_PROFILE_TYPE(1i32);
4682 pub const WdsTptNetworkProfile10Mbps: WDSTRANSPORT_NETWORK_PROFILE_TYPE = WDSTRANSPORT_NETWORK_PROFILE_TYPE(2i32);
4683 pub const WdsTptNetworkProfile100Mbps: WDSTRANSPORT_NETWORK_PROFILE_TYPE = WDSTRANSPORT_NETWORK_PROFILE_TYPE(3i32);
4684 pub const WdsTptNetworkProfile1Gbps: WDSTRANSPORT_NETWORK_PROFILE_TYPE = WDSTRANSPORT_NETWORK_PROFILE_TYPE(4i32);
4685 impl ::std::convert::From<i32> for WDSTRANSPORT_NETWORK_PROFILE_TYPE {
from(value: i32) -> Self4686 fn from(value: i32) -> Self {
4687 Self(value)
4688 }
4689 }
4690 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_NETWORK_PROFILE_TYPE {
4691 type Abi = Self;
4692 type DefaultType = Self;
4693 }
4694 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4695 #[repr(transparent)]
4696 pub struct WDSTRANSPORT_PROTOCOL_FLAGS(pub i32);
4697 pub const WdsTptProtocolUnicast: WDSTRANSPORT_PROTOCOL_FLAGS = WDSTRANSPORT_PROTOCOL_FLAGS(1i32);
4698 pub const WdsTptProtocolMulticast: WDSTRANSPORT_PROTOCOL_FLAGS = WDSTRANSPORT_PROTOCOL_FLAGS(2i32);
4699 impl ::std::convert::From<i32> for WDSTRANSPORT_PROTOCOL_FLAGS {
from(value: i32) -> Self4700 fn from(value: i32) -> Self {
4701 Self(value)
4702 }
4703 }
4704 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_PROTOCOL_FLAGS {
4705 type Abi = Self;
4706 type DefaultType = Self;
4707 }
4708 pub const WDSTRANSPORT_RESOURCE_UTILIZATION_UNKNOWN: u32 = 255u32;
4709 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4710 #[repr(transparent)]
4711 pub struct WDSTRANSPORT_SERVICE_NOTIFICATION(pub i32);
4712 pub const WdsTptServiceNotifyUnknown: WDSTRANSPORT_SERVICE_NOTIFICATION = WDSTRANSPORT_SERVICE_NOTIFICATION(0i32);
4713 pub const WdsTptServiceNotifyReadSettings: WDSTRANSPORT_SERVICE_NOTIFICATION = WDSTRANSPORT_SERVICE_NOTIFICATION(1i32);
4714 impl ::std::convert::From<i32> for WDSTRANSPORT_SERVICE_NOTIFICATION {
from(value: i32) -> Self4715 fn from(value: i32) -> Self {
4716 Self(value)
4717 }
4718 }
4719 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_SERVICE_NOTIFICATION {
4720 type Abi = Self;
4721 type DefaultType = Self;
4722 }
4723 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4724 #[repr(transparent)]
4725 pub struct WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE(pub i32);
4726 pub const WdsTptSlowClientHandlingUnknown: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE = WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE(0i32);
4727 pub const WdsTptSlowClientHandlingNone: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE = WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE(1i32);
4728 pub const WdsTptSlowClientHandlingAutoDisconnect: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE = WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE(2i32);
4729 pub const WdsTptSlowClientHandlingMultistream: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE = WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE(3i32);
4730 impl ::std::convert::From<i32> for WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE {
from(value: i32) -> Self4731 fn from(value: i32) -> Self {
4732 Self(value)
4733 }
4734 }
4735 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE {
4736 type Abi = Self;
4737 type DefaultType = Self;
4738 }
4739 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4740 #[repr(transparent)]
4741 pub struct WDSTRANSPORT_TFTP_CAPABILITY(pub i32);
4742 pub const WdsTptTftpCapMaximumBlockSize: WDSTRANSPORT_TFTP_CAPABILITY = WDSTRANSPORT_TFTP_CAPABILITY(1i32);
4743 pub const WdsTptTftpCapVariableWindow: WDSTRANSPORT_TFTP_CAPABILITY = WDSTRANSPORT_TFTP_CAPABILITY(2i32);
4744 impl ::std::convert::From<i32> for WDSTRANSPORT_TFTP_CAPABILITY {
from(value: i32) -> Self4745 fn from(value: i32) -> Self {
4746 Self(value)
4747 }
4748 }
4749 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_TFTP_CAPABILITY {
4750 type Abi = Self;
4751 type DefaultType = Self;
4752 }
4753 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4754 #[repr(transparent)]
4755 pub struct WDSTRANSPORT_UDP_PORT_POLICY(pub i32);
4756 pub const WdsTptUdpPortPolicyDynamic: WDSTRANSPORT_UDP_PORT_POLICY = WDSTRANSPORT_UDP_PORT_POLICY(0i32);
4757 pub const WdsTptUdpPortPolicyFixed: WDSTRANSPORT_UDP_PORT_POLICY = WDSTRANSPORT_UDP_PORT_POLICY(1i32);
4758 impl ::std::convert::From<i32> for WDSTRANSPORT_UDP_PORT_POLICY {
from(value: i32) -> Self4759 fn from(value: i32) -> Self {
4760 Self(value)
4761 }
4762 }
4763 unsafe impl ::windows::runtime::Abi for WDSTRANSPORT_UDP_PORT_POLICY {
4764 type Abi = Self;
4765 type DefaultType = Self;
4766 }
4767 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
4768 #[repr(C)]
4769 #[cfg(feature = "Win32_Foundation")]
4770 pub struct WDS_CLI_CRED {
4771 pub pwszUserName: super::super::Foundation::PWSTR,
4772 pub pwszDomain: super::super::Foundation::PWSTR,
4773 pub pwszPassword: super::super::Foundation::PWSTR,
4774 }
4775 #[cfg(feature = "Win32_Foundation")]
4776 impl WDS_CLI_CRED {}
4777 #[cfg(feature = "Win32_Foundation")]
4778 impl ::std::default::Default for WDS_CLI_CRED {
default() -> Self4779 fn default() -> Self {
4780 unsafe { ::std::mem::zeroed() }
4781 }
4782 }
4783 #[cfg(feature = "Win32_Foundation")]
4784 impl ::std::fmt::Debug for WDS_CLI_CRED {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result4785 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4786 fmt.debug_struct("WDS_CLI_CRED").field("pwszUserName", &self.pwszUserName).field("pwszDomain", &self.pwszDomain).field("pwszPassword", &self.pwszPassword).finish()
4787 }
4788 }
4789 #[cfg(feature = "Win32_Foundation")]
4790 impl ::std::cmp::PartialEq for WDS_CLI_CRED {
eq(&self, other: &Self) -> bool4791 fn eq(&self, other: &Self) -> bool {
4792 self.pwszUserName == other.pwszUserName && self.pwszDomain == other.pwszDomain && self.pwszPassword == other.pwszPassword
4793 }
4794 }
4795 #[cfg(feature = "Win32_Foundation")]
4796 impl ::std::cmp::Eq for WDS_CLI_CRED {}
4797 #[cfg(feature = "Win32_Foundation")]
4798 unsafe impl ::windows::runtime::Abi for WDS_CLI_CRED {
4799 type Abi = Self;
4800 type DefaultType = Self;
4801 }
4802 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4803 #[repr(transparent)]
4804 pub struct WDS_CLI_FIRMWARE_TYPE(pub i32);
4805 pub const WDS_CLI_FIRMWARE_UNKNOWN: WDS_CLI_FIRMWARE_TYPE = WDS_CLI_FIRMWARE_TYPE(0i32);
4806 pub const WDS_CLI_FIRMWARE_BIOS: WDS_CLI_FIRMWARE_TYPE = WDS_CLI_FIRMWARE_TYPE(1i32);
4807 pub const WDS_CLI_FIRMWARE_EFI: WDS_CLI_FIRMWARE_TYPE = WDS_CLI_FIRMWARE_TYPE(2i32);
4808 impl ::std::convert::From<i32> for WDS_CLI_FIRMWARE_TYPE {
from(value: i32) -> Self4809 fn from(value: i32) -> Self {
4810 Self(value)
4811 }
4812 }
4813 unsafe impl ::windows::runtime::Abi for WDS_CLI_FIRMWARE_TYPE {
4814 type Abi = Self;
4815 type DefaultType = Self;
4816 }
4817 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4818 #[repr(transparent)]
4819 pub struct WDS_CLI_IMAGE_PARAM_TYPE(pub i32);
4820 pub const WDS_CLI_IMAGE_PARAM_UNKNOWN: WDS_CLI_IMAGE_PARAM_TYPE = WDS_CLI_IMAGE_PARAM_TYPE(0i32);
4821 pub const WDS_CLI_IMAGE_PARAM_SPARSE_FILE: WDS_CLI_IMAGE_PARAM_TYPE = WDS_CLI_IMAGE_PARAM_TYPE(1i32);
4822 pub const WDS_CLI_IMAGE_PARAM_SUPPORTED_FIRMWARES: WDS_CLI_IMAGE_PARAM_TYPE = WDS_CLI_IMAGE_PARAM_TYPE(2i32);
4823 impl ::std::convert::From<i32> for WDS_CLI_IMAGE_PARAM_TYPE {
from(value: i32) -> Self4824 fn from(value: i32) -> Self {
4825 Self(value)
4826 }
4827 }
4828 unsafe impl ::windows::runtime::Abi for WDS_CLI_IMAGE_PARAM_TYPE {
4829 type Abi = Self;
4830 type DefaultType = Self;
4831 }
4832 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4833 #[repr(transparent)]
4834 pub struct WDS_CLI_IMAGE_TYPE(pub i32);
4835 pub const WDS_CLI_IMAGE_TYPE_UNKNOWN: WDS_CLI_IMAGE_TYPE = WDS_CLI_IMAGE_TYPE(0i32);
4836 pub const WDS_CLI_IMAGE_TYPE_WIM: WDS_CLI_IMAGE_TYPE = WDS_CLI_IMAGE_TYPE(1i32);
4837 pub const WDS_CLI_IMAGE_TYPE_VHD: WDS_CLI_IMAGE_TYPE = WDS_CLI_IMAGE_TYPE(2i32);
4838 pub const WDS_CLI_IMAGE_TYPE_VHDX: WDS_CLI_IMAGE_TYPE = WDS_CLI_IMAGE_TYPE(3i32);
4839 impl ::std::convert::From<i32> for WDS_CLI_IMAGE_TYPE {
from(value: i32) -> Self4840 fn from(value: i32) -> Self {
4841 Self(value)
4842 }
4843 }
4844 unsafe impl ::windows::runtime::Abi for WDS_CLI_IMAGE_TYPE {
4845 type Abi = Self;
4846 type DefaultType = Self;
4847 }
4848 pub const WDS_CLI_NO_SPARSE_FILE: u32 = 2u32;
4849 pub const WDS_CLI_TRANSFER_ASYNCHRONOUS: u32 = 1u32;
4850 pub const WDS_LOG_LEVEL_DISABLED: i32 = 0i32;
4851 pub const WDS_LOG_LEVEL_ERROR: i32 = 1i32;
4852 pub const WDS_LOG_LEVEL_INFO: i32 = 3i32;
4853 pub const WDS_LOG_LEVEL_WARNING: i32 = 2i32;
4854 pub const WDS_LOG_TYPE_CLIENT_APPLY_FINISHED: i32 = 6i32;
4855 pub const WDS_LOG_TYPE_CLIENT_APPLY_FINISHED_2: i32 = 16i32;
4856 pub const WDS_LOG_TYPE_CLIENT_APPLY_STARTED: i32 = 5i32;
4857 pub const WDS_LOG_TYPE_CLIENT_APPLY_STARTED_2: i32 = 15i32;
4858 pub const WDS_LOG_TYPE_CLIENT_DOMAINJOINERROR: i32 = 12i32;
4859 pub const WDS_LOG_TYPE_CLIENT_DOMAINJOINERROR_2: i32 = 17i32;
4860 pub const WDS_LOG_TYPE_CLIENT_DRIVER_PACKAGE_NOT_ACCESSIBLE: i32 = 18i32;
4861 pub const WDS_LOG_TYPE_CLIENT_ERROR: i32 = 1i32;
4862 pub const WDS_LOG_TYPE_CLIENT_FINISHED: i32 = 3i32;
4863 pub const WDS_LOG_TYPE_CLIENT_GENERIC_MESSAGE: i32 = 7i32;
4864 pub const WDS_LOG_TYPE_CLIENT_IMAGE_SELECTED: i32 = 4i32;
4865 pub const WDS_LOG_TYPE_CLIENT_IMAGE_SELECTED2: i32 = 22i32;
4866 pub const WDS_LOG_TYPE_CLIENT_IMAGE_SELECTED3: i32 = 23i32;
4867 pub const WDS_LOG_TYPE_CLIENT_MAX_CODE: i32 = 24i32;
4868 pub const WDS_LOG_TYPE_CLIENT_OFFLINE_DRIVER_INJECTION_END: i32 = 20i32;
4869 pub const WDS_LOG_TYPE_CLIENT_OFFLINE_DRIVER_INJECTION_FAILURE: i32 = 21i32;
4870 pub const WDS_LOG_TYPE_CLIENT_OFFLINE_DRIVER_INJECTION_START: i32 = 19i32;
4871 pub const WDS_LOG_TYPE_CLIENT_POST_ACTIONS_END: i32 = 14i32;
4872 pub const WDS_LOG_TYPE_CLIENT_POST_ACTIONS_START: i32 = 13i32;
4873 pub const WDS_LOG_TYPE_CLIENT_STARTED: i32 = 2i32;
4874 pub const WDS_LOG_TYPE_CLIENT_TRANSFER_DOWNGRADE: i32 = 11i32;
4875 pub const WDS_LOG_TYPE_CLIENT_TRANSFER_END: i32 = 10i32;
4876 pub const WDS_LOG_TYPE_CLIENT_TRANSFER_START: i32 = 9i32;
4877 pub const WDS_LOG_TYPE_CLIENT_UNATTEND_MODE: i32 = 8i32;
4878 pub const WDS_MC_TRACE_ERROR: u32 = 524288u32;
4879 pub const WDS_MC_TRACE_FATAL: u32 = 1048576u32;
4880 pub const WDS_MC_TRACE_INFO: u32 = 131072u32;
4881 pub const WDS_MC_TRACE_VERBOSE: u32 = 65536u32;
4882 pub const WDS_MC_TRACE_WARNING: u32 = 262144u32;
4883 #[derive(:: std :: clone :: Clone)]
4884 #[repr(C)]
4885 #[cfg(feature = "Win32_Foundation")]
4886 pub struct WDS_TRANSPORTCLIENT_CALLBACKS {
4887 pub SessionStart: ::std::option::Option<PFN_WdsTransportClientSessionStart>,
4888 pub SessionStartEx: ::std::option::Option<PFN_WdsTransportClientSessionStartEx>,
4889 pub ReceiveContents: ::std::option::Option<PFN_WdsTransportClientReceiveContents>,
4890 pub ReceiveMetadata: ::std::option::Option<PFN_WdsTransportClientReceiveMetadata>,
4891 pub SessionComplete: ::std::option::Option<PFN_WdsTransportClientSessionComplete>,
4892 pub SessionNegotiate: ::std::option::Option<PFN_WdsTransportClientSessionNegotiate>,
4893 }
4894 #[cfg(feature = "Win32_Foundation")]
4895 impl WDS_TRANSPORTCLIENT_CALLBACKS {}
4896 #[cfg(feature = "Win32_Foundation")]
4897 impl ::std::default::Default for WDS_TRANSPORTCLIENT_CALLBACKS {
default() -> Self4898 fn default() -> Self {
4899 unsafe { ::std::mem::zeroed() }
4900 }
4901 }
4902 #[cfg(feature = "Win32_Foundation")]
4903 impl ::std::fmt::Debug for WDS_TRANSPORTCLIENT_CALLBACKS {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result4904 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4905 fmt.debug_struct("WDS_TRANSPORTCLIENT_CALLBACKS").finish()
4906 }
4907 }
4908 #[cfg(feature = "Win32_Foundation")]
4909 impl ::std::cmp::PartialEq for WDS_TRANSPORTCLIENT_CALLBACKS {
eq(&self, other: &Self) -> bool4910 fn eq(&self, other: &Self) -> bool {
4911 self.SessionStart.map(|f| f as usize) == other.SessionStart.map(|f| f as usize)
4912 && self.SessionStartEx.map(|f| f as usize) == other.SessionStartEx.map(|f| f as usize)
4913 && self.ReceiveContents.map(|f| f as usize) == other.ReceiveContents.map(|f| f as usize)
4914 && self.ReceiveMetadata.map(|f| f as usize) == other.ReceiveMetadata.map(|f| f as usize)
4915 && self.SessionComplete.map(|f| f as usize) == other.SessionComplete.map(|f| f as usize)
4916 && self.SessionNegotiate.map(|f| f as usize) == other.SessionNegotiate.map(|f| f as usize)
4917 }
4918 }
4919 #[cfg(feature = "Win32_Foundation")]
4920 impl ::std::cmp::Eq for WDS_TRANSPORTCLIENT_CALLBACKS {}
4921 #[cfg(feature = "Win32_Foundation")]
4922 unsafe impl ::windows::runtime::Abi for WDS_TRANSPORTCLIENT_CALLBACKS {
4923 type Abi = ::std::mem::ManuallyDrop<Self>;
4924 type DefaultType = Self;
4925 }
4926 pub const WDS_TRANSPORTCLIENT_CURRENT_API_VERSION: u32 = 1u32;
4927 pub const WDS_TRANSPORTCLIENT_NO_CACHE: u32 = 0u32;
4928 pub const WDS_TRANSPORTCLIENT_PROTOCOL_MULTICAST: u32 = 1u32;
4929 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
4930 #[repr(C)]
4931 #[cfg(feature = "Win32_Foundation")]
4932 pub struct WDS_TRANSPORTCLIENT_REQUEST {
4933 pub ulLength: u32,
4934 pub ulApiVersion: u32,
4935 pub ulAuthLevel: WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL,
4936 pub pwszServer: super::super::Foundation::PWSTR,
4937 pub pwszNamespace: super::super::Foundation::PWSTR,
4938 pub pwszObjectName: super::super::Foundation::PWSTR,
4939 pub ulCacheSize: u32,
4940 pub ulProtocol: u32,
4941 pub pvProtocolData: *mut ::std::ffi::c_void,
4942 pub ulProtocolDataLength: u32,
4943 }
4944 #[cfg(feature = "Win32_Foundation")]
4945 impl WDS_TRANSPORTCLIENT_REQUEST {}
4946 #[cfg(feature = "Win32_Foundation")]
4947 impl ::std::default::Default for WDS_TRANSPORTCLIENT_REQUEST {
default() -> Self4948 fn default() -> Self {
4949 unsafe { ::std::mem::zeroed() }
4950 }
4951 }
4952 #[cfg(feature = "Win32_Foundation")]
4953 impl ::std::fmt::Debug for WDS_TRANSPORTCLIENT_REQUEST {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result4954 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4955 fmt.debug_struct("WDS_TRANSPORTCLIENT_REQUEST")
4956 .field("ulLength", &self.ulLength)
4957 .field("ulApiVersion", &self.ulApiVersion)
4958 .field("ulAuthLevel", &self.ulAuthLevel)
4959 .field("pwszServer", &self.pwszServer)
4960 .field("pwszNamespace", &self.pwszNamespace)
4961 .field("pwszObjectName", &self.pwszObjectName)
4962 .field("ulCacheSize", &self.ulCacheSize)
4963 .field("ulProtocol", &self.ulProtocol)
4964 .field("pvProtocolData", &self.pvProtocolData)
4965 .field("ulProtocolDataLength", &self.ulProtocolDataLength)
4966 .finish()
4967 }
4968 }
4969 #[cfg(feature = "Win32_Foundation")]
4970 impl ::std::cmp::PartialEq for WDS_TRANSPORTCLIENT_REQUEST {
eq(&self, other: &Self) -> bool4971 fn eq(&self, other: &Self) -> bool {
4972 self.ulLength == other.ulLength && self.ulApiVersion == other.ulApiVersion && self.ulAuthLevel == other.ulAuthLevel && self.pwszServer == other.pwszServer && self.pwszNamespace == other.pwszNamespace && self.pwszObjectName == other.pwszObjectName && self.ulCacheSize == other.ulCacheSize && self.ulProtocol == other.ulProtocol && self.pvProtocolData == other.pvProtocolData && self.ulProtocolDataLength == other.ulProtocolDataLength
4973 }
4974 }
4975 #[cfg(feature = "Win32_Foundation")]
4976 impl ::std::cmp::Eq for WDS_TRANSPORTCLIENT_REQUEST {}
4977 #[cfg(feature = "Win32_Foundation")]
4978 unsafe impl ::windows::runtime::Abi for WDS_TRANSPORTCLIENT_REQUEST {
4979 type Abi = Self;
4980 type DefaultType = Self;
4981 }
4982 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
4983 #[repr(transparent)]
4984 pub struct WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL(pub u32);
4985 pub const WDS_TRANSPORTCLIENT_AUTH: WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL = WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL(1u32);
4986 pub const WDS_TRANSPORTCLIENT_NO_AUTH: WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL = WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL(2u32);
4987 impl ::std::convert::From<u32> for WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL {
from(value: u32) -> Self4988 fn from(value: u32) -> Self {
4989 Self(value)
4990 }
4991 }
4992 unsafe impl ::windows::runtime::Abi for WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL {
4993 type Abi = Self;
4994 type DefaultType = Self;
4995 }
4996 impl ::std::ops::BitOr for WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL {
4997 type Output = Self;
bitor(self, rhs: Self) -> Self4998 fn bitor(self, rhs: Self) -> Self {
4999 Self(self.0 | rhs.0)
5000 }
5001 }
5002 impl ::std::ops::BitAnd for WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL {
5003 type Output = Self;
bitand(self, rhs: Self) -> Self5004 fn bitand(self, rhs: Self) -> Self {
5005 Self(self.0 & rhs.0)
5006 }
5007 }
5008 impl ::std::ops::BitOrAssign for WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL {
bitor_assign(&mut self, rhs: Self)5009 fn bitor_assign(&mut self, rhs: Self) {
5010 self.0.bitor_assign(rhs.0)
5011 }
5012 }
5013 impl ::std::ops::BitAndAssign for WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL {
bitand_assign(&mut self, rhs: Self)5014 fn bitand_assign(&mut self, rhs: Self) {
5015 self.0.bitand_assign(rhs.0)
5016 }
5017 }
5018 impl ::std::ops::Not for WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL {
5019 type Output = Self;
not(self) -> Self5020 fn not(self) -> Self {
5021 Self(self.0.not())
5022 }
5023 }
5024 pub const WDS_TRANSPORTCLIENT_STATUS_FAILURE: u32 = 3u32;
5025 pub const WDS_TRANSPORTCLIENT_STATUS_IN_PROGRESS: u32 = 1u32;
5026 pub const WDS_TRANSPORTCLIENT_STATUS_SUCCESS: u32 = 2u32;
5027 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
5028 #[repr(C)]
5029 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
5030 pub struct WDS_TRANSPORTPROVIDER_INIT_PARAMS {
5031 pub ulLength: u32,
5032 pub ulMcServerVersion: u32,
5033 pub hRegistryKey: super::Registry::HKEY,
5034 pub hProvider: super::super::Foundation::HANDLE,
5035 }
5036 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
5037 impl WDS_TRANSPORTPROVIDER_INIT_PARAMS {}
5038 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
5039 impl ::std::default::Default for WDS_TRANSPORTPROVIDER_INIT_PARAMS {
default() -> Self5040 fn default() -> Self {
5041 unsafe { ::std::mem::zeroed() }
5042 }
5043 }
5044 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
5045 impl ::std::fmt::Debug for WDS_TRANSPORTPROVIDER_INIT_PARAMS {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result5046 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
5047 fmt.debug_struct("WDS_TRANSPORTPROVIDER_INIT_PARAMS").field("ulLength", &self.ulLength).field("ulMcServerVersion", &self.ulMcServerVersion).field("hRegistryKey", &self.hRegistryKey).field("hProvider", &self.hProvider).finish()
5048 }
5049 }
5050 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
5051 impl ::std::cmp::PartialEq for WDS_TRANSPORTPROVIDER_INIT_PARAMS {
eq(&self, other: &Self) -> bool5052 fn eq(&self, other: &Self) -> bool {
5053 self.ulLength == other.ulLength && self.ulMcServerVersion == other.ulMcServerVersion && self.hRegistryKey == other.hRegistryKey && self.hProvider == other.hProvider
5054 }
5055 }
5056 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
5057 impl ::std::cmp::Eq for WDS_TRANSPORTPROVIDER_INIT_PARAMS {}
5058 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
5059 unsafe impl ::windows::runtime::Abi for WDS_TRANSPORTPROVIDER_INIT_PARAMS {
5060 type Abi = Self;
5061 type DefaultType = Self;
5062 }
5063 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
5064 #[repr(C)]
5065 pub struct WDS_TRANSPORTPROVIDER_SETTINGS {
5066 pub ulLength: u32,
5067 pub ulProviderVersion: u32,
5068 }
5069 impl WDS_TRANSPORTPROVIDER_SETTINGS {}
5070 impl ::std::default::Default for WDS_TRANSPORTPROVIDER_SETTINGS {
default() -> Self5071 fn default() -> Self {
5072 unsafe { ::std::mem::zeroed() }
5073 }
5074 }
5075 impl ::std::fmt::Debug for WDS_TRANSPORTPROVIDER_SETTINGS {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result5076 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
5077 fmt.debug_struct("WDS_TRANSPORTPROVIDER_SETTINGS").field("ulLength", &self.ulLength).field("ulProviderVersion", &self.ulProviderVersion).finish()
5078 }
5079 }
5080 impl ::std::cmp::PartialEq for WDS_TRANSPORTPROVIDER_SETTINGS {
eq(&self, other: &Self) -> bool5081 fn eq(&self, other: &Self) -> bool {
5082 self.ulLength == other.ulLength && self.ulProviderVersion == other.ulProviderVersion
5083 }
5084 }
5085 impl ::std::cmp::Eq for WDS_TRANSPORTPROVIDER_SETTINGS {}
5086 unsafe impl ::windows::runtime::Abi for WDS_TRANSPORTPROVIDER_SETTINGS {
5087 type Abi = Self;
5088 type DefaultType = Self;
5089 }
5090 #[cfg(feature = "Win32_Foundation")]
5091 #[inline]
WdsBpAddOption<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0, uoption: u32, uvaluelen: u32, pvalue: *const ::std::ffi::c_void) -> u325092 pub unsafe fn WdsBpAddOption<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0, uoption: u32, uvaluelen: u32, pvalue: *const ::std::ffi::c_void) -> u32 {
5093 #[cfg(windows)]
5094 {
5095 #[link(name = "windows")]
5096 extern "system" {
5097 fn WdsBpAddOption(hhandle: super::super::Foundation::HANDLE, uoption: u32, uvaluelen: u32, pvalue: *const ::std::ffi::c_void) -> u32;
5098 }
5099 ::std::mem::transmute(WdsBpAddOption(hhandle.into_param().abi(), ::std::mem::transmute(uoption), ::std::mem::transmute(uvaluelen), ::std::mem::transmute(pvalue)))
5100 }
5101 #[cfg(not(windows))]
5102 unimplemented!("Unsupported target OS");
5103 }
5104 #[cfg(feature = "Win32_Foundation")]
5105 #[inline]
WdsBpCloseHandle<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0) -> u325106 pub unsafe fn WdsBpCloseHandle<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0) -> u32 {
5107 #[cfg(windows)]
5108 {
5109 #[link(name = "windows")]
5110 extern "system" {
5111 fn WdsBpCloseHandle(hhandle: super::super::Foundation::HANDLE) -> u32;
5112 }
5113 ::std::mem::transmute(WdsBpCloseHandle(hhandle.into_param().abi()))
5114 }
5115 #[cfg(not(windows))]
5116 unimplemented!("Unsupported target OS");
5117 }
5118 #[cfg(feature = "Win32_Foundation")]
5119 #[inline]
WdsBpGetOptionBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0, ubufferlen: u32, pbuffer: *mut ::std::ffi::c_void, pubytes: *mut u32) -> u325120 pub unsafe fn WdsBpGetOptionBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0, ubufferlen: u32, pbuffer: *mut ::std::ffi::c_void, pubytes: *mut u32) -> u32 {
5121 #[cfg(windows)]
5122 {
5123 #[link(name = "windows")]
5124 extern "system" {
5125 fn WdsBpGetOptionBuffer(hhandle: super::super::Foundation::HANDLE, ubufferlen: u32, pbuffer: *mut ::std::ffi::c_void, pubytes: *mut u32) -> u32;
5126 }
5127 ::std::mem::transmute(WdsBpGetOptionBuffer(hhandle.into_param().abi(), ::std::mem::transmute(ubufferlen), ::std::mem::transmute(pbuffer), ::std::mem::transmute(pubytes)))
5128 }
5129 #[cfg(not(windows))]
5130 unimplemented!("Unsupported target OS");
5131 }
5132 #[cfg(feature = "Win32_Foundation")]
5133 #[inline]
WdsBpInitialize(bpackettype: u8, phhandle: *mut super::super::Foundation::HANDLE) -> u325134 pub unsafe fn WdsBpInitialize(bpackettype: u8, phhandle: *mut super::super::Foundation::HANDLE) -> u32 {
5135 #[cfg(windows)]
5136 {
5137 #[link(name = "windows")]
5138 extern "system" {
5139 fn WdsBpInitialize(bpackettype: u8, phhandle: *mut super::super::Foundation::HANDLE) -> u32;
5140 }
5141 ::std::mem::transmute(WdsBpInitialize(::std::mem::transmute(bpackettype), ::std::mem::transmute(phhandle)))
5142 }
5143 #[cfg(not(windows))]
5144 unimplemented!("Unsupported target OS");
5145 }
5146 #[cfg(feature = "Win32_Foundation")]
5147 #[inline]
WdsBpParseInitialize(ppacket: *const ::std::ffi::c_void, upacketlen: u32, pbpackettype: *mut u8, phhandle: *mut super::super::Foundation::HANDLE) -> u325148 pub unsafe fn WdsBpParseInitialize(ppacket: *const ::std::ffi::c_void, upacketlen: u32, pbpackettype: *mut u8, phhandle: *mut super::super::Foundation::HANDLE) -> u32 {
5149 #[cfg(windows)]
5150 {
5151 #[link(name = "windows")]
5152 extern "system" {
5153 fn WdsBpParseInitialize(ppacket: *const ::std::ffi::c_void, upacketlen: u32, pbpackettype: *mut u8, phhandle: *mut super::super::Foundation::HANDLE) -> u32;
5154 }
5155 ::std::mem::transmute(WdsBpParseInitialize(::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), ::std::mem::transmute(pbpackettype), ::std::mem::transmute(phhandle)))
5156 }
5157 #[cfg(not(windows))]
5158 unimplemented!("Unsupported target OS");
5159 }
5160 #[cfg(feature = "Win32_Foundation")]
5161 #[inline]
WdsBpParseInitializev6(ppacket: *const ::std::ffi::c_void, upacketlen: u32, pbpackettype: *mut u8, phhandle: *mut super::super::Foundation::HANDLE) -> u325162 pub unsafe fn WdsBpParseInitializev6(ppacket: *const ::std::ffi::c_void, upacketlen: u32, pbpackettype: *mut u8, phhandle: *mut super::super::Foundation::HANDLE) -> u32 {
5163 #[cfg(windows)]
5164 {
5165 #[link(name = "windows")]
5166 extern "system" {
5167 fn WdsBpParseInitializev6(ppacket: *const ::std::ffi::c_void, upacketlen: u32, pbpackettype: *mut u8, phhandle: *mut super::super::Foundation::HANDLE) -> u32;
5168 }
5169 ::std::mem::transmute(WdsBpParseInitializev6(::std::mem::transmute(ppacket), ::std::mem::transmute(upacketlen), ::std::mem::transmute(pbpackettype), ::std::mem::transmute(phhandle)))
5170 }
5171 #[cfg(not(windows))]
5172 unimplemented!("Unsupported target OS");
5173 }
5174 #[cfg(feature = "Win32_Foundation")]
5175 #[inline]
WdsBpQueryOption<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0, uoption: u32, uvaluelen: u32, pvalue: *mut ::std::ffi::c_void, pubytes: *mut u32) -> u325176 pub unsafe fn WdsBpQueryOption<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0, uoption: u32, uvaluelen: u32, pvalue: *mut ::std::ffi::c_void, pubytes: *mut u32) -> u32 {
5177 #[cfg(windows)]
5178 {
5179 #[link(name = "windows")]
5180 extern "system" {
5181 fn WdsBpQueryOption(hhandle: super::super::Foundation::HANDLE, uoption: u32, uvaluelen: u32, pvalue: *mut ::std::ffi::c_void, pubytes: *mut u32) -> u32;
5182 }
5183 ::std::mem::transmute(WdsBpQueryOption(hhandle.into_param().abi(), ::std::mem::transmute(uoption), ::std::mem::transmute(uvaluelen), ::std::mem::transmute(pvalue), ::std::mem::transmute(pubytes)))
5184 }
5185 #[cfg(not(windows))]
5186 unimplemented!("Unsupported target OS");
5187 }
5188 #[cfg(feature = "Win32_Foundation")]
5189 #[inline]
WdsCliAuthorizeSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsession: Param0, pcred: *const WDS_CLI_CRED) -> ::windows::runtime::Result<()>5190 pub unsafe fn WdsCliAuthorizeSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsession: Param0, pcred: *const WDS_CLI_CRED) -> ::windows::runtime::Result<()> {
5191 #[cfg(windows)]
5192 {
5193 #[link(name = "windows")]
5194 extern "system" {
5195 fn WdsCliAuthorizeSession(hsession: super::super::Foundation::HANDLE, pcred: *const WDS_CLI_CRED) -> ::windows::runtime::HRESULT;
5196 }
5197 WdsCliAuthorizeSession(hsession.into_param().abi(), ::std::mem::transmute(pcred)).ok()
5198 }
5199 #[cfg(not(windows))]
5200 unimplemented!("Unsupported target OS");
5201 }
5202 #[cfg(feature = "Win32_Foundation")]
5203 #[inline]
WdsCliCancelTransfer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(htransfer: Param0) -> ::windows::runtime::Result<()>5204 pub unsafe fn WdsCliCancelTransfer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(htransfer: Param0) -> ::windows::runtime::Result<()> {
5205 #[cfg(windows)]
5206 {
5207 #[link(name = "windows")]
5208 extern "system" {
5209 fn WdsCliCancelTransfer(htransfer: super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5210 }
5211 WdsCliCancelTransfer(htransfer.into_param().abi()).ok()
5212 }
5213 #[cfg(not(windows))]
5214 unimplemented!("Unsupported target OS");
5215 }
5216 #[cfg(feature = "Win32_Foundation")]
5217 #[inline]
WdsCliClose<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(handle: Param0) -> ::windows::runtime::Result<()>5218 pub unsafe fn WdsCliClose<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(handle: Param0) -> ::windows::runtime::Result<()> {
5219 #[cfg(windows)]
5220 {
5221 #[link(name = "windows")]
5222 extern "system" {
5223 fn WdsCliClose(handle: super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5224 }
5225 WdsCliClose(handle.into_param().abi()).ok()
5226 }
5227 #[cfg(not(windows))]
5228 unimplemented!("Unsupported target OS");
5229 }
5230 #[cfg(feature = "Win32_Foundation")]
5231 #[inline]
WdsCliCreateSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(pwszserver: Param0, pcred: *const WDS_CLI_CRED) -> ::windows::runtime::Result<super::super::Foundation::HANDLE>5232 pub unsafe fn WdsCliCreateSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(pwszserver: Param0, pcred: *const WDS_CLI_CRED) -> ::windows::runtime::Result<super::super::Foundation::HANDLE> {
5233 #[cfg(windows)]
5234 {
5235 #[link(name = "windows")]
5236 extern "system" {
5237 fn WdsCliCreateSession(pwszserver: super::super::Foundation::PWSTR, pcred: *const WDS_CLI_CRED, phsession: *mut super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5238 }
5239 let mut result__: <super::super::Foundation::HANDLE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5240 WdsCliCreateSession(pwszserver.into_param().abi(), ::std::mem::transmute(pcred), &mut result__).from_abi::<super::super::Foundation::HANDLE>(result__)
5241 }
5242 #[cfg(not(windows))]
5243 unimplemented!("Unsupported target OS");
5244 }
5245 #[cfg(feature = "Win32_Foundation")]
5246 #[inline]
WdsCliFindFirstImage<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsession: Param0) -> ::windows::runtime::Result<super::super::Foundation::HANDLE>5247 pub unsafe fn WdsCliFindFirstImage<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsession: Param0) -> ::windows::runtime::Result<super::super::Foundation::HANDLE> {
5248 #[cfg(windows)]
5249 {
5250 #[link(name = "windows")]
5251 extern "system" {
5252 fn WdsCliFindFirstImage(hsession: super::super::Foundation::HANDLE, phfindhandle: *mut super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5253 }
5254 let mut result__: <super::super::Foundation::HANDLE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5255 WdsCliFindFirstImage(hsession.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::HANDLE>(result__)
5256 }
5257 #[cfg(not(windows))]
5258 unimplemented!("Unsupported target OS");
5259 }
5260 #[cfg(feature = "Win32_Foundation")]
5261 #[inline]
WdsCliFindNextImage<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(handle: Param0) -> ::windows::runtime::Result<()>5262 pub unsafe fn WdsCliFindNextImage<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(handle: Param0) -> ::windows::runtime::Result<()> {
5263 #[cfg(windows)]
5264 {
5265 #[link(name = "windows")]
5266 extern "system" {
5267 fn WdsCliFindNextImage(handle: super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5268 }
5269 WdsCliFindNextImage(handle.into_param().abi()).ok()
5270 }
5271 #[cfg(not(windows))]
5272 unimplemented!("Unsupported target OS");
5273 }
5274 pub const WdsCliFlagEnumFilterFirmware: i32 = 2i32;
5275 pub const WdsCliFlagEnumFilterVersion: i32 = 1i32;
5276 #[cfg(feature = "Win32_Foundation")]
5277 #[inline]
WdsCliFreeStringArray(ppwszarray: *mut super::super::Foundation::PWSTR, ulcount: u32) -> ::windows::runtime::Result<()>5278 pub unsafe fn WdsCliFreeStringArray(ppwszarray: *mut super::super::Foundation::PWSTR, ulcount: u32) -> ::windows::runtime::Result<()> {
5279 #[cfg(windows)]
5280 {
5281 #[link(name = "windows")]
5282 extern "system" {
5283 fn WdsCliFreeStringArray(ppwszarray: *mut super::super::Foundation::PWSTR, ulcount: u32) -> ::windows::runtime::HRESULT;
5284 }
5285 WdsCliFreeStringArray(::std::mem::transmute(ppwszarray), ::std::mem::transmute(ulcount)).ok()
5286 }
5287 #[cfg(not(windows))]
5288 unimplemented!("Unsupported target OS");
5289 }
5290 #[cfg(feature = "Win32_Foundation")]
5291 #[inline]
WdsCliGetDriverQueryXml<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(pwszwindirpath: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5292 pub unsafe fn WdsCliGetDriverQueryXml<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(pwszwindirpath: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5293 #[cfg(windows)]
5294 {
5295 #[link(name = "windows")]
5296 extern "system" {
5297 fn WdsCliGetDriverQueryXml(pwszwindirpath: super::super::Foundation::PWSTR, ppwszdriverquery: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5298 }
5299 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5300 WdsCliGetDriverQueryXml(pwszwindirpath.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5301 }
5302 #[cfg(not(windows))]
5303 unimplemented!("Unsupported target OS");
5304 }
5305 #[cfg(feature = "Win32_Foundation")]
5306 #[inline]
WdsCliGetEnumerationFlags<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(handle: Param0) -> ::windows::runtime::Result<u32>5307 pub unsafe fn WdsCliGetEnumerationFlags<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(handle: Param0) -> ::windows::runtime::Result<u32> {
5308 #[cfg(windows)]
5309 {
5310 #[link(name = "windows")]
5311 extern "system" {
5312 fn WdsCliGetEnumerationFlags(handle: super::super::Foundation::HANDLE, pdwflags: *mut u32) -> ::windows::runtime::HRESULT;
5313 }
5314 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5315 WdsCliGetEnumerationFlags(handle.into_param().abi(), &mut result__).from_abi::<u32>(result__)
5316 }
5317 #[cfg(not(windows))]
5318 unimplemented!("Unsupported target OS");
5319 }
5320 #[cfg(feature = "Win32_Foundation")]
5321 #[inline]
WdsCliGetImageArchitecture<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<CPU_ARCHITECTURE>5322 pub unsafe fn WdsCliGetImageArchitecture<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<CPU_ARCHITECTURE> {
5323 #[cfg(windows)]
5324 {
5325 #[link(name = "windows")]
5326 extern "system" {
5327 fn WdsCliGetImageArchitecture(hifh: super::super::Foundation::HANDLE, pdwvalue: *mut CPU_ARCHITECTURE) -> ::windows::runtime::HRESULT;
5328 }
5329 let mut result__: <CPU_ARCHITECTURE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5330 WdsCliGetImageArchitecture(hifh.into_param().abi(), &mut result__).from_abi::<CPU_ARCHITECTURE>(result__)
5331 }
5332 #[cfg(not(windows))]
5333 unimplemented!("Unsupported target OS");
5334 }
5335 #[cfg(feature = "Win32_Foundation")]
5336 #[inline]
WdsCliGetImageDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5337 pub unsafe fn WdsCliGetImageDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5338 #[cfg(windows)]
5339 {
5340 #[link(name = "windows")]
5341 extern "system" {
5342 fn WdsCliGetImageDescription(hifh: super::super::Foundation::HANDLE, ppwszvalue: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5343 }
5344 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5345 WdsCliGetImageDescription(hifh.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5346 }
5347 #[cfg(not(windows))]
5348 unimplemented!("Unsupported target OS");
5349 }
5350 #[cfg(feature = "Win32_Foundation")]
5351 #[inline]
WdsCliGetImageFiles<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0, pppwszfiles: *mut *mut super::super::Foundation::PWSTR, pdwcount: *mut u32) -> ::windows::runtime::Result<()>5352 pub unsafe fn WdsCliGetImageFiles<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0, pppwszfiles: *mut *mut super::super::Foundation::PWSTR, pdwcount: *mut u32) -> ::windows::runtime::Result<()> {
5353 #[cfg(windows)]
5354 {
5355 #[link(name = "windows")]
5356 extern "system" {
5357 fn WdsCliGetImageFiles(hifh: super::super::Foundation::HANDLE, pppwszfiles: *mut *mut super::super::Foundation::PWSTR, pdwcount: *mut u32) -> ::windows::runtime::HRESULT;
5358 }
5359 WdsCliGetImageFiles(hifh.into_param().abi(), ::std::mem::transmute(pppwszfiles), ::std::mem::transmute(pdwcount)).ok()
5360 }
5361 #[cfg(not(windows))]
5362 unimplemented!("Unsupported target OS");
5363 }
5364 #[cfg(feature = "Win32_Foundation")]
5365 #[inline]
WdsCliGetImageGroup<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5366 pub unsafe fn WdsCliGetImageGroup<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5367 #[cfg(windows)]
5368 {
5369 #[link(name = "windows")]
5370 extern "system" {
5371 fn WdsCliGetImageGroup(hifh: super::super::Foundation::HANDLE, ppwszvalue: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5372 }
5373 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5374 WdsCliGetImageGroup(hifh.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5375 }
5376 #[cfg(not(windows))]
5377 unimplemented!("Unsupported target OS");
5378 }
5379 #[cfg(feature = "Win32_Foundation")]
5380 #[inline]
WdsCliGetImageHalName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5381 pub unsafe fn WdsCliGetImageHalName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5382 #[cfg(windows)]
5383 {
5384 #[link(name = "windows")]
5385 extern "system" {
5386 fn WdsCliGetImageHalName(hifh: super::super::Foundation::HANDLE, ppwszvalue: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5387 }
5388 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5389 WdsCliGetImageHalName(hifh.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5390 }
5391 #[cfg(not(windows))]
5392 unimplemented!("Unsupported target OS");
5393 }
5394 #[cfg(feature = "Win32_Foundation")]
5395 #[inline]
WdsCliGetImageHandleFromFindHandle<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(findhandle: Param0) -> ::windows::runtime::Result<super::super::Foundation::HANDLE>5396 pub unsafe fn WdsCliGetImageHandleFromFindHandle<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(findhandle: Param0) -> ::windows::runtime::Result<super::super::Foundation::HANDLE> {
5397 #[cfg(windows)]
5398 {
5399 #[link(name = "windows")]
5400 extern "system" {
5401 fn WdsCliGetImageHandleFromFindHandle(findhandle: super::super::Foundation::HANDLE, phimagehandle: *mut super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5402 }
5403 let mut result__: <super::super::Foundation::HANDLE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5404 WdsCliGetImageHandleFromFindHandle(findhandle.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::HANDLE>(result__)
5405 }
5406 #[cfg(not(windows))]
5407 unimplemented!("Unsupported target OS");
5408 }
5409 #[cfg(feature = "Win32_Foundation")]
5410 #[inline]
WdsCliGetImageHandleFromTransferHandle<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(htransfer: Param0) -> ::windows::runtime::Result<super::super::Foundation::HANDLE>5411 pub unsafe fn WdsCliGetImageHandleFromTransferHandle<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(htransfer: Param0) -> ::windows::runtime::Result<super::super::Foundation::HANDLE> {
5412 #[cfg(windows)]
5413 {
5414 #[link(name = "windows")]
5415 extern "system" {
5416 fn WdsCliGetImageHandleFromTransferHandle(htransfer: super::super::Foundation::HANDLE, phimagehandle: *mut super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5417 }
5418 let mut result__: <super::super::Foundation::HANDLE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5419 WdsCliGetImageHandleFromTransferHandle(htransfer.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::HANDLE>(result__)
5420 }
5421 #[cfg(not(windows))]
5422 unimplemented!("Unsupported target OS");
5423 }
5424 #[cfg(feature = "Win32_Foundation")]
5425 #[inline]
WdsCliGetImageIndex<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<u32>5426 pub unsafe fn WdsCliGetImageIndex<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<u32> {
5427 #[cfg(windows)]
5428 {
5429 #[link(name = "windows")]
5430 extern "system" {
5431 fn WdsCliGetImageIndex(hifh: super::super::Foundation::HANDLE, pdwvalue: *mut u32) -> ::windows::runtime::HRESULT;
5432 }
5433 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5434 WdsCliGetImageIndex(hifh.into_param().abi(), &mut result__).from_abi::<u32>(result__)
5435 }
5436 #[cfg(not(windows))]
5437 unimplemented!("Unsupported target OS");
5438 }
5439 #[cfg(feature = "Win32_Foundation")]
5440 #[inline]
WdsCliGetImageLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5441 pub unsafe fn WdsCliGetImageLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5442 #[cfg(windows)]
5443 {
5444 #[link(name = "windows")]
5445 extern "system" {
5446 fn WdsCliGetImageLanguage(hifh: super::super::Foundation::HANDLE, ppwszvalue: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5447 }
5448 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5449 WdsCliGetImageLanguage(hifh.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5450 }
5451 #[cfg(not(windows))]
5452 unimplemented!("Unsupported target OS");
5453 }
5454 #[cfg(feature = "Win32_Foundation")]
5455 #[inline]
WdsCliGetImageLanguages<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0, pppszvalues: *mut *mut *mut i8, pdwnumvalues: *mut u32) -> ::windows::runtime::Result<()>5456 pub unsafe fn WdsCliGetImageLanguages<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0, pppszvalues: *mut *mut *mut i8, pdwnumvalues: *mut u32) -> ::windows::runtime::Result<()> {
5457 #[cfg(windows)]
5458 {
5459 #[link(name = "windows")]
5460 extern "system" {
5461 fn WdsCliGetImageLanguages(hifh: super::super::Foundation::HANDLE, pppszvalues: *mut *mut *mut i8, pdwnumvalues: *mut u32) -> ::windows::runtime::HRESULT;
5462 }
5463 WdsCliGetImageLanguages(hifh.into_param().abi(), ::std::mem::transmute(pppszvalues), ::std::mem::transmute(pdwnumvalues)).ok()
5464 }
5465 #[cfg(not(windows))]
5466 unimplemented!("Unsupported target OS");
5467 }
5468 #[cfg(feature = "Win32_Foundation")]
5469 #[inline]
WdsCliGetImageLastModifiedTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<*mut super::super::Foundation::SYSTEMTIME>5470 pub unsafe fn WdsCliGetImageLastModifiedTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<*mut super::super::Foundation::SYSTEMTIME> {
5471 #[cfg(windows)]
5472 {
5473 #[link(name = "windows")]
5474 extern "system" {
5475 fn WdsCliGetImageLastModifiedTime(hifh: super::super::Foundation::HANDLE, ppsystimevalue: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::HRESULT;
5476 }
5477 let mut result__: <*mut super::super::Foundation::SYSTEMTIME as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5478 WdsCliGetImageLastModifiedTime(hifh.into_param().abi(), &mut result__).from_abi::<*mut super::super::Foundation::SYSTEMTIME>(result__)
5479 }
5480 #[cfg(not(windows))]
5481 unimplemented!("Unsupported target OS");
5482 }
5483 #[cfg(feature = "Win32_Foundation")]
5484 #[inline]
WdsCliGetImageName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5485 pub unsafe fn WdsCliGetImageName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5486 #[cfg(windows)]
5487 {
5488 #[link(name = "windows")]
5489 extern "system" {
5490 fn WdsCliGetImageName(hifh: super::super::Foundation::HANDLE, ppwszvalue: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5491 }
5492 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5493 WdsCliGetImageName(hifh.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5494 }
5495 #[cfg(not(windows))]
5496 unimplemented!("Unsupported target OS");
5497 }
5498 #[cfg(feature = "Win32_Foundation")]
5499 #[inline]
WdsCliGetImageNamespace<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5500 pub unsafe fn WdsCliGetImageNamespace<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5501 #[cfg(windows)]
5502 {
5503 #[link(name = "windows")]
5504 extern "system" {
5505 fn WdsCliGetImageNamespace(hifh: super::super::Foundation::HANDLE, ppwszvalue: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5506 }
5507 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5508 WdsCliGetImageNamespace(hifh.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5509 }
5510 #[cfg(not(windows))]
5511 unimplemented!("Unsupported target OS");
5512 }
5513 #[cfg(feature = "Win32_Foundation")]
5514 #[inline]
WdsCliGetImageParameter<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0, paramtype: WDS_CLI_IMAGE_PARAM_TYPE, presponse: *mut ::std::ffi::c_void, uresponselen: u32) -> ::windows::runtime::Result<()>5515 pub unsafe fn WdsCliGetImageParameter<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0, paramtype: WDS_CLI_IMAGE_PARAM_TYPE, presponse: *mut ::std::ffi::c_void, uresponselen: u32) -> ::windows::runtime::Result<()> {
5516 #[cfg(windows)]
5517 {
5518 #[link(name = "windows")]
5519 extern "system" {
5520 fn WdsCliGetImageParameter(hifh: super::super::Foundation::HANDLE, paramtype: WDS_CLI_IMAGE_PARAM_TYPE, presponse: *mut ::std::ffi::c_void, uresponselen: u32) -> ::windows::runtime::HRESULT;
5521 }
5522 WdsCliGetImageParameter(hifh.into_param().abi(), ::std::mem::transmute(paramtype), ::std::mem::transmute(presponse), ::std::mem::transmute(uresponselen)).ok()
5523 }
5524 #[cfg(not(windows))]
5525 unimplemented!("Unsupported target OS");
5526 }
5527 #[cfg(feature = "Win32_Foundation")]
5528 #[inline]
WdsCliGetImagePath<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5529 pub unsafe fn WdsCliGetImagePath<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5530 #[cfg(windows)]
5531 {
5532 #[link(name = "windows")]
5533 extern "system" {
5534 fn WdsCliGetImagePath(hifh: super::super::Foundation::HANDLE, ppwszvalue: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5535 }
5536 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5537 WdsCliGetImagePath(hifh.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5538 }
5539 #[cfg(not(windows))]
5540 unimplemented!("Unsupported target OS");
5541 }
5542 #[cfg(feature = "Win32_Foundation")]
5543 #[inline]
WdsCliGetImageSize<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<u64>5544 pub unsafe fn WdsCliGetImageSize<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<u64> {
5545 #[cfg(windows)]
5546 {
5547 #[link(name = "windows")]
5548 extern "system" {
5549 fn WdsCliGetImageSize(hifh: super::super::Foundation::HANDLE, pullvalue: *mut u64) -> ::windows::runtime::HRESULT;
5550 }
5551 let mut result__: <u64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5552 WdsCliGetImageSize(hifh.into_param().abi(), &mut result__).from_abi::<u64>(result__)
5553 }
5554 #[cfg(not(windows))]
5555 unimplemented!("Unsupported target OS");
5556 }
5557 #[cfg(feature = "Win32_Foundation")]
5558 #[inline]
WdsCliGetImageType<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<WDS_CLI_IMAGE_TYPE>5559 pub unsafe fn WdsCliGetImageType<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<WDS_CLI_IMAGE_TYPE> {
5560 #[cfg(windows)]
5561 {
5562 #[link(name = "windows")]
5563 extern "system" {
5564 fn WdsCliGetImageType(hifh: super::super::Foundation::HANDLE, pimagetype: *mut WDS_CLI_IMAGE_TYPE) -> ::windows::runtime::HRESULT;
5565 }
5566 let mut result__: <WDS_CLI_IMAGE_TYPE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5567 WdsCliGetImageType(hifh.into_param().abi(), &mut result__).from_abi::<WDS_CLI_IMAGE_TYPE>(result__)
5568 }
5569 #[cfg(not(windows))]
5570 unimplemented!("Unsupported target OS");
5571 }
5572 #[cfg(feature = "Win32_Foundation")]
5573 #[inline]
WdsCliGetImageVersion<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5574 pub unsafe fn WdsCliGetImageVersion<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> {
5575 #[cfg(windows)]
5576 {
5577 #[link(name = "windows")]
5578 extern "system" {
5579 fn WdsCliGetImageVersion(hifh: super::super::Foundation::HANDLE, ppwszvalue: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5580 }
5581 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5582 WdsCliGetImageVersion(hifh.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__)
5583 }
5584 #[cfg(not(windows))]
5585 unimplemented!("Unsupported target OS");
5586 }
5587 #[cfg(feature = "Win32_Foundation")]
5588 #[inline]
WdsCliGetTransferSize<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<u64>5589 pub unsafe fn WdsCliGetTransferSize<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hifh: Param0) -> ::windows::runtime::Result<u64> {
5590 #[cfg(windows)]
5591 {
5592 #[link(name = "windows")]
5593 extern "system" {
5594 fn WdsCliGetTransferSize(hifh: super::super::Foundation::HANDLE, pullvalue: *mut u64) -> ::windows::runtime::HRESULT;
5595 }
5596 let mut result__: <u64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5597 WdsCliGetTransferSize(hifh.into_param().abi(), &mut result__).from_abi::<u64>(result__)
5598 }
5599 #[cfg(not(windows))]
5600 unimplemented!("Unsupported target OS");
5601 }
5602 #[cfg(feature = "Win32_Foundation")]
5603 #[inline]
WdsCliInitializeLog<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hsession: Param0, ulclientarchitecture: CPU_ARCHITECTURE, pwszclientid: Param2, pwszclientaddress: Param3) -> ::windows::runtime::Result<()>5604 pub unsafe fn WdsCliInitializeLog<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hsession: Param0, ulclientarchitecture: CPU_ARCHITECTURE, pwszclientid: Param2, pwszclientaddress: Param3) -> ::windows::runtime::Result<()> {
5605 #[cfg(windows)]
5606 {
5607 #[link(name = "windows")]
5608 extern "system" {
5609 fn WdsCliInitializeLog(hsession: super::super::Foundation::HANDLE, ulclientarchitecture: CPU_ARCHITECTURE, pwszclientid: super::super::Foundation::PWSTR, pwszclientaddress: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5610 }
5611 WdsCliInitializeLog(hsession.into_param().abi(), ::std::mem::transmute(ulclientarchitecture), pwszclientid.into_param().abi(), pwszclientaddress.into_param().abi()).ok()
5612 }
5613 #[cfg(not(windows))]
5614 unimplemented!("Unsupported target OS");
5615 }
5616 #[cfg(feature = "Win32_Foundation")]
5617 #[inline]
WdsCliLog<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsession: Param0, ulloglevel: u32, ulmessagecode: u32) -> ::windows::runtime::Result<()>5618 pub unsafe fn WdsCliLog<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsession: Param0, ulloglevel: u32, ulmessagecode: u32) -> ::windows::runtime::Result<()> {
5619 #[cfg(windows)]
5620 {
5621 #[link(name = "windows")]
5622 extern "system" {
5623 fn WdsCliLog(hsession: super::super::Foundation::HANDLE, ulloglevel: u32, ulmessagecode: u32) -> ::windows::runtime::HRESULT;
5624 }
5625 WdsCliLog(hsession.into_param().abi(), ::std::mem::transmute(ulloglevel), ::std::mem::transmute(ulmessagecode)).ok()
5626 }
5627 #[cfg(not(windows))]
5628 unimplemented!("Unsupported target OS");
5629 }
5630 #[cfg(feature = "Win32_Foundation")]
5631 #[inline]
WdsCliObtainDriverPackages<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(himage: Param0, ppwszservername: *mut super::super::Foundation::PWSTR, pppwszdriverpackages: *mut *mut super::super::Foundation::PWSTR, pulcount: *mut u32) -> ::windows::runtime::Result<()>5632 pub unsafe fn WdsCliObtainDriverPackages<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(himage: Param0, ppwszservername: *mut super::super::Foundation::PWSTR, pppwszdriverpackages: *mut *mut super::super::Foundation::PWSTR, pulcount: *mut u32) -> ::windows::runtime::Result<()> {
5633 #[cfg(windows)]
5634 {
5635 #[link(name = "windows")]
5636 extern "system" {
5637 fn WdsCliObtainDriverPackages(himage: super::super::Foundation::HANDLE, ppwszservername: *mut super::super::Foundation::PWSTR, pppwszdriverpackages: *mut *mut super::super::Foundation::PWSTR, pulcount: *mut u32) -> ::windows::runtime::HRESULT;
5638 }
5639 WdsCliObtainDriverPackages(himage.into_param().abi(), ::std::mem::transmute(ppwszservername), ::std::mem::transmute(pppwszdriverpackages), ::std::mem::transmute(pulcount)).ok()
5640 }
5641 #[cfg(not(windows))]
5642 unimplemented!("Unsupported target OS");
5643 }
5644 #[cfg(feature = "Win32_Foundation")]
5645 #[inline]
WdsCliObtainDriverPackagesEx<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hsession: Param0, pwszmachineinfo: Param1, ppwszservername: *mut super::super::Foundation::PWSTR, pppwszdriverpackages: *mut *mut super::super::Foundation::PWSTR, pulcount: *mut u32) -> ::windows::runtime::Result<()>5646 pub unsafe fn WdsCliObtainDriverPackagesEx<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hsession: Param0, pwszmachineinfo: Param1, ppwszservername: *mut super::super::Foundation::PWSTR, pppwszdriverpackages: *mut *mut super::super::Foundation::PWSTR, pulcount: *mut u32) -> ::windows::runtime::Result<()> {
5647 #[cfg(windows)]
5648 {
5649 #[link(name = "windows")]
5650 extern "system" {
5651 fn WdsCliObtainDriverPackagesEx(hsession: super::super::Foundation::HANDLE, pwszmachineinfo: super::super::Foundation::PWSTR, ppwszservername: *mut super::super::Foundation::PWSTR, pppwszdriverpackages: *mut *mut super::super::Foundation::PWSTR, pulcount: *mut u32) -> ::windows::runtime::HRESULT;
5652 }
5653 WdsCliObtainDriverPackagesEx(hsession.into_param().abi(), pwszmachineinfo.into_param().abi(), ::std::mem::transmute(ppwszservername), ::std::mem::transmute(pppwszdriverpackages), ::std::mem::transmute(pulcount)).ok()
5654 }
5655 #[cfg(not(windows))]
5656 unimplemented!("Unsupported target OS");
5657 }
5658 #[cfg(feature = "Win32_Foundation")]
5659 #[inline]
WdsCliRegisterTrace(pfn: ::std::option::Option<PFN_WdsCliTraceFunction>) -> ::windows::runtime::Result<()>5660 pub unsafe fn WdsCliRegisterTrace(pfn: ::std::option::Option<PFN_WdsCliTraceFunction>) -> ::windows::runtime::Result<()> {
5661 #[cfg(windows)]
5662 {
5663 #[link(name = "windows")]
5664 extern "system" {
5665 fn WdsCliRegisterTrace(pfn: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT;
5666 }
5667 WdsCliRegisterTrace(::std::mem::transmute(pfn)).ok()
5668 }
5669 #[cfg(not(windows))]
5670 unimplemented!("Unsupported target OS");
5671 }
5672 #[inline]
WdsCliSetTransferBufferSize(ulsizeinbytes: u32)5673 pub unsafe fn WdsCliSetTransferBufferSize(ulsizeinbytes: u32) {
5674 #[cfg(windows)]
5675 {
5676 #[link(name = "windows")]
5677 extern "system" {
5678 fn WdsCliSetTransferBufferSize(ulsizeinbytes: u32);
5679 }
5680 ::std::mem::transmute(WdsCliSetTransferBufferSize(::std::mem::transmute(ulsizeinbytes)))
5681 }
5682 #[cfg(not(windows))]
5683 unimplemented!("Unsupported target OS");
5684 }
5685 #[cfg(feature = "Win32_Foundation")]
5686 #[inline]
WdsCliTransferFile<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>( pwszserver: Param0, pwsznamespace: Param1, pwszremotefilepath: Param2, pwszlocalfilepath: Param3, dwflags: u32, dwreserved: u32, pfnwdsclicallback: ::std::option::Option<PFN_WdsCliCallback>, pvuserdata: *const ::std::ffi::c_void, ) -> ::windows::runtime::Result<super::super::Foundation::HANDLE>5687 pub unsafe fn WdsCliTransferFile<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(
5688 pwszserver: Param0,
5689 pwsznamespace: Param1,
5690 pwszremotefilepath: Param2,
5691 pwszlocalfilepath: Param3,
5692 dwflags: u32,
5693 dwreserved: u32,
5694 pfnwdsclicallback: ::std::option::Option<PFN_WdsCliCallback>,
5695 pvuserdata: *const ::std::ffi::c_void,
5696 ) -> ::windows::runtime::Result<super::super::Foundation::HANDLE> {
5697 #[cfg(windows)]
5698 {
5699 #[link(name = "windows")]
5700 extern "system" {
5701 fn WdsCliTransferFile(pwszserver: super::super::Foundation::PWSTR, pwsznamespace: super::super::Foundation::PWSTR, pwszremotefilepath: super::super::Foundation::PWSTR, pwszlocalfilepath: super::super::Foundation::PWSTR, dwflags: u32, dwreserved: u32, pfnwdsclicallback: ::windows::runtime::RawPtr, pvuserdata: *const ::std::ffi::c_void, phtransfer: *mut super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5702 }
5703 let mut result__: <super::super::Foundation::HANDLE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5704 WdsCliTransferFile(pwszserver.into_param().abi(), pwsznamespace.into_param().abi(), pwszremotefilepath.into_param().abi(), pwszlocalfilepath.into_param().abi(), ::std::mem::transmute(dwflags), ::std::mem::transmute(dwreserved), ::std::mem::transmute(pfnwdsclicallback), ::std::mem::transmute(pvuserdata), &mut result__).from_abi::<super::super::Foundation::HANDLE>(result__)
5705 }
5706 #[cfg(not(windows))]
5707 unimplemented!("Unsupported target OS");
5708 }
5709 #[cfg(feature = "Win32_Foundation")]
5710 #[inline]
WdsCliTransferImage<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(himage: Param0, pwszlocalpath: Param1, dwflags: u32, dwreserved: u32, pfnwdsclicallback: ::std::option::Option<PFN_WdsCliCallback>, pvuserdata: *const ::std::ffi::c_void) -> ::windows::runtime::Result<super::super::Foundation::HANDLE>5711 pub unsafe fn WdsCliTransferImage<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(himage: Param0, pwszlocalpath: Param1, dwflags: u32, dwreserved: u32, pfnwdsclicallback: ::std::option::Option<PFN_WdsCliCallback>, pvuserdata: *const ::std::ffi::c_void) -> ::windows::runtime::Result<super::super::Foundation::HANDLE> {
5712 #[cfg(windows)]
5713 {
5714 #[link(name = "windows")]
5715 extern "system" {
5716 fn WdsCliTransferImage(himage: super::super::Foundation::HANDLE, pwszlocalpath: super::super::Foundation::PWSTR, dwflags: u32, dwreserved: u32, pfnwdsclicallback: ::windows::runtime::RawPtr, pvuserdata: *const ::std::ffi::c_void, phtransfer: *mut super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5717 }
5718 let mut result__: <super::super::Foundation::HANDLE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed();
5719 WdsCliTransferImage(himage.into_param().abi(), pwszlocalpath.into_param().abi(), ::std::mem::transmute(dwflags), ::std::mem::transmute(dwreserved), ::std::mem::transmute(pfnwdsclicallback), ::std::mem::transmute(pvuserdata), &mut result__).from_abi::<super::super::Foundation::HANDLE>(result__)
5720 }
5721 #[cfg(not(windows))]
5722 unimplemented!("Unsupported target OS");
5723 }
5724 #[cfg(feature = "Win32_Foundation")]
5725 #[inline]
WdsCliWaitForTransfer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(htransfer: Param0) -> ::windows::runtime::Result<()>5726 pub unsafe fn WdsCliWaitForTransfer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(htransfer: Param0) -> ::windows::runtime::Result<()> {
5727 #[cfg(windows)]
5728 {
5729 #[link(name = "windows")]
5730 extern "system" {
5731 fn WdsCliWaitForTransfer(htransfer: super::super::Foundation::HANDLE) -> ::windows::runtime::HRESULT;
5732 }
5733 WdsCliWaitForTransfer(htransfer.into_param().abi()).ok()
5734 }
5735 #[cfg(not(windows))]
5736 unimplemented!("Unsupported target OS");
5737 }
5738 pub const WdsTransportCacheable: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1884883734, 61766, 18109, [189, 157, 74, 170, 144, 8, 75, 245]);
5739 pub const WdsTransportClient: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1725089257, 4086, 18924, [151, 51, 218, 251, 30, 1, 223, 28]);
5740 #[inline]
WdsTransportClientAddRefBuffer(pvbuffer: *const ::std::ffi::c_void) -> u325741 pub unsafe fn WdsTransportClientAddRefBuffer(pvbuffer: *const ::std::ffi::c_void) -> u32 {
5742 #[cfg(windows)]
5743 {
5744 #[link(name = "windows")]
5745 extern "system" {
5746 fn WdsTransportClientAddRefBuffer(pvbuffer: *const ::std::ffi::c_void) -> u32;
5747 }
5748 ::std::mem::transmute(WdsTransportClientAddRefBuffer(::std::mem::transmute(pvbuffer)))
5749 }
5750 #[cfg(not(windows))]
5751 unimplemented!("Unsupported target OS");
5752 }
5753 #[cfg(feature = "Win32_Foundation")]
5754 #[inline]
WdsTransportClientCancelSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0) -> u325755 pub unsafe fn WdsTransportClientCancelSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0) -> u32 {
5756 #[cfg(windows)]
5757 {
5758 #[link(name = "windows")]
5759 extern "system" {
5760 fn WdsTransportClientCancelSession(hsessionkey: super::super::Foundation::HANDLE) -> u32;
5761 }
5762 ::std::mem::transmute(WdsTransportClientCancelSession(hsessionkey.into_param().abi()))
5763 }
5764 #[cfg(not(windows))]
5765 unimplemented!("Unsupported target OS");
5766 }
5767 #[cfg(feature = "Win32_Foundation")]
5768 #[inline]
WdsTransportClientCancelSessionEx<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, dwerrorcode: u32) -> u325769 pub unsafe fn WdsTransportClientCancelSessionEx<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, dwerrorcode: u32) -> u32 {
5770 #[cfg(windows)]
5771 {
5772 #[link(name = "windows")]
5773 extern "system" {
5774 fn WdsTransportClientCancelSessionEx(hsessionkey: super::super::Foundation::HANDLE, dwerrorcode: u32) -> u32;
5775 }
5776 ::std::mem::transmute(WdsTransportClientCancelSessionEx(hsessionkey.into_param().abi(), ::std::mem::transmute(dwerrorcode)))
5777 }
5778 #[cfg(not(windows))]
5779 unimplemented!("Unsupported target OS");
5780 }
5781 #[cfg(feature = "Win32_Foundation")]
5782 #[inline]
WdsTransportClientCloseSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0) -> u325783 pub unsafe fn WdsTransportClientCloseSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0) -> u32 {
5784 #[cfg(windows)]
5785 {
5786 #[link(name = "windows")]
5787 extern "system" {
5788 fn WdsTransportClientCloseSession(hsessionkey: super::super::Foundation::HANDLE) -> u32;
5789 }
5790 ::std::mem::transmute(WdsTransportClientCloseSession(hsessionkey.into_param().abi()))
5791 }
5792 #[cfg(not(windows))]
5793 unimplemented!("Unsupported target OS");
5794 }
5795 #[cfg(feature = "Win32_Foundation")]
5796 #[inline]
WdsTransportClientCompleteReceive<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, ulsize: u32, pulloffset: *const u64) -> u325797 pub unsafe fn WdsTransportClientCompleteReceive<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, ulsize: u32, pulloffset: *const u64) -> u32 {
5798 #[cfg(windows)]
5799 {
5800 #[link(name = "windows")]
5801 extern "system" {
5802 fn WdsTransportClientCompleteReceive(hsessionkey: super::super::Foundation::HANDLE, ulsize: u32, pulloffset: *const u64) -> u32;
5803 }
5804 ::std::mem::transmute(WdsTransportClientCompleteReceive(hsessionkey.into_param().abi(), ::std::mem::transmute(ulsize), ::std::mem::transmute(pulloffset)))
5805 }
5806 #[cfg(not(windows))]
5807 unimplemented!("Unsupported target OS");
5808 }
5809 #[inline]
WdsTransportClientInitialize() -> u325810 pub unsafe fn WdsTransportClientInitialize() -> u32 {
5811 #[cfg(windows)]
5812 {
5813 #[link(name = "windows")]
5814 extern "system" {
5815 fn WdsTransportClientInitialize() -> u32;
5816 }
5817 ::std::mem::transmute(WdsTransportClientInitialize())
5818 }
5819 #[cfg(not(windows))]
5820 unimplemented!("Unsupported target OS");
5821 }
5822 #[cfg(feature = "Win32_Foundation")]
5823 #[inline]
WdsTransportClientInitializeSession(psessionrequest: *const WDS_TRANSPORTCLIENT_REQUEST, pcallerdata: *const ::std::ffi::c_void, hsessionkey: *mut super::super::Foundation::HANDLE) -> u325824 pub unsafe fn WdsTransportClientInitializeSession(psessionrequest: *const WDS_TRANSPORTCLIENT_REQUEST, pcallerdata: *const ::std::ffi::c_void, hsessionkey: *mut super::super::Foundation::HANDLE) -> u32 {
5825 #[cfg(windows)]
5826 {
5827 #[link(name = "windows")]
5828 extern "system" {
5829 fn WdsTransportClientInitializeSession(psessionrequest: *const WDS_TRANSPORTCLIENT_REQUEST, pcallerdata: *const ::std::ffi::c_void, hsessionkey: *mut super::super::Foundation::HANDLE) -> u32;
5830 }
5831 ::std::mem::transmute(WdsTransportClientInitializeSession(::std::mem::transmute(psessionrequest), ::std::mem::transmute(pcallerdata), ::std::mem::transmute(hsessionkey)))
5832 }
5833 #[cfg(not(windows))]
5834 unimplemented!("Unsupported target OS");
5835 }
5836 #[cfg(feature = "Win32_Foundation")]
5837 #[inline]
WdsTransportClientQueryStatus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, pustatus: *mut u32, puerrorcode: *mut u32) -> u325838 pub unsafe fn WdsTransportClientQueryStatus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, pustatus: *mut u32, puerrorcode: *mut u32) -> u32 {
5839 #[cfg(windows)]
5840 {
5841 #[link(name = "windows")]
5842 extern "system" {
5843 fn WdsTransportClientQueryStatus(hsessionkey: super::super::Foundation::HANDLE, pustatus: *mut u32, puerrorcode: *mut u32) -> u32;
5844 }
5845 ::std::mem::transmute(WdsTransportClientQueryStatus(hsessionkey.into_param().abi(), ::std::mem::transmute(pustatus), ::std::mem::transmute(puerrorcode)))
5846 }
5847 #[cfg(not(windows))]
5848 unimplemented!("Unsupported target OS");
5849 }
5850 #[cfg(feature = "Win32_Foundation")]
5851 #[inline]
WdsTransportClientRegisterCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, callbackid: TRANSPORTCLIENT_CALLBACK_ID, pfncallback: *const ::std::ffi::c_void) -> u325852 pub unsafe fn WdsTransportClientRegisterCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, callbackid: TRANSPORTCLIENT_CALLBACK_ID, pfncallback: *const ::std::ffi::c_void) -> u32 {
5853 #[cfg(windows)]
5854 {
5855 #[link(name = "windows")]
5856 extern "system" {
5857 fn WdsTransportClientRegisterCallback(hsessionkey: super::super::Foundation::HANDLE, callbackid: TRANSPORTCLIENT_CALLBACK_ID, pfncallback: *const ::std::ffi::c_void) -> u32;
5858 }
5859 ::std::mem::transmute(WdsTransportClientRegisterCallback(hsessionkey.into_param().abi(), ::std::mem::transmute(callbackid), ::std::mem::transmute(pfncallback)))
5860 }
5861 #[cfg(not(windows))]
5862 unimplemented!("Unsupported target OS");
5863 }
5864 #[inline]
WdsTransportClientReleaseBuffer(pvbuffer: *const ::std::ffi::c_void) -> u325865 pub unsafe fn WdsTransportClientReleaseBuffer(pvbuffer: *const ::std::ffi::c_void) -> u32 {
5866 #[cfg(windows)]
5867 {
5868 #[link(name = "windows")]
5869 extern "system" {
5870 fn WdsTransportClientReleaseBuffer(pvbuffer: *const ::std::ffi::c_void) -> u32;
5871 }
5872 ::std::mem::transmute(WdsTransportClientReleaseBuffer(::std::mem::transmute(pvbuffer)))
5873 }
5874 #[cfg(not(windows))]
5875 unimplemented!("Unsupported target OS");
5876 }
5877 #[inline]
WdsTransportClientShutdown() -> u325878 pub unsafe fn WdsTransportClientShutdown() -> u32 {
5879 #[cfg(windows)]
5880 {
5881 #[link(name = "windows")]
5882 extern "system" {
5883 fn WdsTransportClientShutdown() -> u32;
5884 }
5885 ::std::mem::transmute(WdsTransportClientShutdown())
5886 }
5887 #[cfg(not(windows))]
5888 unimplemented!("Unsupported target OS");
5889 }
5890 #[cfg(feature = "Win32_Foundation")]
5891 #[inline]
WdsTransportClientStartSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0) -> u325892 pub unsafe fn WdsTransportClientStartSession<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0) -> u32 {
5893 #[cfg(windows)]
5894 {
5895 #[link(name = "windows")]
5896 extern "system" {
5897 fn WdsTransportClientStartSession(hsessionkey: super::super::Foundation::HANDLE) -> u32;
5898 }
5899 ::std::mem::transmute(WdsTransportClientStartSession(hsessionkey.into_param().abi()))
5900 }
5901 #[cfg(not(windows))]
5902 unimplemented!("Unsupported target OS");
5903 }
5904 #[cfg(feature = "Win32_Foundation")]
5905 #[inline]
WdsTransportClientWaitForCompletion<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, utimeout: u32) -> u325906 pub unsafe fn WdsTransportClientWaitForCompletion<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hsessionkey: Param0, utimeout: u32) -> u32 {
5907 #[cfg(windows)]
5908 {
5909 #[link(name = "windows")]
5910 extern "system" {
5911 fn WdsTransportClientWaitForCompletion(hsessionkey: super::super::Foundation::HANDLE, utimeout: u32) -> u32;
5912 }
5913 ::std::mem::transmute(WdsTransportClientWaitForCompletion(hsessionkey.into_param().abi(), ::std::mem::transmute(utimeout)))
5914 }
5915 #[cfg(not(windows))]
5916 unimplemented!("Unsupported target OS");
5917 }
5918 pub const WdsTransportCollection: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3354495753, 14622, 17262, [177, 11, 195, 239, 70, 242, 195, 79]);
5919 pub const WdsTransportConfigurationManager: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2269378164, 36940, 18378, [133, 18, 53, 254, 152, 246, 176, 172]);
5920 pub const WdsTransportContent: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(176758759, 19007, 19557, [182, 242, 20, 103, 97, 150, 121, 234]);
5921 pub const WdsTransportContentProvider: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3770577951, 23157, 20153, [138, 45, 94, 24, 155, 69, 243, 39]);
5922 pub const WdsTransportDiagnosticsPolicy: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3946001377, 42925, 18165, [128, 214, 107, 116, 2, 4, 229, 9]);
5923 pub const WdsTransportManager: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4061471734, 33660, 19032, [175, 153, 138, 126, 39, 248, 255, 89]);
5924 pub const WdsTransportMulticastSessionPolicy: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1013695476, 25624, 18218, [182, 241, 82, 212, 87, 25, 84, 55]);
5925 pub const WdsTransportNamespace: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3627571048, 1842, 20161, [149, 234, 22, 218, 88, 25, 8, 161]);
5926 pub const WdsTransportNamespaceAutoCast: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2962355624, 27289, 18317, [178, 59, 9, 232, 254, 224, 69, 116]);
5927 pub const WdsTransportNamespaceManager: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4035763043, 34270, 18984, [161, 169, 92, 163, 231, 239, 218, 115]);
5928 pub const WdsTransportNamespaceScheduledCast: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3134986391, 28709, 17643, [145, 8, 251, 97, 196, 5, 87, 146]);
5929 pub const WdsTransportNamespaceScheduledCastAutoStart: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2702209106, 4652, 19329, [155, 124, 56, 110, 104, 85, 56, 63]);
5930 pub const WdsTransportNamespaceScheduledCastManualStart: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3554779818, 51884, 17934, [185, 138, 71, 249, 243, 24, 161, 250]);
5931 pub const WdsTransportServer: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3927553603, 19167, 17427, [148, 44, 20, 243, 121, 17, 135, 96]);
5932 #[cfg(feature = "Win32_Foundation")]
5933 #[inline]
WdsTransportServerAllocateBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, ulbuffersize: u32) -> *mut ::std::ffi::c_void5934 pub unsafe fn WdsTransportServerAllocateBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, ulbuffersize: u32) -> *mut ::std::ffi::c_void {
5935 #[cfg(windows)]
5936 {
5937 #[link(name = "windows")]
5938 extern "system" {
5939 fn WdsTransportServerAllocateBuffer(hprovider: super::super::Foundation::HANDLE, ulbuffersize: u32) -> *mut ::std::ffi::c_void;
5940 }
5941 ::std::mem::transmute(WdsTransportServerAllocateBuffer(hprovider.into_param().abi(), ::std::mem::transmute(ulbuffersize)))
5942 }
5943 #[cfg(not(windows))]
5944 unimplemented!("Unsupported target OS");
5945 }
5946 #[cfg(feature = "Win32_Foundation")]
5947 #[inline]
WdsTransportServerCompleteRead<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, ulbytesread: u32, pvuserdata: *const ::std::ffi::c_void, hreadresult: ::windows::runtime::HRESULT) -> ::windows::runtime::Result<()>5948 pub unsafe fn WdsTransportServerCompleteRead<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, ulbytesread: u32, pvuserdata: *const ::std::ffi::c_void, hreadresult: ::windows::runtime::HRESULT) -> ::windows::runtime::Result<()> {
5949 #[cfg(windows)]
5950 {
5951 #[link(name = "windows")]
5952 extern "system" {
5953 fn WdsTransportServerCompleteRead(hprovider: super::super::Foundation::HANDLE, ulbytesread: u32, pvuserdata: *const ::std::ffi::c_void, hreadresult: ::windows::runtime::HRESULT) -> ::windows::runtime::HRESULT;
5954 }
5955 WdsTransportServerCompleteRead(hprovider.into_param().abi(), ::std::mem::transmute(ulbytesread), ::std::mem::transmute(pvuserdata), ::std::mem::transmute(hreadresult)).ok()
5956 }
5957 #[cfg(not(windows))]
5958 unimplemented!("Unsupported target OS");
5959 }
5960 #[cfg(feature = "Win32_Foundation")]
5961 #[inline]
WdsTransportServerFreeBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, pvbuffer: *const ::std::ffi::c_void) -> ::windows::runtime::Result<()>5962 pub unsafe fn WdsTransportServerFreeBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, pvbuffer: *const ::std::ffi::c_void) -> ::windows::runtime::Result<()> {
5963 #[cfg(windows)]
5964 {
5965 #[link(name = "windows")]
5966 extern "system" {
5967 fn WdsTransportServerFreeBuffer(hprovider: super::super::Foundation::HANDLE, pvbuffer: *const ::std::ffi::c_void) -> ::windows::runtime::HRESULT;
5968 }
5969 WdsTransportServerFreeBuffer(hprovider.into_param().abi(), ::std::mem::transmute(pvbuffer)).ok()
5970 }
5971 #[cfg(not(windows))]
5972 unimplemented!("Unsupported target OS");
5973 }
5974 #[cfg(feature = "Win32_Foundation")]
5975 #[inline]
WdsTransportServerRegisterCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, callbackid: TRANSPORTPROVIDER_CALLBACK_ID, pfncallback: *const ::std::ffi::c_void) -> ::windows::runtime::Result<()>5976 pub unsafe fn WdsTransportServerRegisterCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>>(hprovider: Param0, callbackid: TRANSPORTPROVIDER_CALLBACK_ID, pfncallback: *const ::std::ffi::c_void) -> ::windows::runtime::Result<()> {
5977 #[cfg(windows)]
5978 {
5979 #[link(name = "windows")]
5980 extern "system" {
5981 fn WdsTransportServerRegisterCallback(hprovider: super::super::Foundation::HANDLE, callbackid: TRANSPORTPROVIDER_CALLBACK_ID, pfncallback: *const ::std::ffi::c_void) -> ::windows::runtime::HRESULT;
5982 }
5983 WdsTransportServerRegisterCallback(hprovider.into_param().abi(), ::std::mem::transmute(callbackid), ::std::mem::transmute(pfncallback)).ok()
5984 }
5985 #[cfg(not(windows))]
5986 unimplemented!("Unsupported target OS");
5987 }
5988 #[cfg(feature = "Win32_Foundation")]
5989 #[inline]
WdsTransportServerTrace<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hprovider: Param0, severity: u32, pwszformat: Param2) -> ::windows::runtime::Result<()>5990 pub unsafe fn WdsTransportServerTrace<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hprovider: Param0, severity: u32, pwszformat: Param2) -> ::windows::runtime::Result<()> {
5991 #[cfg(windows)]
5992 {
5993 #[link(name = "windows")]
5994 extern "system" {
5995 fn WdsTransportServerTrace(hprovider: super::super::Foundation::HANDLE, severity: u32, pwszformat: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT;
5996 }
5997 WdsTransportServerTrace(hprovider.into_param().abi(), ::std::mem::transmute(severity), pwszformat.into_param().abi()).ok()
5998 }
5999 #[cfg(not(windows))]
6000 unimplemented!("Unsupported target OS");
6001 }
6002 #[cfg(feature = "Win32_Foundation")]
6003 #[inline]
WdsTransportServerTraceV<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hprovider: Param0, severity: u32, pwszformat: Param2, params: *const i8) -> ::windows::runtime::Result<()>6004 pub unsafe fn WdsTransportServerTraceV<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(hprovider: Param0, severity: u32, pwszformat: Param2, params: *const i8) -> ::windows::runtime::Result<()> {
6005 #[cfg(windows)]
6006 {
6007 #[link(name = "windows")]
6008 extern "system" {
6009 fn WdsTransportServerTraceV(hprovider: super::super::Foundation::HANDLE, severity: u32, pwszformat: super::super::Foundation::PWSTR, params: *const i8) -> ::windows::runtime::HRESULT;
6010 }
6011 WdsTransportServerTraceV(hprovider.into_param().abi(), ::std::mem::transmute(severity), pwszformat.into_param().abi(), ::std::mem::transmute(params)).ok()
6012 }
6013 #[cfg(not(windows))]
6014 unimplemented!("Unsupported target OS");
6015 }
6016 pub const WdsTransportServicePolicy: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1705831132, 12043, 20291, [159, 77, 129, 24, 101, 216, 206, 173]);
6017 pub const WdsTransportSession: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1956300000, 26556, 18243, [191, 229, 202, 203, 31, 38, 245, 127]);
6018 pub const WdsTransportSetupManager: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3351177901, 40708, 18723, [159, 12, 251, 245, 43, 199, 89, 15]);
6019 pub const WdsTransportTftpClient: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1345599781, 31836, 19596, [150, 196, 173, 159, 165, 0, 95, 186]);
6020 pub const WdsTransportTftpManager: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3370769570, 12865, 20045, [184, 6, 188, 116, 1, 157, 254, 218]);
6021