user32/tests: Add some tests for the contents of the clipboard data.
[wine.git] / include / davclnt.h
blobdbb25ee9c422abe1c7eaa84e52a2ca149edc8c7e
1 /*
2 * Copyright 2015 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_DAVCLNT_H
20 #define __WINE_DAVCLNT_H
22 #define OPAQUE_HANDLE DWORD
24 #define DAV_AUTHN_SCHEME_BASIC 0x00000001
25 #define DAV_AUTHN_SCHEME_NTLM 0x00000002
26 #define DAV_AUTHN_SCHEME_PASSPORT 0x00000004
27 #define DAV_AUTHN_SCHEME_DIGEST 0x00000008
28 #define DAV_AUTHN_SCHEME_NEGOTIATE 0x00000010
29 #define DAV_AUTHN_SCHEME_CERT 0x00010000
30 #define DAV_AUTHN_SCHEME_FBA 0x00100000
32 typedef enum
34 DefaultBehavior,
35 RetryRequest,
36 CancelRequest
37 } AUTHNEXTSTEP;
39 typedef struct _DAV_CALLBACK_AUTH_BLOB
41 PVOID pBuffer;
42 ULONG ulSize;
43 ULONG ulType;
44 } DAV_CALLBACK_AUTH_BLOB, *PDAV_CALLBACK_AUTH_BLOB;
46 typedef struct _DAV_CALLBACK_AUTH_UNP
48 LPWSTR pszUserName;
49 ULONG ulUserNameLength;
50 LPWSTR pszPassword;
51 ULONG ulPasswordLength;
52 } DAV_CALLBACK_AUTH_UNP, *PDAV_CALLBACK_AUTH_UNP;
54 typedef struct _DAV_CALLBACK_CRED
56 DAV_CALLBACK_AUTH_BLOB AuthBlob;
57 DAV_CALLBACK_AUTH_UNP UNPBlob;
58 BOOL bAuthBlobValid;
59 BOOL bSave;
60 } DAV_CALLBACK_CRED, *PDAV_CALLBACK_CRED;
62 typedef DWORD (*PFNDAVAUTHCALLBACK_FREECRED)
63 (PVOID);
65 typedef DWORD (*PFNDAVAUTHCALLBACK)
66 (LPWSTR,LPWSTR,DWORD,DWORD,PDAV_CALLBACK_CRED,AUTHNEXTSTEP*,PFNDAVAUTHCALLBACK_FREECRED*);
68 DWORD WINAPI DavGetHTTPFromUNCPath(LPCWSTR,LPWSTR,LPDWORD);
69 OPAQUE_HANDLE WINAPI DavRegisterAuthCallback(PFNDAVAUTHCALLBACK,ULONG);
70 VOID WINAPI DavUnregisterAuthCallback(OPAQUE_HANDLE);
72 #endif /* __WINE_DAVCLNT_H */