Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WebDav/mod.rs

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("netapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DavAddConnection(connectionhandle : *mut super::super::Foundation:: HANDLE, remotename : ::windows_sys::core::PCWSTR, username : ::windows_sys::core::PCWSTR, password : ::windows_sys::core::PCWSTR, clientcert : *const u8, certsize : u32) -> u32);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("davclnt.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DavCancelConnectionsToServer(lpname : ::windows_sys::core::PCWSTR, fforce : super::super::Foundation:: BOOL) -> u32);
5 #[cfg(feature = "Win32_Foundation")]
6 ::windows_targets::link!("netapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DavDeleteConnection(connectionhandle : super::super::Foundation:: HANDLE) -> u32);
7 #[cfg(feature = "Win32_Foundation")]
8 ::windows_targets::link!("netapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DavFlushFile(hfile : super::super::Foundation:: HANDLE) -> u32);
9 #[cfg(feature = "Win32_Foundation")]
10 ::windows_targets::link!("netapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DavGetExtendedError(hfile : super::super::Foundation:: HANDLE, exterror : *mut u32, exterrorstring : ::windows_sys::core::PWSTR, cchsize : *mut u32) -> u32);
11 ::windows_targets::link!("netapi32.dll" "system" fn DavGetHTTPFromUNCPath(uncpath : ::windows_sys::core::PCWSTR, url : ::windows_sys::core::PWSTR, lpsize : *mut u32) -> u32);
12 ::windows_targets::link!("davclnt.dll" "system" fn DavGetTheLockOwnerOfTheFile(filename : ::windows_sys::core::PCWSTR, lockownername : ::windows_sys::core::PWSTR, lockownernamelengthinbytes : *mut u32) -> u32);
13 ::windows_targets::link!("netapi32.dll" "system" fn DavGetUNCFromHTTPPath(url : ::windows_sys::core::PCWSTR, uncpath : ::windows_sys::core::PWSTR, lpsize : *mut u32) -> u32);
14 ::windows_targets::link!("davclnt.dll" "system" fn DavInvalidateCache(urlname : ::windows_sys::core::PCWSTR) -> u32);
15 #[cfg(feature = "Win32_Foundation")]
16 ::windows_targets::link!("davclnt.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DavRegisterAuthCallback(callback : PFNDAVAUTHCALLBACK, version : u32) -> u32);
17 ::windows_targets::link!("davclnt.dll" "system" fn DavUnregisterAuthCallback(hcallback : u32) -> ());
18 pub const CancelRequest: AUTHNEXTSTEP = 2i32;
19 pub const DAV_AUTHN_SCHEME_BASIC: u32 = 1u32;
20 pub const DAV_AUTHN_SCHEME_CERT: u32 = 65536u32;
21 pub const DAV_AUTHN_SCHEME_DIGEST: u32 = 8u32;
22 pub const DAV_AUTHN_SCHEME_FBA: u32 = 1048576u32;
23 pub const DAV_AUTHN_SCHEME_NEGOTIATE: u32 = 16u32;
24 pub const DAV_AUTHN_SCHEME_NTLM: u32 = 2u32;
25 pub const DAV_AUTHN_SCHEME_PASSPORT: u32 = 4u32;
26 pub const DefaultBehavior: AUTHNEXTSTEP = 0i32;
27 pub const RetryRequest: AUTHNEXTSTEP = 1i32;
28 pub type AUTHNEXTSTEP = i32;
29 #[repr(C)]
30 pub struct DAV_CALLBACK_AUTH_BLOB {
31 pub pBuffer: *mut ::core::ffi::c_void,
32 pub ulSize: u32,
33 pub ulType: u32,
34 }
35 impl ::core::marker::Copy for DAV_CALLBACK_AUTH_BLOB {}
36 impl ::core::clone::Clone for DAV_CALLBACK_AUTH_BLOB {
37 fn clone(&self) -> Self {
38 *self
39 }
40 }
41 #[repr(C)]
42 pub struct DAV_CALLBACK_AUTH_UNP {
43 pub pszUserName: ::windows_sys::core::PWSTR,
44 pub ulUserNameLength: u32,
45 pub pszPassword: ::windows_sys::core::PWSTR,
46 pub ulPasswordLength: u32,
47 }
48 impl ::core::marker::Copy for DAV_CALLBACK_AUTH_UNP {}
49 impl ::core::clone::Clone for DAV_CALLBACK_AUTH_UNP {
50 fn clone(&self) -> Self {
51 *self
52 }
53 }
54 #[repr(C)]
55 #[doc = "Required features: `\"Win32_Foundation\"`"]
56 #[cfg(feature = "Win32_Foundation")]
57 pub struct DAV_CALLBACK_CRED {
58 pub AuthBlob: DAV_CALLBACK_AUTH_BLOB,
59 pub UNPBlob: DAV_CALLBACK_AUTH_UNP,
60 pub bAuthBlobValid: super::super::Foundation::BOOL,
61 pub bSave: super::super::Foundation::BOOL,
62 }
63 #[cfg(feature = "Win32_Foundation")]
64 impl ::core::marker::Copy for DAV_CALLBACK_CRED {}
65 #[cfg(feature = "Win32_Foundation")]
66 impl ::core::clone::Clone for DAV_CALLBACK_CRED {
67 fn clone(&self) -> Self {
68 *self
69 }
70 }
71 #[doc = "Required features: `\"Win32_Foundation\"`"]
72 #[cfg(feature = "Win32_Foundation")]
73 pub type PFNDAVAUTHCALLBACK = ::core::option::Option<unsafe extern "system" fn(lpwzservername: ::windows_sys::core::PCWSTR, lpwzremotename: ::windows_sys::core::PCWSTR, dwauthscheme: u32, dwflags: u32, pcallbackcred: *mut DAV_CALLBACK_CRED, nextstep: *mut AUTHNEXTSTEP, pfreecred: *mut PFNDAVAUTHCALLBACK_FREECRED) -> u32>;
74 pub type PFNDAVAUTHCALLBACK_FREECRED = ::core::option::Option<unsafe extern "system" fn(pbuffer: *const ::core::ffi::c_void) -> u32>;