Skip to content

Latest commit

 

History

History
204 lines (153 loc) · 6.66 KB

nc-davclnt-pfndavauthcallback.md

File metadata and controls

204 lines (153 loc) · 6.66 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NC:davclnt.PFNDAVAUTHCALLBACK
PFNDAVAUTHCALLBACK (davclnt.h)
The WebDAV client calls the application-defined DavAuthCallback callback function to prompt the user for credentials.
DAV_AUTHN_SCHEME_BASIC
DAV_AUTHN_SCHEME_CERT
DAV_AUTHN_SCHEME_DIGEST
DAV_AUTHN_SCHEME_FBA
DAV_AUTHN_SCHEME_NEGOTIATE
DAV_AUTHN_SCHEME_NTLM
DAV_AUTHN_SCHEME_PASSPORT
DavAuthCallback
DavAuthCallback callback function [WebDAV]
PFNDAVAUTHCALLBACK
PFNDAVAUTHCALLBACK callback
davclnt/DavAuthCallback
webdav.authcallback
webdav\authcallback.htm
WebDAV
6ac191ac-e63f-431f-893b-92c69320db58
12/05/2018
DAV_AUTHN_SCHEME_BASIC, DAV_AUTHN_SCHEME_CERT, DAV_AUTHN_SCHEME_DIGEST, DAV_AUTHN_SCHEME_FBA, DAV_AUTHN_SCHEME_NEGOTIATE, DAV_AUTHN_SCHEME_NTLM, DAV_AUTHN_SCHEME_PASSPORT, DavAuthCallback, DavAuthCallback callback function [WebDAV], PFNDAVAUTHCALLBACK, PFNDAVAUTHCALLBACK callback, davclnt/DavAuthCallback, webdav.authcallback
davclnt.h
Windows
Windows Vista with SP2 [desktop apps only]
Windows Server 2008 with SP2 [desktop apps only]
Windows
19H1
PFNDAVAUTHCALLBACK
davclnt/PFNDAVAUTHCALLBACK
c++
APIRef
kbSyntax
UserDefined
Davclnt.h
DavAuthCallback

-description

The WebDAV client calls the application-defined DavAuthCallback callback function to prompt the user for credentials.

The PFNDAVAUTHCALLBACK type defines a pointer to this callback function. DavAuthCallback is a placeholder for the application-defined function name.

-parameters

-param lpwzServerName [in]

A pointer to a NULL-terminated Unicode string that contains the name of the target server.

-param lpwzRemoteName [in]

A pointer to a NULL-terminated Unicode string that contains the name of the network resource.

-param dwAuthScheme [in]

A bitmask of flags that specify the authentication schemes to be used.

Value Meaning
DAV_AUTHN_SCHEME_BASIC
0x00000001
Basic authentication is to be used.
DAV_AUTHN_SCHEME_NTLM
0x00000002

Microsoft NTLM authentication is to be used.

DAV_AUTHN_SCHEME_PASSPORT
0x00000004

Passport authentication is to be used.

DAV_AUTHN_SCHEME_DIGEST
0x00000008

Microsoft Digest authentication is to be used.

DAV_AUTHN_SCHEME_NEGOTIATE
0x00000010

Microsoft Negotiate is to be used.

DAV_AUTHN_SCHEME_CERT
0x00010000
Certificate authentication is to be used.
DAV_AUTHN_SCHEME_FBA
0x00100000
Forms-based authentication is to be used.

-param dwFlags [in]

The flags that the WebDAV service passed in the dwFlags parameter when it called the NPAddConnection3 function.

-param pCallbackCred [in, out]

A pointer to a DAV_CALLBACK_CRED structure.

-param NextStep [in, out]

A pointer to an AUTHNEXTSTEP enumeration value that specifies the next action that the WebDAV client should take after a successful call to the DavAuthCallback callback function.

-param pFreeCred [out]

A pointer to a DavFreeCredCallback callback function.

-returns

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is a system error code.

-remarks

The DavAuthCallback callback function must be registered by calling the DavRegisterAuthCallback function.

To unregister this callback function, use the DavUnregisterAuthCallback function.

This callback function should prompt the user for credentials (either a user name and password or an authentication BLOB) and store this information in the appropriate member of the DAV_CALLBACK_CRED structure that the pCallbackCred parameter points to.

-see-also

CredUIPromptForCredentials

CredUIPromptForWindowsCredentials

DAV_CALLBACK_AUTH_BLOB

DAV_CALLBACK_AUTH_UNP

DavFreeCredCallback