shlwapi: Import path functions from kernelbase.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-06-20 09:12:37 +02:00
parent 47c131ebcb
commit c9940d631b
2 changed files with 0 additions and 2813 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2381,53 +2381,6 @@ HRESULT WINAPI UrlGetPartW(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut,
return ret;
}
/*************************************************************************
* PathIsURLA [SHLWAPI.@]
*
* Check if the given path is a Url.
*
* PARAMS
* lpszPath [I] Path to check.
*
* RETURNS
* TRUE if lpszPath is a Url.
* FALSE if lpszPath is NULL or not a Url.
*/
BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
{
PARSEDURLA base;
HRESULT hres;
TRACE("%s\n", debugstr_a(lpstrPath));
if (!lpstrPath || !*lpstrPath) return FALSE;
/* get protocol */
base.cbSize = sizeof(base);
hres = ParseURLA(lpstrPath, &base);
return hres == S_OK && (base.nScheme != URL_SCHEME_INVALID);
}
/*************************************************************************
* PathIsURLW [SHLWAPI.@]
*
* See PathIsURLA.
*/
BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
{
PARSEDURLW base;
HRESULT hres;
TRACE("%s\n", debugstr_w(lpstrPath));
if (!lpstrPath || !*lpstrPath) return FALSE;
/* get protocol */
base.cbSize = sizeof(base);
hres = ParseURLW(lpstrPath, &base);
return hres == S_OK && (base.nScheme != URL_SCHEME_INVALID);
}
/*************************************************************************
* UrlCreateFromPathA [SHLWAPI.@]
*