Skip to content

Latest commit

 

History

History
102 lines (84 loc) · 3.09 KB

nf-davclnt-davgethttpfromuncpath.md

File metadata and controls

102 lines (84 loc) · 3.09 KB
UIDtitledescriptionhelpviewer_keywordsold-locationtech.rootms.assetidms.datems.keywordsreq.headerreq.include-headerreq.target-typereq.target-min-winverclntreq.target-min-winversvrreq.kmdf-verreq.umdf-verreq.ddi-compliancereq.unicode-ansireq.idlreq.max-supportreq.namespacereq.assemblyreq.type-libraryreq.libreq.dllreq.irqltargetosreq.typenamesreq.redistms.customf1_keywordsdev_langstopic_typeapi_typeapi_locationapi_name
NF:davclnt.DavGetHTTPFromUNCPath
DavGetHTTPFromUNCPath function (davclnt.h)
Converts the specified UNC path to an equivalent HTTP path.
DavGetHTTPFromUNCPath
DavGetHTTPFromUNCPath function [WebDAV]
davclnt/DavGetHTTPFromUNCPath
webdav.davgethttpfromuncpath
webdav\davgethttpfromuncpath.htm
WebDAV
caa83e54-a029-45aa-9681-26b2be54fea3
12/05/2018
DavGetHTTPFromUNCPath, DavGetHTTPFromUNCPath function [WebDAV], davclnt/DavGetHTTPFromUNCPath, webdav.davgethttpfromuncpath
davclnt.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Netapi32.lib
Netapi32.dll
Windows
19H1
DavGetHTTPFromUNCPath
davclnt/DavGetHTTPFromUNCPath
c++
APIRef
kbSyntax
DllExport
netapi32.dll
DavHlpr.dll
Ext-MS-Win-Rdr-DavHlpr-L1-1-0.dll
DavGetHTTPFromUNCPath

DavGetHTTPFromUNCPath function

-description

Converts the specified UNC path to an equivalent HTTP path.

-parameters

-param UncPath [in]

A pointer to a null-terminated Unicode string that contains the UNC path. This path must be in the following format:

\\server[@SSL][@port][\path]

where

  • server is the server name.
  • @SSL is optional and indicates a request for an SSL connection.
  • port is an optional port number. The standard ports are 80 for http and 443 for https (SSL).
  • path is optional and specifies a path to a remote file or directory on the server.

-param Url [out]

A pointer to a caller-allocated buffer that receives the HTTP path as a null-terminated Unicode string.

-param lpSize [in, out]

A pointer to a variable that on input specifies the maximum size, in Unicode characters, of the buffer that the HttpPath parameter points to. If the function succeeds, on output the variable receives the number of characters that were copied into the buffer. If the function fails with ERROR_INSUFFICIENT_BUFFER, on output the variable receives the number of characters needed to store the HTTP path, including the "http://" or "https://" prefix and the terminating NULL character.

-returns

If the function succeeds, the return value is ERROR_SUCCESS.

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

Return codeDescription
ERROR_INSUFFICIENT_BUFFER
The buffer that the HttpPath parameter points to was not large enough to store the HTTP path.
close