]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys-0.28.0/src/Windows/Win32/NetworkManagement/WebDav/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Win32 / NetworkManagement / WebDav / mod.rs
CommitLineData
064997fb
FG
1#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2#[link(name = "windows")]
3extern "system" {
4 #[cfg(feature = "Win32_Foundation")]
5 pub fn DavAddConnection(connectionhandle: *mut super::super::Foundation::HANDLE, remotename: super::super::Foundation::PWSTR, username: super::super::Foundation::PWSTR, password: super::super::Foundation::PWSTR, clientcert: *const u8, certsize: u32) -> u32;
6 #[cfg(feature = "Win32_Foundation")]
7 pub fn DavCancelConnectionsToServer(lpname: super::super::Foundation::PWSTR, fforce: super::super::Foundation::BOOL) -> u32;
8 #[cfg(feature = "Win32_Foundation")]
9 pub fn DavDeleteConnection(connectionhandle: super::super::Foundation::HANDLE) -> u32;
10 #[cfg(feature = "Win32_Foundation")]
11 pub fn DavFlushFile(hfile: super::super::Foundation::HANDLE) -> u32;
12 #[cfg(feature = "Win32_Foundation")]
13 pub fn DavGetExtendedError(hfile: super::super::Foundation::HANDLE, exterror: *mut u32, exterrorstring: super::super::Foundation::PWSTR, cchsize: *mut u32) -> u32;
14 #[cfg(feature = "Win32_Foundation")]
15 pub fn DavGetHTTPFromUNCPath(uncpath: super::super::Foundation::PWSTR, url: super::super::Foundation::PWSTR, lpsize: *mut u32) -> u32;
16 #[cfg(feature = "Win32_Foundation")]
17 pub fn DavGetTheLockOwnerOfTheFile(filename: super::super::Foundation::PWSTR, lockownername: super::super::Foundation::PWSTR, lockownernamelengthinbytes: *mut u32) -> u32;
18 #[cfg(feature = "Win32_Foundation")]
19 pub fn DavGetUNCFromHTTPPath(url: super::super::Foundation::PWSTR, uncpath: super::super::Foundation::PWSTR, lpsize: *mut u32) -> u32;
20 #[cfg(feature = "Win32_Foundation")]
21 pub fn DavInvalidateCache(urlname: super::super::Foundation::PWSTR) -> u32;
22 #[cfg(feature = "Win32_Foundation")]
23 pub fn DavRegisterAuthCallback(callback: ::core::option::Option<PFNDAVAUTHCALLBACK>, version: u32) -> u32;
24 pub fn DavUnregisterAuthCallback(hcallback: u32);
25}
26pub type AUTHNEXTSTEP = i32;
27pub const DefaultBehavior: AUTHNEXTSTEP = 0i32;
28pub const RetryRequest: AUTHNEXTSTEP = 1i32;
29pub const CancelRequest: AUTHNEXTSTEP = 2i32;
30pub const DAV_AUTHN_SCHEME_BASIC: u32 = 1u32;
31pub const DAV_AUTHN_SCHEME_CERT: u32 = 65536u32;
32pub const DAV_AUTHN_SCHEME_DIGEST: u32 = 8u32;
33pub const DAV_AUTHN_SCHEME_FBA: u32 = 1048576u32;
34pub const DAV_AUTHN_SCHEME_NEGOTIATE: u32 = 16u32;
35pub const DAV_AUTHN_SCHEME_NTLM: u32 = 2u32;
36pub const DAV_AUTHN_SCHEME_PASSPORT: u32 = 4u32;
37#[repr(C)]
38pub struct DAV_CALLBACK_AUTH_BLOB {
39 pub pBuffer: *mut ::core::ffi::c_void,
40 pub ulSize: u32,
41 pub ulType: u32,
42}
43impl ::core::marker::Copy for DAV_CALLBACK_AUTH_BLOB {}
44impl ::core::clone::Clone for DAV_CALLBACK_AUTH_BLOB {
45 fn clone(&self) -> Self {
46 *self
47 }
48}
49#[repr(C)]
50#[cfg(feature = "Win32_Foundation")]
51pub struct DAV_CALLBACK_AUTH_UNP {
52 pub pszUserName: super::super::Foundation::PWSTR,
53 pub ulUserNameLength: u32,
54 pub pszPassword: super::super::Foundation::PWSTR,
55 pub ulPasswordLength: u32,
56}
57#[cfg(feature = "Win32_Foundation")]
58impl ::core::marker::Copy for DAV_CALLBACK_AUTH_UNP {}
59#[cfg(feature = "Win32_Foundation")]
60impl ::core::clone::Clone for DAV_CALLBACK_AUTH_UNP {
61 fn clone(&self) -> Self {
62 *self
63 }
64}
65#[repr(C)]
66#[cfg(feature = "Win32_Foundation")]
67pub struct DAV_CALLBACK_CRED {
68 pub AuthBlob: DAV_CALLBACK_AUTH_BLOB,
69 pub UNPBlob: DAV_CALLBACK_AUTH_UNP,
70 pub bAuthBlobValid: super::super::Foundation::BOOL,
71 pub bSave: super::super::Foundation::BOOL,
72}
73#[cfg(feature = "Win32_Foundation")]
74impl ::core::marker::Copy for DAV_CALLBACK_CRED {}
75#[cfg(feature = "Win32_Foundation")]
76impl ::core::clone::Clone for DAV_CALLBACK_CRED {
77 fn clone(&self) -> Self {
78 *self
79 }
80}
81#[cfg(feature = "Win32_Foundation")]
82pub type PFNDAVAUTHCALLBACK = unsafe extern "system" fn(lpwzservername: super::super::Foundation::PWSTR, lpwzremotename: super::super::Foundation::PWSTR, dwauthscheme: u32, dwflags: u32, pcallbackcred: *mut DAV_CALLBACK_CRED, nextstep: *mut AUTHNEXTSTEP, pfreecred: *mut ::core::option::Option<PFNDAVAUTHCALLBACK_FREECRED>) -> u32;
83pub type PFNDAVAUTHCALLBACK_FREECRED = unsafe extern "system" fn(pbuffer: *const ::core::ffi::c_void) -> u32;