]> git.proxmox.com Git - rustc.git/blame - vendor/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs
Merge 1.70 into proxmox/bookworm
[rustc.git] / vendor / windows / src / Windows / Win32 / NetworkManagement / WebDav / mod.rs
CommitLineData
353b0b11
FG
1#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
2#[cfg(feature = "Win32_Foundation")]
3#[inline]
4pub unsafe fn DavAddConnection<P0, P1, P2>(connectionhandle: *mut super::super::Foundation::HANDLE, remotename: P0, username: P1, password: P2, clientcert: &[u8]) -> u32
5where
6 P0: ::windows::core::IntoParam<::windows::core::PCWSTR>,
7 P1: ::windows::core::IntoParam<::windows::core::PCWSTR>,
8 P2: ::windows::core::IntoParam<::windows::core::PCWSTR>,
9{
10 ::windows::imp::link ! ( "netapi32.dll""system" fn DavAddConnection ( connectionhandle : *mut super::super::Foundation:: HANDLE , remotename : :: windows::core::PCWSTR , username : :: windows::core::PCWSTR , password : :: windows::core::PCWSTR , clientcert : *const u8 , certsize : u32 ) -> u32 );
11 DavAddConnection(connectionhandle, remotename.into_param().abi(), username.into_param().abi(), password.into_param().abi(), ::core::mem::transmute(clientcert.as_ptr()), clientcert.len() as _)
12}
13#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
14#[cfg(feature = "Win32_Foundation")]
15#[inline]
16pub unsafe fn DavCancelConnectionsToServer<P0, P1>(lpname: P0, fforce: P1) -> u32
17where
18 P0: ::windows::core::IntoParam<::windows::core::PCWSTR>,
19 P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>,
20{
21 ::windows::imp::link ! ( "davclnt.dll""system" fn DavCancelConnectionsToServer ( lpname : :: windows::core::PCWSTR , fforce : super::super::Foundation:: BOOL ) -> u32 );
22 DavCancelConnectionsToServer(lpname.into_param().abi(), fforce.into_param().abi())
23}
24#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
25#[cfg(feature = "Win32_Foundation")]
26#[inline]
27pub unsafe fn DavDeleteConnection<P0>(connectionhandle: P0) -> u32
28where
29 P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>,
30{
31 ::windows::imp::link ! ( "netapi32.dll""system" fn DavDeleteConnection ( connectionhandle : super::super::Foundation:: HANDLE ) -> u32 );
32 DavDeleteConnection(connectionhandle.into_param().abi())
33}
34#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
35#[cfg(feature = "Win32_Foundation")]
36#[inline]
37pub unsafe fn DavFlushFile<P0>(hfile: P0) -> u32
38where
39 P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>,
40{
41 ::windows::imp::link ! ( "netapi32.dll""system" fn DavFlushFile ( hfile : super::super::Foundation:: HANDLE ) -> u32 );
42 DavFlushFile(hfile.into_param().abi())
43}
44#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
45#[cfg(feature = "Win32_Foundation")]
46#[inline]
47pub unsafe fn DavGetExtendedError<P0>(hfile: P0, exterror: *mut u32, exterrorstring: ::windows::core::PWSTR, cchsize: *mut u32) -> u32
48where
49 P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>,
50{
51 ::windows::imp::link ! ( "netapi32.dll""system" fn DavGetExtendedError ( hfile : super::super::Foundation:: HANDLE , exterror : *mut u32 , exterrorstring : :: windows::core::PWSTR , cchsize : *mut u32 ) -> u32 );
52 DavGetExtendedError(hfile.into_param().abi(), exterror, ::core::mem::transmute(exterrorstring), cchsize)
53}
54#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
55#[inline]
56pub unsafe fn DavGetHTTPFromUNCPath<P0>(uncpath: P0, url: ::windows::core::PWSTR, lpsize: *mut u32) -> u32
57where
58 P0: ::windows::core::IntoParam<::windows::core::PCWSTR>,
59{
60 ::windows::imp::link ! ( "netapi32.dll""system" fn DavGetHTTPFromUNCPath ( uncpath : :: windows::core::PCWSTR , url : :: windows::core::PWSTR , lpsize : *mut u32 ) -> u32 );
61 DavGetHTTPFromUNCPath(uncpath.into_param().abi(), ::core::mem::transmute(url), lpsize)
62}
63#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
64#[inline]
65pub unsafe fn DavGetTheLockOwnerOfTheFile<P0>(filename: P0, lockownername: ::windows::core::PWSTR, lockownernamelengthinbytes: *mut u32) -> u32
66where
67 P0: ::windows::core::IntoParam<::windows::core::PCWSTR>,
68{
69 ::windows::imp::link ! ( "davclnt.dll""system" fn DavGetTheLockOwnerOfTheFile ( filename : :: windows::core::PCWSTR , lockownername : :: windows::core::PWSTR , lockownernamelengthinbytes : *mut u32 ) -> u32 );
70 DavGetTheLockOwnerOfTheFile(filename.into_param().abi(), ::core::mem::transmute(lockownername), lockownernamelengthinbytes)
71}
72#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
73#[inline]
74pub unsafe fn DavGetUNCFromHTTPPath<P0>(url: P0, uncpath: ::windows::core::PWSTR, lpsize: *mut u32) -> u32
75where
76 P0: ::windows::core::IntoParam<::windows::core::PCWSTR>,
77{
78 ::windows::imp::link ! ( "netapi32.dll""system" fn DavGetUNCFromHTTPPath ( url : :: windows::core::PCWSTR , uncpath : :: windows::core::PWSTR , lpsize : *mut u32 ) -> u32 );
79 DavGetUNCFromHTTPPath(url.into_param().abi(), ::core::mem::transmute(uncpath), lpsize)
80}
81#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
82#[inline]
83pub unsafe fn DavInvalidateCache<P0>(urlname: P0) -> u32
84where
85 P0: ::windows::core::IntoParam<::windows::core::PCWSTR>,
86{
87 ::windows::imp::link ! ( "davclnt.dll""system" fn DavInvalidateCache ( urlname : :: windows::core::PCWSTR ) -> u32 );
88 DavInvalidateCache(urlname.into_param().abi())
89}
90#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
91#[cfg(feature = "Win32_Foundation")]
92#[inline]
93pub unsafe fn DavRegisterAuthCallback(callback: PFNDAVAUTHCALLBACK, version: u32) -> u32 {
94 ::windows::imp::link ! ( "davclnt.dll""system" fn DavRegisterAuthCallback ( callback : PFNDAVAUTHCALLBACK , version : u32 ) -> u32 );
95 DavRegisterAuthCallback(callback, version)
96}
97#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
98#[inline]
99pub unsafe fn DavUnregisterAuthCallback(hcallback: u32) {
100 ::windows::imp::link ! ( "davclnt.dll""system" fn DavUnregisterAuthCallback ( hcallback : u32 ) -> ( ) );
101 DavUnregisterAuthCallback(hcallback)
102}
103#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
104pub const DAV_AUTHN_SCHEME_BASIC: u32 = 1u32;
105#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
106pub const DAV_AUTHN_SCHEME_CERT: u32 = 65536u32;
107#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
108pub const DAV_AUTHN_SCHEME_DIGEST: u32 = 8u32;
109#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
110pub const DAV_AUTHN_SCHEME_FBA: u32 = 1048576u32;
111#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
112pub const DAV_AUTHN_SCHEME_NEGOTIATE: u32 = 16u32;
113#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
114pub const DAV_AUTHN_SCHEME_NTLM: u32 = 2u32;
115#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
116pub const DAV_AUTHN_SCHEME_PASSPORT: u32 = 4u32;
117#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
118#[repr(transparent)]
119#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
120pub struct AUTHNEXTSTEP(pub i32);
121#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
122pub const DefaultBehavior: AUTHNEXTSTEP = AUTHNEXTSTEP(0i32);
123#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
124pub const RetryRequest: AUTHNEXTSTEP = AUTHNEXTSTEP(1i32);
125#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
126pub const CancelRequest: AUTHNEXTSTEP = AUTHNEXTSTEP(2i32);
127impl ::core::marker::Copy for AUTHNEXTSTEP {}
128impl ::core::clone::Clone for AUTHNEXTSTEP {
129 fn clone(&self) -> Self {
130 *self
131 }
132}
133impl ::core::default::Default for AUTHNEXTSTEP {
134 fn default() -> Self {
135 Self(0)
136 }
137}
138impl ::windows::core::TypeKind for AUTHNEXTSTEP {
139 type TypeKind = ::windows::core::CopyType;
140}
141impl ::core::fmt::Debug for AUTHNEXTSTEP {
142 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
143 f.debug_tuple("AUTHNEXTSTEP").field(&self.0).finish()
144 }
145}
146#[repr(C)]
147#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
148pub struct DAV_CALLBACK_AUTH_BLOB {
149 pub pBuffer: *mut ::core::ffi::c_void,
150 pub ulSize: u32,
151 pub ulType: u32,
152}
153impl ::core::marker::Copy for DAV_CALLBACK_AUTH_BLOB {}
154impl ::core::clone::Clone for DAV_CALLBACK_AUTH_BLOB {
155 fn clone(&self) -> Self {
156 *self
157 }
158}
159impl ::core::fmt::Debug for DAV_CALLBACK_AUTH_BLOB {
160 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
161 f.debug_struct("DAV_CALLBACK_AUTH_BLOB").field("pBuffer", &self.pBuffer).field("ulSize", &self.ulSize).field("ulType", &self.ulType).finish()
162 }
163}
164impl ::windows::core::TypeKind for DAV_CALLBACK_AUTH_BLOB {
165 type TypeKind = ::windows::core::CopyType;
166}
167impl ::core::cmp::PartialEq for DAV_CALLBACK_AUTH_BLOB {
168 fn eq(&self, other: &Self) -> bool {
169 self.pBuffer == other.pBuffer && self.ulSize == other.ulSize && self.ulType == other.ulType
170 }
171}
172impl ::core::cmp::Eq for DAV_CALLBACK_AUTH_BLOB {}
173impl ::core::default::Default for DAV_CALLBACK_AUTH_BLOB {
174 fn default() -> Self {
175 unsafe { ::core::mem::zeroed() }
176 }
177}
178#[repr(C)]
179#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
180pub struct DAV_CALLBACK_AUTH_UNP {
181 pub pszUserName: ::windows::core::PWSTR,
182 pub ulUserNameLength: u32,
183 pub pszPassword: ::windows::core::PWSTR,
184 pub ulPasswordLength: u32,
185}
186impl ::core::marker::Copy for DAV_CALLBACK_AUTH_UNP {}
187impl ::core::clone::Clone for DAV_CALLBACK_AUTH_UNP {
188 fn clone(&self) -> Self {
189 *self
190 }
191}
192impl ::core::fmt::Debug for DAV_CALLBACK_AUTH_UNP {
193 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
194 f.debug_struct("DAV_CALLBACK_AUTH_UNP").field("pszUserName", &self.pszUserName).field("ulUserNameLength", &self.ulUserNameLength).field("pszPassword", &self.pszPassword).field("ulPasswordLength", &self.ulPasswordLength).finish()
195 }
196}
197impl ::windows::core::TypeKind for DAV_CALLBACK_AUTH_UNP {
198 type TypeKind = ::windows::core::CopyType;
199}
200impl ::core::cmp::PartialEq for DAV_CALLBACK_AUTH_UNP {
201 fn eq(&self, other: &Self) -> bool {
202 self.pszUserName == other.pszUserName && self.ulUserNameLength == other.ulUserNameLength && self.pszPassword == other.pszPassword && self.ulPasswordLength == other.ulPasswordLength
203 }
204}
205impl ::core::cmp::Eq for DAV_CALLBACK_AUTH_UNP {}
206impl ::core::default::Default for DAV_CALLBACK_AUTH_UNP {
207 fn default() -> Self {
208 unsafe { ::core::mem::zeroed() }
209 }
210}
211#[repr(C)]
212#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
213#[cfg(feature = "Win32_Foundation")]
214pub struct DAV_CALLBACK_CRED {
215 pub AuthBlob: DAV_CALLBACK_AUTH_BLOB,
216 pub UNPBlob: DAV_CALLBACK_AUTH_UNP,
217 pub bAuthBlobValid: super::super::Foundation::BOOL,
218 pub bSave: super::super::Foundation::BOOL,
219}
220#[cfg(feature = "Win32_Foundation")]
221impl ::core::marker::Copy for DAV_CALLBACK_CRED {}
222#[cfg(feature = "Win32_Foundation")]
223impl ::core::clone::Clone for DAV_CALLBACK_CRED {
224 fn clone(&self) -> Self {
225 *self
226 }
227}
228#[cfg(feature = "Win32_Foundation")]
229impl ::core::fmt::Debug for DAV_CALLBACK_CRED {
230 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
231 f.debug_struct("DAV_CALLBACK_CRED").field("AuthBlob", &self.AuthBlob).field("UNPBlob", &self.UNPBlob).field("bAuthBlobValid", &self.bAuthBlobValid).field("bSave", &self.bSave).finish()
232 }
233}
234#[cfg(feature = "Win32_Foundation")]
235impl ::windows::core::TypeKind for DAV_CALLBACK_CRED {
236 type TypeKind = ::windows::core::CopyType;
237}
238#[cfg(feature = "Win32_Foundation")]
239impl ::core::cmp::PartialEq for DAV_CALLBACK_CRED {
240 fn eq(&self, other: &Self) -> bool {
241 self.AuthBlob == other.AuthBlob && self.UNPBlob == other.UNPBlob && self.bAuthBlobValid == other.bAuthBlobValid && self.bSave == other.bSave
242 }
243}
244#[cfg(feature = "Win32_Foundation")]
245impl ::core::cmp::Eq for DAV_CALLBACK_CRED {}
246#[cfg(feature = "Win32_Foundation")]
247impl ::core::default::Default for DAV_CALLBACK_CRED {
248 fn default() -> Self {
249 unsafe { ::core::mem::zeroed() }
250 }
251}
252#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
253#[cfg(feature = "Win32_Foundation")]
254pub type PFNDAVAUTHCALLBACK = ::core::option::Option<unsafe extern "system" fn(lpwzservername: ::windows::core::PCWSTR, lpwzremotename: ::windows::core::PCWSTR, dwauthscheme: u32, dwflags: u32, pcallbackcred: *mut DAV_CALLBACK_CRED, nextstep: *mut AUTHNEXTSTEP, pfreecred: *mut PFNDAVAUTHCALLBACK_FREECRED) -> u32>;
255#[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
256pub type PFNDAVAUTHCALLBACK_FREECRED = ::core::option::Option<unsafe extern "system" fn(pbuffer: *const ::core::ffi::c_void) -> u32>;
257#[cfg(feature = "implement")]
258::core::include!("impl.rs");