DavRegisterAuthCallback function (davclnt.h)

Registers an application-defined callback function that the WebDAV client can use to prompt the user for credentials.

Syntax

OPAQUE_HANDLE DavRegisterAuthCallback(
  [in] PFNDAVAUTHCALLBACK CallBack,
  [in] ULONG              Version
);

Parameters

[in] CallBack

A pointer to a function of type PFNDAVAUTHCALLBACK.

[in] Version

This parameter is reserved for future use.

Return value

If the function succeeds, the return value is an opaque handle. Note that OPAQUE_HANDLE is defined to be a DWORD value.

Remarks

The WebDAV client uses the callback function when it is unable to connect to a remote resource using default credentials.

To unregister the callback function, use the DavUnregisterAuthCallback function, passing the returned opaque handle in the hCallback parameter.

Requirements

Requirement Value
Minimum supported client Windows Vista with SP2 [desktop apps only]
Minimum supported server Windows Server 2008 with SP2 [desktop apps only]
Target Platform Windows
Header davclnt.h
Library Davclnt.lib
DLL Davclnt.dll

See also

DavUnregisterAuthCallback