1 #[cfg_attr(windows, link(name = "windows"))]
3 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
4 #[cfg(feature = "Win32_Foundation")]
5 pub 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;
6 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
7 #[cfg(feature = "Win32_Foundation")]
8 pub fn DavCancelConnectionsToServer(lpname
: ::windows_sys
::core
::PCWSTR
, fforce
: super::super::Foundation
::BOOL
) -> u32;
9 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
10 #[cfg(feature = "Win32_Foundation")]
11 pub fn DavDeleteConnection(connectionhandle
: super::super::Foundation
::HANDLE
) -> u32;
12 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
13 #[cfg(feature = "Win32_Foundation")]
14 pub fn DavFlushFile(hfile
: super::super::Foundation
::HANDLE
) -> u32;
15 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
16 #[cfg(feature = "Win32_Foundation")]
17 pub fn DavGetExtendedError(hfile
: super::super::Foundation
::HANDLE
, exterror
: *mut u32, exterrorstring
: ::windows_sys
::core
::PWSTR
, cchsize
: *mut u32) -> u32;
18 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
19 pub fn DavGetHTTPFromUNCPath(uncpath
: ::windows_sys
::core
::PCWSTR
, url
: ::windows_sys
::core
::PWSTR
, lpsize
: *mut u32) -> u32;
20 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
21 pub fn DavGetTheLockOwnerOfTheFile(filename
: ::windows_sys
::core
::PCWSTR
, lockownername
: ::windows_sys
::core
::PWSTR
, lockownernamelengthinbytes
: *mut u32) -> u32;
22 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
23 pub fn DavGetUNCFromHTTPPath(url
: ::windows_sys
::core
::PCWSTR
, uncpath
: ::windows_sys
::core
::PWSTR
, lpsize
: *mut u32) -> u32;
24 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
25 pub fn DavInvalidateCache(urlname
: ::windows_sys
::core
::PCWSTR
) -> u32;
26 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
27 #[cfg(feature = "Win32_Foundation")]
28 pub fn DavRegisterAuthCallback(callback
: PFNDAVAUTHCALLBACK
, version
: u32) -> u32;
29 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
30 pub fn DavUnregisterAuthCallback(hcallback
: u32);
32 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
33 pub const DAV_AUTHN_SCHEME_BASIC
: u32 = 1u32;
34 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
35 pub const DAV_AUTHN_SCHEME_CERT
: u32 = 65536u32;
36 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
37 pub const DAV_AUTHN_SCHEME_DIGEST
: u32 = 8u32;
38 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
39 pub const DAV_AUTHN_SCHEME_FBA
: u32 = 1048576u32;
40 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
41 pub const DAV_AUTHN_SCHEME_NEGOTIATE
: u32 = 16u32;
42 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
43 pub const DAV_AUTHN_SCHEME_NTLM
: u32 = 2u32;
44 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
45 pub const DAV_AUTHN_SCHEME_PASSPORT
: u32 = 4u32;
46 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
47 pub type AUTHNEXTSTEP
= i32;
48 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
49 pub const DefaultBehavior
: AUTHNEXTSTEP
= 0i32;
50 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
51 pub const RetryRequest
: AUTHNEXTSTEP
= 1i32;
52 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
53 pub const CancelRequest
: AUTHNEXTSTEP
= 2i32;
55 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
56 pub struct DAV_CALLBACK_AUTH_BLOB
{
57 pub pBuffer
: *mut ::core
::ffi
::c_void
,
61 impl ::core
::marker
::Copy
for DAV_CALLBACK_AUTH_BLOB {}
62 impl ::core
::clone
::Clone
for DAV_CALLBACK_AUTH_BLOB
{
63 fn clone(&self) -> Self {
68 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
69 pub struct DAV_CALLBACK_AUTH_UNP
{
70 pub pszUserName
: ::windows_sys
::core
::PWSTR
,
71 pub ulUserNameLength
: u32,
72 pub pszPassword
: ::windows_sys
::core
::PWSTR
,
73 pub ulPasswordLength
: u32,
75 impl ::core
::marker
::Copy
for DAV_CALLBACK_AUTH_UNP {}
76 impl ::core
::clone
::Clone
for DAV_CALLBACK_AUTH_UNP
{
77 fn clone(&self) -> Self {
82 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
83 #[cfg(feature = "Win32_Foundation")]
84 pub struct DAV_CALLBACK_CRED
{
85 pub AuthBlob
: DAV_CALLBACK_AUTH_BLOB
,
86 pub UNPBlob
: DAV_CALLBACK_AUTH_UNP
,
87 pub bAuthBlobValid
: super::super::Foundation
::BOOL
,
88 pub bSave
: super::super::Foundation
::BOOL
,
90 #[cfg(feature = "Win32_Foundation")]
91 impl ::core
::marker
::Copy
for DAV_CALLBACK_CRED {}
92 #[cfg(feature = "Win32_Foundation")]
93 impl ::core
::clone
::Clone
for DAV_CALLBACK_CRED
{
94 fn clone(&self) -> Self {
98 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`, `\"Win32_Foundation\"`*"]
99 #[cfg(feature = "Win32_Foundation")]
100 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>;
101 #[doc = "*Required features: `\"Win32_NetworkManagement_WebDav\"`*"]
102 pub type PFNDAVAUTHCALLBACK_FREECRED
= ::core
::option
::Option
<unsafe extern "system" fn(pbuffer
: *const ::core
::ffi
::c_void
) -> u32>;