This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Converts the specified UNC path to an equivalent HTTP path.
DWORD DavGetHTTPFromUNCPath( [in] LPCWSTR UncPath, [out] LPWSTR Url, [in, out] LPDWORD lpSize);[in] UncPath
A pointer to anull-terminated Unicode string that contains the UNC path. This path must be in the following format:
\\server[@SSL][@port][\path]
where
[out] Url
A pointer to a caller-allocated buffer that receives the HTTP path as anull-terminated Unicode string.
[in, out] lpSize
A pointer to a variable that on input specifies the maximum size, in Unicode characters, of the buffer that theHttpPath 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 terminatingNULL character.
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is asystem error code, such as the following value.
| Return code | Description |
|---|---|
| The buffer that theHttpPath parameter points to was not large enough to store the HTTP path. |
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Target Platform | Windows |
| Header | davclnt.h |
| Library | Netapi32.lib |
| DLL | Netapi32.dll |
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?